1using System.Reflection;
IKVM.Reflection.Assembly Assembly
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
Discovers the attributes of a class constructor and provides access to constructor metadata.
Discovers the attributes of an event and provides access to event metadata.
Discovers the attributes of a field and provides access to field metadata.
Obtains information about the attributes of a member and provides access to member metadata.
Provides information about methods and constructors.
Discovers the attributes of a method and provides access to method metadata.
Discovers the attributes of a property and provides access to property metadata.
Represents type declarations: class types, interface types, array types, value types,...
bool IsEnumDefined(object value)
Returns a value that indicates whether the specified value exists in the current enumeration type.
bool IsConstructedGenericType
Gets a value that indicates whether this object represents a constructed generic type....
bool HasElementType
Gets a value indicating whether the current ITypeSymbol encompasses or refers to another type; that i...
GenericParameterAttributes GenericParameterAttributes
Gets a combination of GenericParameterAttributes flags that describe the covariance and special const...
bool IsGenericType
Gets a value indicating whether the current type is a generic type.
IMethodSymbol[] GetMethods(BindingFlags bindingAttr)
When overridden in a derived class, searches for the methods defined for the current ITypeSymbol,...
bool IsNestedFamily
Gets a value indicating whether the ITypeSymbol is nested and visible only within its own family.
bool IsPublic
Gets a value indicating whether the ITypeSymbol is declared public.
IConstructorSymbol? TypeInitializer
Gets the initializer for the type.
bool IsEnum
Gets a value indicating whether the current ITypeSymbol represents an enumeration.
IMemberSymbol[] GetMember(string name, BindingFlags bindingAttr)
Searches for the specified members, using the specified binding constraints.
bool IsInterface
Gets a value indicating whether the ITypeSymbol is an interface; that is, not a class or a value type...
string? AssemblyQualifiedName
Gets the assembly-qualified name of the type, which includes the name of the assembly from which this...
int GetArrayRank()
Gets the number of dimensions in an array.
string? FullName
Gets the fully qualified name of the type, including its namespace but not its assembly.
bool IsPrimitive
Gets a value indicating whether the ITypeSymbol is one of the primitive types.
ITypeSymbol GetEnumUnderlyingType()
Returns the underlying type of the current enumeration type.
bool IsSubclassOf(ITypeSymbol c)
Determines whether the current ITypeSymbol derives from the specified ITypeSymbol.
ITypeSymbol[] GetNestedTypes()
Returns the public types nested in the current ITypeSymbol.
IEventSymbol[] GetEvents()
Returns all the public events that are declared or inherited by the current ITypeSymbol.
ITypeSymbol[] GenericTypeArguments
Gets an array of the generic type arguments for this type.
bool IsArray
Gets a value that indicates whether the type is an array.
IMemberSymbol[] GetMembers(BindingFlags bindingAttr)
When overridden in a derived class, searches for the members defined for the current ITypeSymbol,...
IConstructorSymbol? GetConstructor(BindingFlags bindingAttr, ITypeSymbol[] types)
Searches for a constructor whose parameters match the specified argument types, using the specified b...
bool IsAutoLayout
Gets a value indicating whether the fields of the current type are laid out automatically by the comm...
ITypeSymbol? GetNestedType(string name)
Searches for the public nested type with the specified name.
bool IsNested
Gets a value indicating whether the current ITypeSymbol object represents a type whose definition is ...
IFieldSymbol[] GetFields()
Returns all the public fields of the current ITypeSymbol.
bool IsSerializable
Gets a value indicating whether the ITypeSymbol is binary serializable.
ITypeSymbol? GetElementType()
When overridden in a derived class, returns the ITypeSymbol of the object encompassed or referred to ...
ITypeSymbol? GetInterface(string name)
Searches for the interface with the specified name.
IConstructorSymbol? GetConstructor(ITypeSymbol[] types)
Searches for a public instance constructor whose parameters match the types in the specified array.
IPropertySymbol? GetProperty(string name, BindingFlags bindingAttr)
Searches for the specified property, using the specified binding constraints.
IMemberSymbol[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
Searches for the specified members of the specified member type, using the specified binding constrai...
ITypeSymbol MakeArrayType(int rank)
Returns a ITypeSymbol object representing an array of the current type, with the specified number of ...
ITypeSymbol[] GetNestedTypes(BindingFlags bindingAttr)
When overridden in a derived class, searches for the types nested in the current ITypeSymbol,...
TypeAttributes Attributes
Gets the attributes associated with the .
IPropertySymbol[] GetProperties(BindingFlags bindingAttr)
When overridden in a derived class, searches for the properties of the current ITypeSymbol,...
IPropertySymbol? GetProperty(string name, ITypeSymbol? returnType)
Searches for the public property with the specified name and return type.
IPropertySymbol? GetProperty(string name, ITypeSymbol[] types)
Searches for the specified public property whose parameters match the specified argument types.
bool IsSealed
Gets a value indicating whether the ITypeSymbol is declared sealed.
bool IsExplicitLayout
Gets a value indicating whether the fields of the current type are laid out at explicitly specified o...
bool IsByRef
Gets a value indicating whether the ITypeSymbol is passed by reference.
bool IsNestedPrivate
Gets a value indicating whether the ITypeSymbol is nested and declared private.
IPropertySymbol[] GetProperties()
Returns all the public properties of the current ITypeSymbol.
bool IsNestedFamANDAssem
Gets a value indicating whether the ITypeSymbol is nested and visible only to classes that belong to ...
ITypeSymbol MakeGenericType(params ITypeSymbol[] typeArguments)
Substitutes the elements of an array of types for the type parameters of the current generic type def...
ITypeSymbol GetGenericTypeDefinition()
Returns a ITypeSymbol object that represents a generic type definition from which the current generic...
IMethodSymbol? GetMethod(string name, BindingFlags bindingAttr)
Searches for the specified method, using the specified binding constraints.
string? GetEnumName(object value)
Returns the name of the constant that has the specified value, for the current enumeration type.
int GenericParameterPosition
Gets the position of the type parameter in the type parameter list of the generic type or method that...
IMemberSymbol[] GetMember(string name)
Searches for the public members with the specified name.
IEventSymbol? GetEvent(string name, BindingFlags bindingAttr)
When overridden in a derived class, returns the EventInfo object representing the specified event,...
bool IsAbstract
Gets a value indicating whether the ITypeSymbol is abstract and must be overridden.
IEventSymbol? GetEvent(string name)
Returns the EventInfo object representing the specified public event.
bool IsNotPublic
Gets a value indicating whether the ITypeSymbol is not declared public.
bool IsNestedFamORAssem
Gets a value indicating whether the ITypeSymbol is nested and visible only to classes that belong to ...
bool IsNestedPublic
Gets a value indicating whether a class is nested and declared public.
IPropertySymbol? GetProperty(string name)
Searches for the public property with the specified name.
bool ContainsGenericParameters
Gets a value indicating whether the current ITypeSymbol object has type parameters that have not been...
IFieldSymbol? GetField(string name, BindingFlags bindingAttr)
Searches for the specified field, using the specified binding constraints.
IMethodBaseSymbol? DeclaringMethod
Gets a IMethodBaseSymbol that represents the declaring method, if the current ITypeSymbol represents ...
IPropertySymbol? GetProperty(string name, ITypeSymbol? returnType, ITypeSymbol[] types)
Searches for the specified public property whose parameters match the specified argument types.
ITypeSymbol MakeArrayType()
Returns a ITypeSymbol object representing a one-dimensional array of the current type,...
ITypeSymbol[] GetGenericArguments()
Returns an array of ITypeSymbol objects that represent the type arguments of a closed generic type or...
IMethodSymbol? GetMethod(string name, ITypeSymbol[] types)
Searches for the specified public method whose parameters match the specified argument types.
string? Namespace
Gets the namespace of the ITypeSymbol.
bool IsLayoutSequential
Gets a value indicating whether the fields of the current type are laid out sequentially,...
bool IsNestedAssembly
Gets a value indicating whether the ITypeSymbol is nested and visible only within its own assembly.
ITypeSymbol MakeByRefType()
Returns a ITypeSymbol object that represents the current type when passed as a ref parameter (ByRef p...
IEventSymbol[] GetEvents(BindingFlags bindingAttr)
When overridden in a derived class, searches for events that are declared or inherited by the current...
ITypeSymbol? GetInterface(string name, bool ignoreCase)
When overridden in a derived class, searches for the specified interface, specifying whether to do a ...
bool IsPointer
Gets a value indicating whether the ITypeSymbol is a pointer.
bool IsClass
Gets a value indicating whether the ITypeSymbol is a class or a delegate; that is,...
IMethodSymbol[] GetMethods()
Returns all the public methods of the current ITypeSymbol.
string[] GetEnumNames()
Returns the names of the members of the current enumeration type.
IFieldSymbol? GetField(string name)
Searches for the public field with the specified name.
bool IsValueType
Gets a value indicating whether the ITypeSymbol is a value type.
ITypeSymbol? BaseType
Gets the type from which the current ITypeSymbol directly inherits.
IConstructorSymbol[] GetConstructors(BindingFlags bindingAttr)
When overridden in a derived class, searches for the constructors defined for the current ITypeSymbol...
InterfaceMapping GetInterfaceMap(ITypeSymbol interfaceType)
Returns an interface mapping for the specified interface type.
IMethodSymbol? GetMethod(string name)
Searches for the public method with the specified name.
bool IsGenericParameter
Gets a value indicating whether the current ITypeSymbol represents a type parameter in the definition...
IFieldSymbol[] GetFields(BindingFlags bindingAttr)
When overridden in a derived class, searches for the fields defined for the current ITypeSymbol,...
ITypeSymbol? GetNestedType(string name, BindingFlags bindingAttr)
When overridden in a derived class, searches for the specified nested type, using the specified bindi...
ITypeSymbol MakePointerType()
Returns a ITypeSymbol object that represents a pointer to the current type.
IMemberSymbol[] GetMembers()
Returns all the public members of the current ITypeSymbol.
IMemberSymbol[] GetDefaultMembers()
Searches for the members defined for the current ITypeSymbol whose DefaultMemberAttribute is set.
bool IsVisible
Gets a value indicating whether the ITypeSymbol can be accessed by code outside the assembly.
IConstructorSymbol[] GetConstructors()
Returns all the public constructors defined for the current ITypeSymbol.
ITypeSymbol[] GetInterfaces()
When overridden in a derived class, gets all the interfaces implemented or inherited by the current I...
IMethodSymbol? GetMethod(string name, BindingFlags bindingAttr, ITypeSymbol[] types)
Searches for the specified method whose parameters match the specified argument types,...
bool IsAssignableFrom(ITypeSymbol? c)
Determines whether an instance of a specified type c can be assigned to a variable of the current typ...
ITypeSymbol[] GetGenericParameterConstraints()
Returns an array of ITypeSymbol objects that represent the constraints on the current generic type pa...