diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.invalidoperationexception.threading.uwp/cs/UWPCrossThreadSolutionCS_TemporaryKey.pfx b/samples/snippets/csharp/VS_Snippets_CLR_System/system.invalidoperationexception.threading.uwp/cs/UWPCrossThreadSolutionCS_TemporaryKey.pfx new file mode 100644 index 00000000000..e27932bdba6 Binary files /dev/null and b/samples/snippets/csharp/VS_Snippets_CLR_System/system.invalidoperationexception.threading.uwp/cs/UWPCrossThreadSolutionCS_TemporaryKey.pfx differ diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.biginteger.log/cs/log1.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.biginteger.log/cs/log1.cs new file mode 100644 index 00000000000..339af5695fc --- /dev/null +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.biginteger.log/cs/log1.cs @@ -0,0 +1,25 @@ +// +using System; +using System.Numerics; + +public class Example +{ + public static void Main() + { + BigInteger[] values = { 2, 100, BigInteger.Pow(1000, 100), + BigInteger.Pow(2, 64) }; + foreach (var value in values) + Console.WriteLine("The square root of {0} is {1}", value, + Math.Exp(BigInteger.Log(value) / 2)); + } +} +// The example displays the following output: +// The square root of 2 is 1.41421356237309 +// The square root of 100 is 10 +// The square root of 1000000000000000000000000000000000000000000000000000000000000 +// 00000000000000000000000000000000000000000000000000000000000000000000000000000000 +// 00000000000000000000000000000000000000000000000000000000000000000000000000000000 +// 00000000000000000000000000000000000000000000000000000000000000000000000000000000 +// is 9.99999999999988E+149 +// The square root of 18446744073709551616 is 4294967296 +// \ No newline at end of file diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.log/cs/log1.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.log/cs/log1.cs new file mode 100644 index 00000000000..33a1b6f242b --- /dev/null +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.numerics.complex.log/cs/log1.cs @@ -0,0 +1,25 @@ +// +using System; +using System.Numerics; + +public class Example +{ + public static void Main() + { + Complex[] values = { new Complex(1.53, 9.26), + new Complex(2.53, -8.12), + new Complex(-2.81, 5.32), + new Complex(-1.09, -3.43), + new Complex(Double.MinValue/2, Double.MinValue/2) }; + foreach (Complex value in values) + Console.WriteLine("Exp(Log({0}) = {1}", value, + Complex.Exp(Complex.Log(value))); + } +} +// The example displays the following output: +// Exp(Log((1.53, 9.26)) = (1.53, 9.26) +// Exp(Log((2.53, -8.12)) = (2.53, -8.12) +// Exp(Log((-2.81, 5.32)) = (-2.81, 5.32) +// Exp(Log((-1.09, -3.43)) = (-1.09, -3.43) +// Exp(Log((-8.98846567431158E+307, -8.98846567431158E+307)) = (-8.98846567431161E+307, -8.98846567431161E+307) +// \ No newline at end of file diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.reflectionwinstoreapp/cs/reflection_temporarykey.pfx b/samples/snippets/csharp/VS_Snippets_CLR_System/system.reflectionwinstoreapp/cs/reflection_temporarykey.pfx new file mode 100644 index 00000000000..405813367f9 Binary files /dev/null and b/samples/snippets/csharp/VS_Snippets_CLR_System/system.reflectionwinstoreapp/cs/reflection_temporarykey.pfx differ diff --git a/samples/snippets/csharp/VS_Snippets_Misc/wifsam/cs/webapplication1/properties/publishprofiles/profile1.pubxml b/samples/snippets/csharp/VS_Snippets_Misc/wifsam/cs/webapplication1/properties/publishprofiles/profile1.pubxml new file mode 100644 index 00000000000..075eab32602 --- /dev/null +++ b/samples/snippets/csharp/VS_Snippets_Misc/wifsam/cs/webapplication1/properties/publishprofiles/profile1.pubxml @@ -0,0 +1,44 @@ + + + + + MSDeploy + False + + localhost + Default Web Site\WebApplication1 + + False + True + True + InProc + + False + + + + + + + + + + + + + + + + + + + Data Source=(LocalDB)\v11.0;Initial Catalog=aspnet-WebApplication1-20111111115649;Integrated Security=True;MultipleActiveResultSets=True + + + \ No newline at end of file diff --git a/samples/snippets/csharp/VS_Snippets_Misc/wifsigninmessage/cs/webapplication1/properties/publishprofiles/profile1.pubxml b/samples/snippets/csharp/VS_Snippets_Misc/wifsigninmessage/cs/webapplication1/properties/publishprofiles/profile1.pubxml new file mode 100644 index 00000000000..075eab32602 --- /dev/null +++ b/samples/snippets/csharp/VS_Snippets_Misc/wifsigninmessage/cs/webapplication1/properties/publishprofiles/profile1.pubxml @@ -0,0 +1,44 @@ + + + + + MSDeploy + False + + localhost + Default Web Site\WebApplication1 + + False + True + True + InProc + + False + + + + + + + + + + + + + + + + + + + Data Source=(LocalDB)\v11.0;Initial Catalog=aspnet-WebApplication1-20111111115649;Integrated Security=True;MultipleActiveResultSets=True + + + \ No newline at end of file diff --git a/samples/snippets/csharp/VS_Snippets_Misc/wifwsfam/cs/webapplication1/properties/publishprofiles/profile1.pubxml b/samples/snippets/csharp/VS_Snippets_Misc/wifwsfam/cs/webapplication1/properties/publishprofiles/profile1.pubxml new file mode 100644 index 00000000000..075eab32602 --- /dev/null +++ b/samples/snippets/csharp/VS_Snippets_Misc/wifwsfam/cs/webapplication1/properties/publishprofiles/profile1.pubxml @@ -0,0 +1,44 @@ + + + + + MSDeploy + False + + localhost + Default Web Site\WebApplication1 + + False + True + True + InProc + + False + + + + + + + + + + + + + + + + + + + Data Source=(LocalDB)\v11.0;Initial Catalog=aspnet-WebApplication1-20111111115649;Integrated Security=True;MultipleActiveResultSets=True + + + \ No newline at end of file diff --git a/samples/snippets/csharp/VS_Snippets_WebNet/System.Web.HttpContext.User/cs/Default.aspx b/samples/snippets/csharp/VS_Snippets_WebNet/System.Web.HttpContext.User/cs/Default.aspx new file mode 100644 index 00000000000..779fdfdf41f --- /dev/null +++ b/samples/snippets/csharp/VS_Snippets_WebNet/System.Web.HttpContext.User/cs/Default.aspx @@ -0,0 +1,14 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> + + + + + + + + +
+ +
+ + diff --git a/samples/snippets/csharp/VS_Snippets_WebNet/System.Web.HttpContext.User/cs/Default.aspx.cs b/samples/snippets/csharp/VS_Snippets_WebNet/System.Web.HttpContext.User/cs/Default.aspx.cs new file mode 100644 index 00000000000..39ab9831b55 --- /dev/null +++ b/samples/snippets/csharp/VS_Snippets_WebNet/System.Web.HttpContext.User/cs/Default.aspx.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Configuration; + +public partial class _Default : System.Web.UI.Page +{ + // + protected void Page_Load(object sender, EventArgs e) + { + if (User.Identity.IsAuthenticated) + { + Page.Title = "Home page for " + User.Identity.Name; + } + else + { + Page.Title = "Home page for guest user."; + } + } + // +} diff --git a/samples/snippets/csharp/VS_Snippets_Winforms/ClickOnceAPI/CS/ClickOnceAPI.pfx b/samples/snippets/csharp/VS_Snippets_Winforms/ClickOnceAPI/CS/ClickOnceAPI.pfx new file mode 100644 index 00000000000..0af3ef3bb09 Binary files /dev/null and b/samples/snippets/csharp/VS_Snippets_Winforms/ClickOnceAPI/CS/ClickOnceAPI.pfx differ diff --git a/samples/snippets/csharp/VS_Snippets_Wpf/CubeAnimation/CSharp/CubeAnimation_TemporaryKey.pfx b/samples/snippets/csharp/VS_Snippets_Wpf/CubeAnimation/CSharp/CubeAnimation_TemporaryKey.pfx new file mode 100644 index 00000000000..972103c07af Binary files /dev/null and b/samples/snippets/csharp/VS_Snippets_Wpf/CubeAnimation/CSharp/CubeAnimation_TemporaryKey.pfx differ diff --git a/samples/snippets/csharp/VS_Snippets_Wpf/HOWTOBrowserInteropHelperSnippets/CSharp/BrowserInteropHelperSnippet_TemporaryKey.pfx b/samples/snippets/csharp/VS_Snippets_Wpf/HOWTOBrowserInteropHelperSnippets/CSharp/BrowserInteropHelperSnippet_TemporaryKey.pfx new file mode 100644 index 00000000000..61fec226123 Binary files /dev/null and b/samples/snippets/csharp/VS_Snippets_Wpf/HOWTOBrowserInteropHelperSnippets/CSharp/BrowserInteropHelperSnippet_TemporaryKey.pfx differ diff --git a/samples/snippets/csharp/VS_Snippets_Wpf/HOWTONavigationMailToSnippet/CS/HOWTONavigationMailTo_TemporaryKey.pfx b/samples/snippets/csharp/VS_Snippets_Wpf/HOWTONavigationMailToSnippet/CS/HOWTONavigationMailTo_TemporaryKey.pfx new file mode 100644 index 00000000000..6aefb302b53 Binary files /dev/null and b/samples/snippets/csharp/VS_Snippets_Wpf/HOWTONavigationMailToSnippet/CS/HOWTONavigationMailTo_TemporaryKey.pfx differ diff --git a/samples/snippets/csharp/VS_Snippets_Wpf/xbapbrowserinterop/cs/wpfbrowserapplication1_temporarykey.pfx b/samples/snippets/csharp/VS_Snippets_Wpf/xbapbrowserinterop/cs/wpfbrowserapplication1_temporarykey.pfx new file mode 100644 index 00000000000..29ef56c5d35 Binary files /dev/null and b/samples/snippets/csharp/VS_Snippets_Wpf/xbapbrowserinterop/cs/wpfbrowserapplication1_temporarykey.pfx differ diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.invalidoperationexception.threading.uwp/vb/UWPCrossThreadSolutionVB_TemporaryKey.pfx b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.invalidoperationexception.threading.uwp/vb/UWPCrossThreadSolutionVB_TemporaryKey.pfx new file mode 100644 index 00000000000..43b1e946061 Binary files /dev/null and b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.invalidoperationexception.threading.uwp/vb/UWPCrossThreadSolutionVB_TemporaryKey.pfx differ diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.biginteger.log/vb/log1.vb b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.biginteger.log/vb/log1.vb new file mode 100644 index 00000000000..cfe073fa711 --- /dev/null +++ b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.biginteger.log/vb/log1.vb @@ -0,0 +1,26 @@ +' Visual Basic .NET Document +Option Strict On + +' +Imports System.Numerics + +Module Example + Public Sub Main() + Dim values() As BigInteger = { 2, 100, BigInteger.Pow(1000, 100), + BigInteger.Pow(2, 64) } + For Each value In values + Console.WriteLine("The square root of {0} is {1}", value, + Math.Exp(BigInteger.Log(value) / 2)) + Next + End Sub +End Module +' The example displays the following output: +' The square root of 2 is 1.41421356237309 +' The square root of 100 is 10 +' The square root of 1000000000000000000000000000000000000000000000000000000000000 +' 00000000000000000000000000000000000000000000000000000000000000000000000000000000 +' 00000000000000000000000000000000000000000000000000000000000000000000000000000000 +' 00000000000000000000000000000000000000000000000000000000000000000000000000000000 +' is 9.99999999999988E+149 +' The square root of 18446744073709551616 is 4294967296 +' diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.log/vb/log1.vb b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.log/vb/log1.vb new file mode 100644 index 00000000000..ed0d385939c --- /dev/null +++ b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.complex.log/vb/log1.vb @@ -0,0 +1,25 @@ +' Visual Basic .NET Document +Option Strict On +' +Imports System.Numerics + +Module Example + Public Sub Main() + Dim values() As Complex = { New Complex(1.53, 9.26), + New Complex(2.53, -8.12), + New Complex(-2.81, 5.32), + New Complex(-1.09, -3.43), + New Complex(Double.MinValue/2, Double.MinValue/2) } + For Each value As Complex In values + Console.WriteLine("Exp(Log({0}) = {1}", value, + Complex.Exp(Complex.Log(value))) + Next + End Sub +End Module +' The example displays the following output: +' Exp(Log((1.53, 9.26)) = (1.53, 9.26) +' Exp(Log((2.53, -8.12)) = (2.53, -8.12) +' Exp(Log((-2.81, 5.32)) = (-2.81, 5.32) +' Exp(Log((-1.09, -3.43)) = (-1.09, -3.43) +' Exp(Log((-8.98846567431158E+307, -8.98846567431158E+307)) = (-8.98846567431161E+307, -8.98846567431161E+307) +' diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.reflectionwinstoreapp/vb/reflectionvb_temporarykey.pfx b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.reflectionwinstoreapp/vb/reflectionvb_temporarykey.pfx new file mode 100644 index 00000000000..11b889005e7 Binary files /dev/null and b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.reflectionwinstoreapp/vb/reflectionvb_temporarykey.pfx differ diff --git a/samples/snippets/visualbasic/VS_Snippets_WebNet/System.Web.HttpContext.User/vb/Default.aspx b/samples/snippets/visualbasic/VS_Snippets_WebNet/System.Web.HttpContext.User/vb/Default.aspx new file mode 100644 index 00000000000..c9f0595dffa --- /dev/null +++ b/samples/snippets/visualbasic/VS_Snippets_WebNet/System.Web.HttpContext.User/vb/Default.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> + + + + + + + + +
+
+ +
+
+ + diff --git a/samples/snippets/visualbasic/VS_Snippets_WebNet/System.Web.HttpContext.User/vb/Default.aspx.vb b/samples/snippets/visualbasic/VS_Snippets_WebNet/System.Web.HttpContext.User/vb/Default.aspx.vb new file mode 100644 index 00000000000..70921851dcd --- /dev/null +++ b/samples/snippets/visualbasic/VS_Snippets_WebNet/System.Web.HttpContext.User/vb/Default.aspx.vb @@ -0,0 +1,13 @@ + +Partial Class _Default + Inherits System.Web.UI.Page + ' + Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load + If (User.Identity.IsAuthenticated) Then + Page.Title = "Home page for " + User.Identity.Name + Else + Page.Title = "Home page for guest user." + End If + End Sub + ' +End Class diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/CubeAnimation/visualbasic/cubeanimation_temporarykey.pfx b/samples/snippets/visualbasic/VS_Snippets_Wpf/CubeAnimation/visualbasic/cubeanimation_temporarykey.pfx new file mode 100644 index 00000000000..972103c07af Binary files /dev/null and b/samples/snippets/visualbasic/VS_Snippets_Wpf/CubeAnimation/visualbasic/cubeanimation_temporarykey.pfx differ diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/HOWTOBrowserInteropHelperSnippets/visualbasic/browserinterophelpersnippet_temporarykey.pfx b/samples/snippets/visualbasic/VS_Snippets_Wpf/HOWTOBrowserInteropHelperSnippets/visualbasic/browserinterophelpersnippet_temporarykey.pfx new file mode 100644 index 00000000000..61fec226123 Binary files /dev/null and b/samples/snippets/visualbasic/VS_Snippets_Wpf/HOWTOBrowserInteropHelperSnippets/visualbasic/browserinterophelpersnippet_temporarykey.pfx differ diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/xbapbrowserinterop/vb/wpfbrowserapplication1vb_temporarykey.pfx b/samples/snippets/visualbasic/VS_Snippets_Wpf/xbapbrowserinterop/vb/wpfbrowserapplication1vb_temporarykey.pfx new file mode 100644 index 00000000000..13ef0e2dbf8 Binary files /dev/null and b/samples/snippets/visualbasic/VS_Snippets_Wpf/xbapbrowserinterop/vb/wpfbrowserapplication1vb_temporarykey.pfx differ diff --git a/xml/System.IO.Compression/DeflateStream.xml b/xml/System.IO.Compression/DeflateStream.xml index 476504b2507..f5b2f68ad86 100644 --- a/xml/System.IO.Compression/DeflateStream.xml +++ b/xml/System.IO.Compression/DeflateStream.xml @@ -1035,7 +1035,7 @@ The end write call is invalid. . ]]> diff --git a/xml/System.IO.Log/IRecordSequence.xml b/xml/System.IO.Log/IRecordSequence.xml index ff2237ec1c9..fa0ba4dbd40 100644 --- a/xml/System.IO.Log/IRecordSequence.xml +++ b/xml/System.IO.Log/IRecordSequence.xml @@ -1212,51 +1212,45 @@ using System; "This is record A", SequenceNumber.Invalid, SequenceNumber.Invalid); - Console.WriteLine("Record A has sequence number System.IO.Log", a); + Console.WriteLine($"Record A has sequence number {a}"); b = AppendRecord(sequence, "This is record B", a, a); - Console.WriteLine("Record B has sequence number System.IO.Log", b); + Console.WriteLine($"Record B has sequence number {b}"); c = AppendRecord(sequence, "This is record C", a, a); - Console.WriteLine("Record C has sequence number System.IO.Log", c); + Console.WriteLine($"Record C has sequence number {c}"); d = AppendRecord(sequence, "This is record D", b, c); - Console.WriteLine("Record D has sequence number System.IO.Log", d); + Console.WriteLine($"Record D has sequence number {d}"); foreach(LogRecord record in sequence.ReadLogRecords(a, ReadDirection.Forward)) { BinaryReader reader = new BinaryReader(record.Data); - Console.WriteLine("System.IO.Log: T:System.IO.Log.IRecordSequence", - record.SequenceNumber, - reader.ReadString()); + Console.WriteLine($"{record.SequenceNumber}: {reader.ReadString()}"); } foreach(LogRecord record in sequence.ReadLogRecords(d, ReadDirection.User)) { BinaryReader reader = new BinaryReader(record.Data); - Console.WriteLine("System.IO.Log: T:System.IO.Log.IRecordSequence", - record.SequenceNumber, - reader.ReadString()); + Console.WriteLine($"{record.SequenceNumber}: {reader.ReadString()}"); } foreach(LogRecord record in sequence.ReadLogRecords(d, ReadDirection.Previous)) { BinaryReader reader = new BinaryReader(record.Data); - Console.WriteLine("System.IO.Log: T:System.IO.Log.IRecordSequence", - record.SequenceNumber, - reader.ReadString()); + Console.WriteLine($"{record.SequenceNumber}: {reader.ReadString()}"); } } } diff --git a/xml/System.IO.Pipes/PipeStream.xml b/xml/System.IO.Pipes/PipeStream.xml index 6ef1a9bd88d..8a18ec90527 100644 --- a/xml/System.IO.Pipes/PipeStream.xml +++ b/xml/System.IO.Pipes/PipeStream.xml @@ -2112,7 +2112,7 @@ The pipe handle has not been set. (Did your + @@ -244,13 +244,13 @@ If a key is loaded via the The decrypted data. To be added. - is . + is . -or- is . - does not equal , or else the of does not equal . + . isn't equal to or . @@ -364,13 +364,13 @@ If a key is loaded via the The encrypted data. To be added. - is . + is . -or- is . - does not equal or . + . isn't equal to or . diff --git a/xml/System/Span`1+Enumerator.xml b/xml/System/Span`1+Enumerator.xml index d136de03729..f4d4ea040b4 100644 --- a/xml/System/Span`1+Enumerator.xml +++ b/xml/System/Span`1+Enumerator.xml @@ -42,11 +42,11 @@ If passes the end of the . In addition, the underlying data on which the span is based can also be modified. Therefore, enumerating through a span is intrinsically not a thread-safe procedure. To guarantee thread safety during enumeration, you must implement your own synchronization. For example, the following code has a race condition. It does not ensure that the span will be enumerated before the `ClearContents` method executes. As a result, the underlying array is cleared during enumeration of the span: -[!code-csharp[System.Span.Enumerator-no-synchronization](~/samples/snippets/csharp/api/system/span.enumerator/nosync/program.cs)] +[!code-csharp[System.Span.Enumerator-no-synchronization](~/samples/snippets/csharp/api/system/span.enumerator/nosync/Program.cs)] If you synchronize access to the array before enumerating the span, as the revised version of the `EnumerateSpan` method does in the following example, the `ClearContents` method doesn't modify underlying span data during enumeration. Note that the example locks the underlying array on which the span is based. -[!code-csharp[System.Span.Enumerator-no-synchronization](~/samples/snippets/csharp/api/system/span.enumerator/sync/program.cs#1)] +[!code-csharp[System.Span.Enumerator-no-synchronization](~/samples/snippets/csharp/api/system/span.enumerator/sync/Program.cs#1)] Unlike some other enumerator structures in .NET, the : diff --git a/xml/System/String.xml b/xml/System/String.xml index c7f58e4312c..109cbfbcc19 100644 --- a/xml/System/String.xml +++ b/xml/System/String.xml @@ -4493,7 +4493,12 @@ Depending on Why you want to call the `Copy` method, there are a number of alter A callback to initialize the string. Creates a new string with a specific length and initializes it after creation by using the specified callback. The created string. - To be added. + + + diff --git a/xml/System/Type.xml b/xml/System/Type.xml index 1c21ca8bd92..fc2af22ec4d 100644 --- a/xml/System/Type.xml +++ b/xml/System/Type.xml @@ -451,7 +451,7 @@ TopNamespace.Sub\+Namespace.ContainingClass+NestedClass, MyAssembly, Version=1.3 [!code-csharp[type_assembly#1](~/samples/snippets/csharp/VS_Snippets_CLR/Type_Assembly/CS/type_assembly.cs#1)] [!code-vb[type_assembly#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/Type_Assembly/VB/type_assembly.vb#1)] - The following example compares the strings returned by the method and the `Name`, , and properties. + The following example compares the strings returned by the method and the , , and `AssemblyQualifiedName` properties. [!code-csharp[System.Type.ToString#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.type.tostring/cs/fullname1.cs#1)] [!code-vb[System.Type.ToString#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.type.tostring/vb/fullname1.vb#1)] @@ -1583,7 +1583,7 @@ The `filter` argument can be a custom delegate of type method and the `Name`, , and properties. + The following example compares the strings returned by the method and the , `FullName`, and properties. [!code-csharp[System.Type.ToString#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.type.tostring/cs/fullname1.cs#1)] [!code-vb[System.Type.ToString#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.type.tostring/vb/fullname1.vb#1)] @@ -12285,7 +12285,7 @@ Byref-like structures are declared using `ref struct` keyword in C#. An instance , and properties of the class. It checks whether the given type can be hosted in the context, whether it can be marshaled by reference, and whether the type is a primitive data type. + The following example demonstrates the , `IsMarshalByRef`, and properties of the class. It checks whether the given type can be hosted in the context, whether it can be marshaled by reference, and whether the type is a primitive data type. [!code-cpp[Type_IsContextful#1](~/samples/snippets/cpp/VS_Snippets_CLR/Type_IsContextful/CPP/type_iscontextful.cpp#1)] [!code-csharp[Type_IsContextful#1](~/samples/snippets/csharp/VS_Snippets_CLR/Type_IsContextful/CS/type_iscontextful.cs#1)] @@ -13010,7 +13010,7 @@ Byref-like structures are declared using `ref struct` keyword in C#. An instance ## Examples - The following example demonstrates the `IsContextful`, , and properties of the class. It checks whether the given type can be hosted in the context, whether it can be marshaled by reference, and whether the type is a primitive data type. + The following example demonstrates the , , and `IsPrimitive` properties of the class. It checks whether the given type can be hosted in the context, whether it can be marshaled by reference, and whether the type is a primitive data type. [!code-cpp[Type_IsContextful#1](~/samples/snippets/cpp/VS_Snippets_CLR/Type_IsContextful/CPP/type_iscontextful.cpp#1)] [!code-csharp[Type_IsContextful#1](~/samples/snippets/csharp/VS_Snippets_CLR/Type_IsContextful/CS/type_iscontextful.cs#1)] @@ -15363,7 +15363,7 @@ If the value of this property is `true` for an array type, it can be used to cre [!code-csharp[Type_ToString#1](~/samples/snippets/csharp/VS_Snippets_CLR/Type_ToString/CS/type_tostring.cs#1)] [!code-vb[Type_ToString#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/Type_ToString/VB/type_tostring.vb#1)] - The following example compares the strings returned by the method and the `Name`, , and properties. + The following example compares the strings returned by the `ToString` method and the , , and properties. [!code-csharp[System.Type.ToString#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.type.tostring/cs/fullname1.cs#1)] [!code-vb[System.Type.ToString#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.type.tostring/vb/fullname1.vb#1)]