// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons // to whom the Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies or // substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE // FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. namespace ICSharpCode.Decompiler.TypeSystem { /// /// . /// public enum TypeKind : byte { /// Language-specific type that is not part of NRefactory.TypeSystem itself. Other, /// A or that is a class. Class, /// A or that is an interface. Interface, /// A or that is a struct. Struct, /// A or that is a delegate. /// System.Delegate itself is TypeKind.Class Delegate, /// A that is an enum. /// System.Enum itself is TypeKind.Class Enum, /// The System.Void type. /// Void, /// Type used for invalid expressions and for types whose definition could not be found. /// Unknown, /// The type of the null literal. /// Null, /// The type of expressions without type (except for null literals, which have TypeKind.Null). /// None, /// Type representing the C# 'dynamic' type. /// Dynamic, /// Represents missing type arguments in partially parameterized types. /// /// IType.GetNestedTypes(Predicate{ITypeDefinition}, GetMemberOptions) UnboundTypeArgument, /// The type is a type parameter. /// TypeParameter, /// An array type /// Array, /// A pointer type /// Pointer, /// A managed reference type /// ByReference, /// Intersection of several types /// Intersection, /// ArgList, /// A C# 7 tuple type. /// E.g. (string, int) /// Note: System.ValueTuple<string, int> is not considered a tuple type. /// /// Tuple, /// /// Modified type, with optional modifier. /// ModOpt, /// /// Modified type, with required modifier. /// ModReq, /// /// C# 9 nint /// NInt, /// /// C# 9 nuint /// NUInt, /// /// C# 9 delegate* /// FunctionPointer, } }