diff options
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Reflection/LocalVariableInfo.cs')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Reflection/LocalVariableInfo.cs | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/System.Private.CoreLib/src/System/Reflection/LocalVariableInfo.cs b/src/System.Private.CoreLib/src/System/Reflection/LocalVariableInfo.cs deleted file mode 100644 index 31e58caeb..000000000 --- a/src/System.Private.CoreLib/src/System/Reflection/LocalVariableInfo.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Diagnostics; - -namespace System.Reflection -{ - public class LocalVariableInfo - { - protected LocalVariableInfo() - { - } - - public virtual bool IsPinned - { - get - { - return false; - } - } - - public virtual int LocalIndex - { - get - { - return 0; - } - } - - public virtual Type LocalType - { - get - { - // Don't laugh - this is really how the desktop behaves if you don't override. - Debug.Fail("type must be set!"); - return null; - } - } - - public override string ToString() - { - // Don't laugh - this is really how the desktop behaves if you don't override, including the NullReference when - // it calls ToString() on LocalType's null return. - string toString = LocalType.ToString() + " (" + LocalIndex + ")"; - - if (IsPinned) - toString += " (pinned)"; - - return toString; - } - } -} - |