Skip to content

Commit eaca9f9

Browse files
authored
TypedReference F# snippet (#7982)
1 parent f9fbfab commit eaca9f9

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Exe</OutputType>
4+
<TargetFramework>net6.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<Compile Include="source.fs" />
9+
</ItemGroup>
10+
</Project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
open System.Reflection
2+
// <Snippet1>
3+
Assembly.Load("mscorlib.dll").GetType "System.TypedReference[]"
4+
// </Snippet1>

xml/System/TypedReference.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
6363
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_System/system.typedreference/cpp/source.cpp" id="Snippet1":::
6464
:::code language="csharp" source="~/snippets/csharp/System/TypedReference/Overview/source.cs" id="Snippet1":::
65+
:::code language="fsharp" source="~/snippets/fsharp/System/TypedReference/Overview/source.fs" id="Snippet1":::
6566
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.typedreference/vb/source.vb" id="Snippet1":::
6667
6768
]]></format>

0 commit comments

Comments
 (0)