Skip to content

Commit

Permalink
Show C#/VB code in tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslevesque committed May 22, 2024
1 parent 3380240 commit d23e83c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
33 changes: 17 additions & 16 deletions docs/how-to-fake-internal-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ adding the following to your project file (assuming you're using

If you're using an older SDK, you can add this to your
AssemblyInfo.cs/vb file instead:
```csharp
// C#
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
```
```vb
' VB
<Assembly:InternalsVisibleTo("DynamicProxyGenAssembly2")>
```

=== "C#"
```csharp
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
```
=== "VB"
```vb
<Assembly:InternalsVisibleTo("DynamicProxyGenAssembly2")>
```

### Signed assemblies

Expand All @@ -45,11 +46,11 @@ proxy-generating assembly in your project file:
```

Or, if using an older SDK, in your AssemblyInfo.cs/vb file:
```csharp
// C#
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
```
```vb
' VB
<Assembly:InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")>
```
=== "C#"
```csharp
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
```
=== "VB"
```vb
<Assembly:InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")>
```
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ markdown_extensions:
check_paths: true
dedent_subsections: true
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tilde

nav:
Expand Down

0 comments on commit d23e83c

Please sign in to comment.