func init // adds using namespace sys.add_use('System') sys.add_use('System.Reflection') // initialize instance sys.add_var(this.name, 'Type') if(not isdef("TypeName")) blk_init.println(this.codename, ' = typeof(', code(this.props("TypeName").value), ');') end // makes implementation methods for properties sys._prop_init('Assembly', 1, 0, 0) sys._prop_init('AssemblyQualifiedName', 1, 0, 2) sys._prop_init('Attributes', 1, 0, 0) sys._prop_init('BaseType', 1, 0, 0) sys._prop_init('ContainsGenericParameters', 1, 0, 104) sys._prop_init('DeclaringMethod', 1, 0, 0) sys._prop_init('DeclaringType', 1, 0, 0) sys._prop_init('DefaultBinder', 1, 0, 0, 'Type') sys._prop_init('FullName', 1, 0, 2) sys._prop_init('GenericParameterAttributes', 1, 0, 0) sys._prop_init('GenericParameterPosition', 1, 0, 1) sys._prop_init('GUID', 1, 0, 0) sys._prop_init('HasElementType', 1, 0, 104) sys._prop_init('IsAbstract', 1, 0, 104) sys._prop_init('IsAnsiClass', 1, 0, 104) sys._prop_init('IsArray', 1, 0, 104) sys._prop_init('IsAutoClass', 1, 0, 104) sys._prop_init('IsAutoLayout', 1, 0, 104) sys._prop_init('IsByRef', 1, 0, 104) sys._prop_init('IsClass', 1, 0, 104) sys._prop_init('IsCOMObject', 1, 0, 104) sys._prop_init('IsContextful', 1, 0, 104) sys._prop_init('IsEnum', 1, 0, 104) sys._prop_init('IsExplicitLayout', 1, 0, 104) sys._prop_init('IsGenericParameter', 1, 0, 104) sys._prop_init('IsGenericType', 1, 0, 104) sys._prop_init('IsGenericTypeDefinition', 1, 0, 104) sys._prop_init('IsImport', 1, 0, 104) sys._prop_init('IsInterface', 1, 0, 104) sys._prop_init('IsLayoutSequential', 1, 0, 104) sys._prop_init('IsMarshalByRef', 1, 0, 104) sys._prop_init('IsNested', 1, 0, 104) sys._prop_init('IsNestedAssembly', 1, 0, 104) sys._prop_init('IsNestedFamANDAssem', 1, 0, 104) sys._prop_init('IsNestedFamily', 1, 0, 104) sys._prop_init('IsNestedFamORAssem', 1, 0, 104) sys._prop_init('IsNestedPrivate', 1, 0, 104) sys._prop_init('IsNestedPublic', 1, 0, 104) sys._prop_init('IsNotPublic', 1, 0, 104) sys._prop_init('IsPointer', 1, 0, 104) sys._prop_init('IsPrimitive', 1, 0, 104) sys._prop_init('IsPublic', 1, 0, 104) sys._prop_init('IsSealed', 1, 0, 104) sys._prop_init('IsSecurityCritical', 1, 0, 104) sys._prop_init('IsSecuritySafeCritical', 1, 0, 104) sys._prop_init('IsSecurityTransparent', 1, 0, 104) sys._prop_init('IsSerializable', 1, 0, 104) sys._prop_init('IsSpecialName', 1, 0, 104) sys._prop_init('IsUnicodeClass', 1, 0, 104) sys._prop_init('IsValueType', 1, 0, 104) sys._prop_init('IsVisible', 1, 0, 104) sys._prop_init('MemberType', 1, 0, 0) sys._prop_init('Module', 1, 0, 0) sys._prop_init('Namespace', 1, 0, 2) sys._prop_init('ReflectedType', 1, 0, 0) sys._prop_init('StructLayoutAttribute', 1, 0, 0) sys._prop_init('TypeHandle', 1, 0, 0) sys._prop_init('TypeInitializer', 1, 0, 0) sys._prop_init('UnderlyingSystemType', 1, 0, 0) // makes implementation of methods as properties sys._mtd_as_prop_init('GetArrayRank()') sys._mtd_as_prop_init('GetConstructors()') sys._mtd_as_prop_init('GetDefaultMembers()') sys._mtd_as_prop_init('GetElementType()') sys._mtd_as_prop_init('GetEnumNames()') sys._mtd_as_prop_init('GetEnumUnderlyingType()') sys._mtd_as_prop_init('GetEnumValues()') sys._mtd_as_prop_init('GetEvents()') sys._mtd_as_prop_init('GetFields()') sys._mtd_as_prop_init('GetGenericArguments()') sys._mtd_as_prop_init('GetGenericParameterConstraints()') sys._mtd_as_prop_init('GetGenericTypeDefinition()') sys._mtd_as_prop_init('GetHashCode()') sys._mtd_as_prop_init('GetInterfaces()') sys._mtd_as_prop_init('GetMembers()') sys._mtd_as_prop_init('GetMethods()') sys._mtd_as_prop_init('GetNestedTypes()') sys._mtd_as_prop_init('GetProperties()') sys._mtd_as_prop_init('GetType()') sys._mtd_as_prop_init('MakeArrayType()') sys._mtd_as_prop_init('MakeByRefType()') sys._mtd_as_prop_init('MakePointerType()') sys._mtd_as_prop_init('ToString()') sys._mtd_as_prop_init('Type') end func Delimiter return('Type.Delimiter') end func EmptyTypes return('Type.EmptyTypes') end func FilterAttribute return('Type.FilterAttribute') end func FilterName return('Type.FilterName') end func FilterNameIgnoreCase return('Type.FilterNameIgnoreCase') end func Missing return('Type.Missing') end func TypeName return(code(this.props("TypeName").value)) end include("MemberInfo")