The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
LocalBuilder::LocalType Property
.NET Framework (current version)
Gets the type of the local variable.
Assembly: mscorlib (in mscorlib.dll)
The following code sample illustrates the use of LocalType. This code is part of a larger example for the LocalBuilder class.
// Create local variables named myString and myInt. LocalBuilder^ myLB1 = myMethodIL->DeclareLocal( String::typeid ); myLB1->SetLocalSymInfo( "myString" ); Console::WriteLine( "local 'myString' type is: {0}", myLB1->LocalType ); LocalBuilder^ myLB2 = myMethodIL->DeclareLocal( int::typeid ); myLB2->SetLocalSymInfo( "myInt", 1, 2 ); Console::WriteLine( "local 'myInt' type is: {0}", myLB2->LocalType );
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Show: