system\activator.cs (12)
55static public Object CreateInstance(Type type,
66static public Object CreateInstance(Type type,
110static public Object CreateInstance(Type type, params Object[] args)
120static public Object CreateInstance(Type type,
132static public Object CreateInstance(Type type)
181static public Object CreateInstance(Type type, bool nonPublic)
321Type type = null;
333type = Type.GetType(typeName + ", " + assemblyString, true /*throwOnError*/, ignoreCase);
439Type t = assembly.GetType(typeName, true, ignoreCase);
639Type t = assembly.GetType(typeName, true, false);
674static public Object GetObject(Type type, String url)
682static public Object GetObject(Type type, String url, Object state)
system\array.cs (10)
72public unsafe static Array CreateInstance(Type elementType, int length)
90public unsafe static Array CreateInstance(Type elementType, int length1, int length2)
111public unsafe static Array CreateInstance(Type elementType, int length1, int length2, int length3)
138public unsafe static Array CreateInstance(Type elementType, params int[] lengths)
166public static Array CreateInstance(Type elementType, params long[] lengths)
192public unsafe static Array CreateInstance(Type elementType, int[] lengths,int[] lowerBounds)
233internal static Array UnsafeCreateInstance(Type elementType, int length)
242internal static Array UnsafeCreateInstance(Type elementType, int length1, int length2)
251internal static Array UnsafeCreateInstance(Type elementType, params int[] lengths)
260internal static Array UnsafeCreateInstance(Type elementType, int[] lengths, int[] lowerBounds)
system\attribute.cs (53)
28private static Attribute[] InternalGetCustomAttributes(PropertyInfo element, Type type, bool inherit)
41Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11);
48Type[] indexParamTypes = GetIndexParameterTypes(element);
63private static bool InternalIsDefined(PropertyInfo element, Type attributeType, bool inherit)
77Type[] indexParamTypes = GetIndexParameterTypes(element);
93private static PropertyInfo GetParentDefinition(PropertyInfo property, Type[] propertyParameters)
136private static Attribute[] InternalGetCustomAttributes(EventInfo element, Type type, bool inherit)
147Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11);
185private static bool InternalIsDefined (EventInfo element, Type attributeType, bool inherit)
237private static Attribute[] InternalParamGetCustomAttributes(ParameterInfo param, Type type, bool inherit)
248List<Type> disAllowMultiple = new List<Type>();
258Type objType = objAttr[i].GetType();
286Type objType = objAttr[i].GetType();
327private static bool InternalParamIsDefined(ParameterInfo param, Type type, bool inherit)
352Type objType = objAttr[i].GetType();
368private static void CopyToArrayList(List<Attribute> attributeList,Attribute[] attributes,Dictionary<Type, AttributeUsageAttribute> types)
374Type attrType = attributes[i].GetType();
381private static Type[] GetIndexParameterTypes(PropertyInfo element)
387Type[] indexParamTypes = new Type[indexParams.Length];
395return Array.Empty<Type>();
398private static void AddAttributesToList(List<Attribute> attributeList, Attribute[] attributes, Dictionary<Type, AttributeUsageAttribute> types)
402Type attrType = attributes[i].GetType();
423private static AttributeUsageAttribute InternalGetAttributeUsage(Type type)
439private static Attribute[] CreateAttributeArrayHelper(Type elementType, int elementCount)
450public static Attribute[] GetCustomAttributes(MemberInfo element, Type type)
455public static Attribute[] GetCustomAttributes(MemberInfo element, Type type, bool inherit)
504public static bool IsDefined(MemberInfo element, Type attributeType)
509public static bool IsDefined(MemberInfo element, Type attributeType, bool inherit)
536public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType)
541public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit)
562public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType)
567public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType, bool inherit)
607public static bool IsDefined(ParameterInfo element, Type attributeType)
612public static bool IsDefined(ParameterInfo element, Type attributeType, bool inherit)
644public static Attribute GetCustomAttribute(ParameterInfo element, Type attributeType)
649public static Attribute GetCustomAttribute(ParameterInfo element, Type attributeType, bool inherit)
670public static Attribute[] GetCustomAttributes(Module element, Type attributeType)
689public static Attribute[] GetCustomAttributes(Module element, Type attributeType, bool inherit)
704public static bool IsDefined(Module element, Type attributeType)
709public static bool IsDefined(Module element, Type attributeType, bool inherit)
725public static Attribute GetCustomAttribute(Module element, Type attributeType)
730public static Attribute GetCustomAttribute(Module element, Type attributeType, bool inherit)
748public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType)
753public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType, bool inherit)
782public static bool IsDefined (Assembly element, Type attributeType)
787public static bool IsDefined (Assembly element, Type attributeType, bool inherit)
803public static Attribute GetCustomAttribute(Assembly element, Type attributeType)
808public static Attribute GetCustomAttribute(Assembly element, Type attributeType, bool inherit)
914Type type = GetType();
system\defaultbinder.cs (36)
84Type[] paramArrayTypes = new Type[candidates.Length];
86Type[] argTypes = new Type[args.Length];
105Type paramArrayType = null;
196Type pCls = null;
214if (defaultValueBinding && args[paramOrder[i][j]] == Type.Missing)
452Type valueType = null;
461Type pCls = candidates[i].FieldType;
519public override MethodBase SelectMethod(BindingFlags bindingAttr,MethodBase[] match,Type[] types,ParameterModifier[] modifiers)
524Type[] realTypes = new Type[types.Length];
546Type pCls = par[j].ParameterType;
594public override PropertyInfo SelectProperty(BindingFlags bindingAttr,PropertyInfo[] match,Type returnType,
595Type[] indexes,ParameterModifier[] modifiers)
598if (indexes != null && !Contract.ForAll(indexes, delegate(Type t) { return t != null; }))
629Type pCls = par[j]. ParameterType;
706public override Object ChangeType(Object value,Type type,CultureInfo cultureInfo)
740public static MethodBase ExactBinding(MethodBase[] match,Type[] types,ParameterModifier[] modifiers)
755Type pCls = par[j]. ParameterType;
780public static PropertyInfo ExactPropertyBinding(PropertyInfo[] match,Type returnType,Type[] types,ParameterModifier[] modifiers)
792Type pCls = par[j].ParameterType;
811private static int FindMostSpecific(ParameterInfo[] p1, int[] paramOrder1, Type paramArrayType1,
812ParameterInfo[] p2, int[] paramOrder2, Type paramArrayType2,
813Type[] types, Object[] args)
826if (args != null && args[i] == Type.Missing)
829Type c1, c2;
888private static int FindMostSpecificType(Type c1, Type c2, Type t)
951private static int FindMostSpecificMethod(MethodBase m1, int[] paramOrder1, Type paramArrayType1,
952MethodBase m2, int[] paramOrder2, Type paramArrayType2,
953Type[] types, Object[] args)
1050internal static int GetHierarchyDepth(Type t)
1054Type currentType = t;
system\delegate.cs (17)
72protected unsafe Delegate(Type target,String method)
256Type currentType = _target.GetType();
257Type targetType = declaringType.GetGenericTypeDefinition();
342public static Delegate CreateDelegate(Type type, Object target, String method)
348public static Delegate CreateDelegate(Type type, Object target, String method, bool ignoreCase)
372public static Delegate CreateDelegate(Type type, Object target, String method, bool ignoreCase, bool throwOnBindFailure)
420public static Delegate CreateDelegate(Type type, Type target, String method)
426public static Delegate CreateDelegate(Type type, Type target, String method, bool ignoreCase)
433public static Delegate CreateDelegate(Type type, Type target, String method, bool ignoreCase, bool throwOnBindFailure)
484public static Delegate CreateDelegate(Type type, MethodInfo method, bool throwOnBindFailure)
527public static Delegate CreateDelegate(Type type, Object firstArgument, MethodInfo method)
535public static Delegate CreateDelegate(Type type, Object firstArgument, MethodInfo method, bool throwOnBindFailure)
606internal unsafe static Delegate CreateDelegateNoSecurityCheck(Type type, Object target, RuntimeMethodHandle method)
677public static Delegate CreateDelegate(Type type, MethodInfo method)
system\diagnostics\eventing\eventsource.cs (23)
392public static Guid GetGuid(Type eventSourceType)
428public static string GetName(Type eventSourceType)
443public static string GenerateManifest(Type eventSourceType, string assemblyPathToIncludeInManifest)
459public static string GenerateManifest(Type eventSourceType, string assemblyPathToIncludeInManifest, EventManifestOptions flags)
754var myType = this.GetType();
1561private static string GetName(Type eventSourceType, EventManifestOptions flags)
1770Type dataType = m_eventData[eventId].Parameters[parameterId].ParameterType;
2096Type pType = infos[i].ParameterType;
2233var tlet = new TraceLoggingEventTypes(eventName, EventTags.None, new Type[] { msg.GetType() });
3140internal static Attribute GetCustomAttributeHelper(MemberInfo member, Type attributeType, EventManifestOptions flags = EventManifestOptions.None)
3181Type t = attr.GetType();
3216private static bool AttributeTypeNamesMatch(Type attributeType, Type reflectedAttributeType)
3234private static Type GetEventSourceBaseType(Type eventSourceType, bool allowEventSourceOverride, bool reflectionOnly)
3268private static byte[] CreateManifestAndDescriptors(Type eventSourceType, string eventSourceDllName, EventSource source,
3331Type nestedType = eventSourceType.GetNestedType(providerEnumKind);
3601Type staticFieldType = staticField.FieldType;
6207public void AddEventParameter(Type type, string name)
6237mapsTab = new Dictionary<string, Type>();
6412foreach (Type enumType in mapsTab.Values)
6724private string GetTypeName(Type type)
6894Dictionary<string, Type> mapsTab;
system\enum.cs (31)
351public static Object Parse(Type enumType, String value)
357public static Object Parse(Type enumType, String value, bool ignoreCase)
367private static bool TryParseEnum(Type enumType, String value, bool ignoreCase, ref EnumResult parseResult)
397Type underlyingType = GetUnderlyingType(enumType);
484public static Type GetUnderlyingType(Type enumType)
488Contract.Ensures(Contract.Result<Type>() != null);
495public static Array GetValues(Type enumType)
512public static String GetName(Type enumType, Object value)
522public static String[] GetNames(Type enumType)
539public static Object ToObject(Type enumType, Object value)
596public static bool IsDefined(Type enumType, Object value)
606public static String Format(Type enumType, Object value, String format)
626Type valueType = value.GetType();
628Type underlyingType = GetUnderlyingType(enumType);
632Type valueUnderlyingType = GetUnderlyingType(valueType);
834Type thisType = this.GetType();
835Type targetType = target.GetType();
894Type enumType = this.GetType();
895Type underlyingType = GetUnderlyingType(enumType);
1036Object IConvertible.ToType(Type type, IFormatProvider provider)
1046public static Object ToObject(Type enumType, sbyte value)
1061public static Object ToObject(Type enumType, short value)
1076public static Object ToObject(Type enumType, int value)
1091public static Object ToObject(Type enumType, byte value)
1107public static Object ToObject(Type enumType, ushort value)
1123public static Object ToObject(Type enumType, uint value)
1138public static Object ToObject(Type enumType, long value)
1154public static Object ToObject(Type enumType, ulong value)
1168private static Object ToObject(Type enumType, char value)
1182private static Object ToObject(Type enumType, bool value)
system\io\isolatedstorage\isolatedstorage.cs (11)
558Type domainEvidenceType,
559Type assemblyEvidenceType)
613Type appEvidenceType)
729Evidence domainEv, Type domainEvidenceType,
730Evidence assemEv, Type assemEvidenceType,
731Evidence appEv, Type appEvidenceType)
805Evidence domainEv, Type domainEvidenceType,
806Evidence assemEv, Type assemblyEvidenceType,
807Evidence appEv, Type appEvidenceType)
869Evidence evidence, Type evidenceType, IsolatedStorageScope fAssmDomApp,
961Evidence evidence, Type evidenceType, IsolatedStorageScope fAssmDomApp,
system\reflection\assembly.cs (30)
73public static Assembly GetAssembly(Type type)
293internal static Type GetType_Compat(String assemblyString, String typeName)
308return Type.GetType(typeName + ", " + assemblyString, true /*throwOnError*/, false /*ignoreCase*/);
742Type _Assembly.GetType()
748public virtual Type GetType(String name)
753public virtual Type GetType(String name, bool throwOnError)
758public virtual Type GetType(String name, bool throwOnError, bool ignoreCase)
763public virtual IEnumerable<Type> ExportedTypes
771public virtual Type[] GetExportedTypes()
780Type[] types = GetTypes();
800public virtual Type[] GetTypes()
806Type[][] ModuleTypes = new Type[iNumModules][];
815Type[] ret = new Type[iFinalLength];
827public virtual Stream GetManifestResourceStream(Type type, String name)
922public virtual Object[] GetCustomAttributes(Type attributeType, bool inherit)
928public virtual bool IsDefined(Type attributeType, bool inherit)
1015Type t = GetType(typeName, false, ignoreCase);
1288Type invocableAttribute = GetType("__DynamicallyInvokableAttribute", false);
1293ConstructorInfo ctor = invocableAttribute.GetConstructor(Type.EmptyTypes);
1489public override Type GetType(String name, bool throwOnError, bool ignoreCase)
1513public override Type[] GetExportedTypes()
1515Type[] types = null;
1541public override Stream GetManifestResourceStream(Type type, String name)
1651public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
1665public override bool IsDefined(Type attributeType, bool inherit)
2467Type type,
2482sb.Append(Type.Delimiter);
2813Type type = sys.GetType("System.Net.NetworkAccess", true);
system\reflection\cominterfaces.cs (84)
21[TypeLibImportClassAttribute(typeof(System.Type))]
37Type GetType();
43Type DeclaringType { get; }
44Type ReflectedType { get; }
45Object[] GetCustomAttributes(Type attributeType, bool inherit);
47bool IsDefined(Type attributeType, bool inherit);
59Type BaseType { get; }
62Type GetInterface(String name, bool ignoreCase);
63Type[] GetInterfaces();
64Type[] FindInterfaces(TypeFilter filter,Object filterCriteria);
68Type[] GetNestedTypes(BindingFlags bindingAttr);
69Type GetNestedType(String name, BindingFlags bindingAttr);
73Type GetElementType();
74bool IsSubclassOf(Type c);
76bool IsAssignableFrom(Type c);
77InterfaceMapping GetInterfaceMap(Type interfaceType);
78MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers);
84PropertyInfo GetProperty(String name,BindingFlags bindingAttr,Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers);
89Type UnderlyingSystemType
96ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers);
97ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers);
98ConstructorInfo GetConstructor(Type[] types);
105MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers);
106MethodInfo GetMethod(String name, Type[] types, ParameterModifier[] modifiers);
107MethodInfo GetMethod(String name, Type[] types);
112Type GetInterface(String name);
114PropertyInfo GetProperty(String name, Type returnType, Type[] types,ParameterModifier[] modifiers);
115PropertyInfo GetProperty(String name, Type returnType, Type[] types);
116PropertyInfo GetProperty(String name, Type[] types);
117PropertyInfo GetProperty(String name, Type returnType);
120Type[] GetNestedTypes();
121Type GetNestedType(String name);
156bool Equals(Type o);
173Type GetType();
193Type GetType(String name);
194Type GetType(String name, bool throwOnError);
195Type[] GetExportedTypes();
196Type[] GetTypes();
197Stream GetManifestResourceStream(Type type, String name);
218Object[] GetCustomAttributes(Type attributeType, bool inherit);
220bool IsDefined(Type attributeType, bool inherit);
227Type GetType(String name, bool throwOnError, bool ignoreCase);
268Type GetType();
274Type DeclaringType { get; }
275Type ReflectedType { get; }
276Object[] GetCustomAttributes(Type attributeType, bool inherit);
278bool IsDefined(Type attributeType, bool inherit);
303Type GetType();
309Type DeclaringType { get; }
310Type ReflectedType { get; }
311Object[] GetCustomAttributes(Type attributeType, bool inherit);
313bool IsDefined(Type attributeType, bool inherit);
361Type GetType();
367Type DeclaringType { get; }
368Type ReflectedType { get; }
369Object[] GetCustomAttributes(Type attributeType, bool inherit);
371bool IsDefined(Type attributeType, bool inherit);
398Type ReturnType { get; }
425Type GetType();
431Type DeclaringType { get; }
432Type ReflectedType { get; }
433Object[] GetCustomAttributes(Type attributeType, bool inherit);
435bool IsDefined(Type attributeType, bool inherit);
488Type GetType();
494Type DeclaringType { get; }
495Type ReflectedType { get; }
496Object[] GetCustomAttributes(Type attributeType, bool inherit);
498bool IsDefined(Type attributeType, bool inherit);
502Type FieldType { get; }
546Type GetType();
552Type DeclaringType { get; }
553Type ReflectedType { get; }
554Object[] GetCustomAttributes(Type attributeType, bool inherit);
556bool IsDefined(Type attributeType, bool inherit);
560Type PropertyType { get; }
600Type GetType();
606Type DeclaringType { get; }
607Type ReflectedType { get; }
608Object[] GetCustomAttributes(Type attributeType, bool inherit);
610bool IsDefined(Type attributeType, bool inherit);
623Type EventHandlerType { get; }
system\reflection\customattribute.cs (29)
229if (type == (RuntimeType)typeof(Type))
340internal static CustomAttributeTypedArgument Filter(IList<CustomAttributeData> attrs, Type caType, int parameter)
414Type type = typeof(DllImportAttribute);
444Type type = typeof(MarshalAsAttribute);
481Type type = typeof(TypeForwardedToAttribute);
483Type[] sig = new Type[] { typeof(Type) };
487typedArgs[0] = new CustomAttributeTypedArgument(typeof(Type), forwardedTo.Destination);
525public Type AttributeType { get { return Constructor.DeclaringType; } }
613Type type = null;
657internal Type ArgumentType
693private static Type CustomAttributeEncodingToType(CustomAttributeEncoding encodedType)
707return typeof(Type);
812private Type m_argumentType;
816public CustomAttributeTypedArgument(Type argumentType, object value)
866m_argumentType = typeof(Type);
876Type elementType;
930else if (ArgumentType == typeof(Type))
931return String.Format(CultureInfo.CurrentCulture, "typeof({0})", ((Type)Value).FullName);
938Type elementType = ArgumentType.GetElementType();
961public Type ArgumentType
1182private static RuntimeType Type_Type = (RuntimeType)typeof(Type);
1356Type arrayType = useObjectArray ? typeof(object) : caType;
1457Type arrayType = useObjectArray ? typeof(object) : caType;
1665Type arrayType = useObjectArray ? typeof(object) : attributeFilterType;
1785property = attributeType.GetProperty(name, type, Type.EmptyTypes) as RuntimePropertyInfo;
1816field.UnsafeSetValue(attribute, value, BindingFlags.Default, Type.DefaultBinder, null);
2092private static object[] CreateAttributeArrayHelper(Type elementType, int elementCount)
system\reflection\CustomAttributeExtensions.cs (18)
8public static Attribute GetCustomAttribute(this Assembly element, Type attributeType)
12public static Attribute GetCustomAttribute(this Module element, Type attributeType)
16public static Attribute GetCustomAttribute(this MemberInfo element, Type attributeType)
20public static Attribute GetCustomAttribute(this ParameterInfo element, Type attributeType)
42public static Attribute GetCustomAttribute(this MemberInfo element, Type attributeType, bool inherit)
46public static Attribute GetCustomAttribute(this ParameterInfo element, Type attributeType, bool inherit)
90public static IEnumerable<Attribute> GetCustomAttributes(this Assembly element, Type attributeType)
94public static IEnumerable<Attribute> GetCustomAttributes(this Module element, Type attributeType)
98public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, Type attributeType)
102public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, Type attributeType)
124public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, Type attributeType, bool inherit)
128public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, Type attributeType, bool inherit)
144public static bool IsDefined(this Assembly element, Type attributeType)
148public static bool IsDefined(this Module element, Type attributeType)
152public static bool IsDefined(this MemberInfo element, Type attributeType)
156public static bool IsDefined(this ParameterInfo element, Type attributeType)
161public static bool IsDefined(this MemberInfo element, Type attributeType, bool inherit)
165public static bool IsDefined(this ParameterInfo element, Type attributeType, bool inherit)
system\reflection\emit\assemblybuilder.cs (18)
119public override Stream GetManifestResourceStream(Type type, String name)
156public override Type[] GetExportedTypes()
707Type symWriter = assem.GetType("System.Diagnostics.SymbolStore.SymWriter", true, false);
911Type symWriter = assem.GetType("System.Diagnostics.SymbolStore.SymWriter", true, false);
957internal void CheckContext(params Type[][] typess)
962foreach(Type[] types in typess)
967internal void CheckContext(params Type[] types)
972foreach (Type type in types)
1182public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
1187public override bool IsDefined(Type attributeType, bool inherit)
1221public override Stream GetManifestResourceStream(Type type, String name)
1277public override Type[] GetExportedTypes()
1300public override Type GetType(String name, bool throwOnError, bool ignoreCase)
1778Type type;
2121private int DefineNestedComType(Type type, int tkResolutionScope, int tkTypeDef)
2123Type enclosingType = type.DeclaringType;
2136internal int DefineExportedTypeInMemory(Type type, int tkResolutionScope, int tkTypeDef)
2138Type enclosingType = type.DeclaringType;
system\reflection\emit\dynamicilgenerator.cs (16)
63public override LocalBuilder DeclareLocal(Type localType, bool pinned)
178public override void Emit(OpCode opcode, Type type)
236Type returnType,
237Type[] parameterTypes,
238Type[] optionalParameterTypes)
277Type returnType,
278Type[] parameterTypes)
313public override void EmitCall(OpCode opcode, MethodInfo methodInfo, Type[] optionalParameterTypes)
403public override void BeginCatchBlock(Type exceptionType)
488private int GetMemberRefToken(MethodBase methodInfo, Type[] optionalParameterTypes)
490Type[] parameterTypes;
504parameterTypes = new Type[paramInfo.Length];
527Type returnType,
528Type[] parameterTypes,
529Type[] optionalParameterTypes)
1240Type t = m.DeclaringType.GetGenericTypeDefinition();
system\reflection\emit\dynamicmethod.cs (40)
80Type returnType,
81Type[] parameterTypes)
100Type returnType,
101Type[] parameterTypes,
125Type returnType,
126Type[] parameterTypes,
149Type returnType,
150Type[] parameterTypes,
176Type returnType,
177Type[] parameterTypes,
201Type returnType,
202Type[] parameterTypes,
203Type owner) {
225Type returnType,
226Type[] parameterTypes,
227Type owner,
252Type returnType,
253Type[] parameterTypes,
254Type owner,
303ConstructorInfo transparencyCtor = typeof(SecurityTransparentAttribute).GetConstructor(Type.EmptyTypes);
317ConstructorInfo securityRulesCtor = typeof(SecurityRulesAttribute).GetConstructor(new Type[] { typeof(SecurityRuleSet) });
347Type returnType,
348Type[] signature,
349Type owner,
485private void PerformSecurityCheck(Type owner, ref StackCrawlMark stackMark, bool skipVisibility)
532public sealed override Delegate CreateDelegate(Type delegateType) {
548public sealed override Delegate CreateDelegate(Type delegateType, Object target) {
606public override Type DeclaringType { get { return m_dynMethod.DeclaringType; } }
608public override Type ReflectedType { get { return m_dynMethod.ReflectedType; } }
758public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
765public override bool IsDefined(Type attributeType, bool inherit) { return m_dynMethod.IsDefined(attributeType, inherit); }
767public override Type ReturnType { get { return m_dynMethod.ReturnType; } }
884public override Type DeclaringType {
888public override Type ReflectedType {
934public override Object[] GetCustomAttributes(Type attributeType, bool inherit) {
950public override bool IsDefined(Type attributeType, bool inherit) {
976public override Type ReturnType
998Type[] parameterTypes = m_owner.m_parameterTypes;
1019Object[] ICustomAttributeProvider.GetCustomAttributes(Type attributeType, bool inherit) {
1027bool ICustomAttributeProvider.IsDefined (Type attributeType, bool inherit) {
system\reflection\emit\enumbuilder.cs (23)
61public Type CreateType()
132public override Type BaseType {
137CallingConventions callConvention, Type[] types,ParameterModifier[] modifiers)
150CallingConventions callConvention, Type[] types,ParameterModifier[] modifiers)
173public override Type GetInterface(String name, bool ignoreCase)
178public override Type[] GetInterfaces()
194Type returnType, Type[] types, ParameterModifier[] modifiers)
204public override Type[] GetNestedTypes(BindingFlags bindingAttr)
209public override Type GetNestedType(String name, BindingFlags bindingAttr)
225public override InterfaceMapping GetInterfaceMap(Type interfaceType)
277public override Type GetElementType()
291public override Type GetEnumUnderlyingType()
296public override Type UnderlyingSystemType
311public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
334public override Type DeclaringType {
340public override Type ReflectedType {
346public override bool IsDefined (Type attributeType, bool inherit)
365public override Type MakePointerType()
370public override Type MakeByRefType()
375public override Type MakeArrayType()
380public override Type MakeArrayType(int rank)
406Type underlyingType, // underlying type for an Enum
system\reflection\emit\generictypeparameterbuilder.cs (28)
55public override Type DeclaringType { get { return m_type.DeclaringType; } }
57public override Type ReflectedType { get { return m_type.ReflectedType; } }
68public override Type MakePointerType()
73public override Type MakeByRefType()
78public override Type MakeArrayType()
83public override Type MakeArrayType(int rank)
119public override Type BaseType { get { return m_type.BaseType; } }
121protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
126protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
134public override Type GetInterface(String name, bool ignoreCase) { throw new NotSupportedException(); }
136public override Type[] GetInterfaces() { throw new NotSupportedException(); }
142protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
146public override Type[] GetNestedTypes(BindingFlags bindingAttr) { throw new NotSupportedException(); }
148public override Type GetNestedType(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
153public override InterfaceMapping GetInterfaceMap(Type interfaceType) { throw new NotSupportedException(); }
171public override Type GetElementType() { throw new NotSupportedException(); }
175public override Type UnderlyingSystemType { get { return this; } }
177public override Type[] GetGenericArguments() { throw new InvalidOperationException(); }
195public override Type GetGenericTypeDefinition() { throw new InvalidOperationException(); }
197public override Type MakeGenericType(params Type[] typeArguments) { throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericTypeDefinition")); }
201public override bool IsAssignableFrom(Type c) { throw new NotSupportedException(); }
205public override bool IsSubclassOf(Type c) { throw new NotSupportedException(); }
211public override Object[] GetCustomAttributes(Type attributeType, bool inherit) { throw new NotSupportedException(); }
213public override bool IsDefined(Type attributeType, bool inherit) { throw new NotSupportedException(); }
230public void SetBaseTypeConstraint(Type baseTypeConstraint)
237public void SetInterfaceConstraints(params Type[] interfaceConstraints)
system\reflection\emit\ilgenerator.cs (38)
223private int GetMethodToken(MethodBase method, Type[] optionalParameterTypes, bool useMethodDef)
229internal virtual SignatureHelper GetMemberRefSignature(CallingConventions call, Type returnType,
230Type[] parameterTypes, Type[] optionalParameterTypes)
236private SignatureHelper GetMemberRefSignature(CallingConventions call, Type returnType,
237Type[] parameterTypes, Type[] optionalParameterTypes, int cGenericParameters)
519Type returnType, Type[] parameterTypes, Type[] optionalParameterTypes)
561public virtual void EmitCalli(OpCode opcode, CallingConvention unmanagedCallConv, Type returnType, Type[] parameterTypes)
607public virtual void EmitCall(OpCode opcode, MethodInfo methodInfo, Type[] optionalParameterTypes)
627Type[] parameters = methodInfo.GetParameterTypes();
713Type[] parameters = con.GetParameterTypes();
724public virtual void Emit(OpCode opcode, Type cls)
1046public virtual void BeginCatchBlock(Type exceptionType)
1161public virtual void ThrowException(Type excType)
1173ConstructorInfo con = excType.GetConstructor(Type.EmptyTypes);
1186Type[] parameterTypes = new Type[1];
1208Type[] parameterTypes = new Type[1];
1213parameterTypes[0] = (Type)cls;
1246Type[] parameterTypes = new Type[1];
1251parameterTypes[0] = (Type)cls;
1262public virtual LocalBuilder DeclareLocal(Type localType)
1267public virtual LocalBuilder DeclareLocal(Type localType, bool pinned)
1416internal Type []m_catchClass;
1446m_catchClass=new Type[4];
1454private static Type[] EnlargeArray(Type[] incoming)
1456Type[] temp = new Type[incoming.Length * 2];
1464Type catchClass, // catch exception type
1524internal void MarkCatchAddr(int catchAddr, Type catchException) {
1575internal Type [] GetCatchClass() {
system\reflection\emit\methodbuilder.cs (47)
58internal Type[] m_parameterTypes;
60private Type m_returnType;
61private Type[] m_returnTypeRequiredCustomModifiers;
62private Type[] m_returnTypeOptionalCustomModifiers;
63private Type[][] m_parameterTypeRequiredCustomModifiers;
64private Type[][] m_parameterTypeOptionalCustomModifiers;
73Type returnType, Type[] parameterTypes, ModuleBuilder mod, TypeBuilder type, bool bIsGlobalMethod)
79Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
80Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers,
90Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
91Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers,
109foreach(Type t in parameterTypes)
157m_parameterTypes = new Type[parameterTypes.Length];
191internal void CheckContext(params Type[][] typess)
196internal void CheckContext(params Type[] types)
217Type[] catchClass;
349internal override Type[] GetParameterTypes()
352m_parameterTypes = EmptyArray<Type>.Value;
357internal static Type GetMethodBaseReturnType(MethodBase method)
398m_parameterTypes = EmptyArray<Type>.Value;
548public override Type DeclaringType
566public override Type ReflectedType
624public override Type ReturnType
664public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
670public override bool IsDefined(Type attributeType, bool inherit)
687public override Type[] GetGenericArguments() { return m_inst; }
689public override MethodInfo MakeGenericMethod(params Type[] typeArguments)
798public void SetParameters (params Type[] parameterTypes)
805public void SetReturnType (Type returnType)
813Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
814Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
835m_parameterTypes = new Type[parameterTypes.Length];
1215Type caType = con.DeclaringType;
1223Type caType = con.DeclaringType;
system\reflection\emit\modulebuilder.cs (107)
100private Dictionary<string, Type> m_TypeBuilderDict;
122internal void AddType(string name, Type type)
127internal void CheckTypeNameConflict(String strTypeName, Type enclosingType)
129Type foundType = null;
138private Type GetType(String strFormat, Type baseType)
154internal void CheckContext(params Type[][] typess)
158internal void CheckContext(params Type[] types)
358internal virtual Type FindTypeBuilderWithName(String strTypeName, bool ignoreCase)
370Type foundType;
410foreach (Type item in m_TypeBuilderDict.Values)
482private int GetTypeRefNested(Type type, Module refedModule, String strRefedModuleFileName)
486Type enclosingType = type.DeclaringType;
562Type[] parameterTypes = new Type[count];
563Type[][] requiredCustomModifiers = new Type[count][];
564Type[][] optionalCustomModifiers = new Type[count][];
594m_TypeBuilderDict = new Dictionary<string, Type>();
659private int GetMemberRefToken(MethodBase method, IEnumerable<Type> optionalParameterTypes)
661Type[] parameterTypes;
662Type returnType;
765internal SignatureHelper GetMemberRefSignature(CallingConventions call, Type returnType,
766Type[] parameterTypes, IEnumerable<Type> optionalParameterTypes, int cGenericParameters)
778foreach (Type type in optionalParameterTypes)
811public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
816public override bool IsDefined(Type attributeType, bool inherit)
829public override Type[] GetTypes()
837internal Type[] GetTypesNoLock()
840Type[] typeList = new Type[m_TypeBuilderDict.Count];
843foreach (Type builder in m_TypeBuilderDict.Values)
865public override Type GetType(String className)
871public override Type GetType(String className, bool ignoreCase)
877public override Type GetType(String className, bool throwOnError, bool ignoreCase)
885private Type GetTypeNoLock(String className, bool throwOnError, bool ignoreCase)
895Type baseType = InternalModule.GetType(className, throwOnError, ignoreCase);
1017public override MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
1022public override FieldInfo ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
1027public override Type ResolveType(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
1032public override MemberInfo ResolveMember(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
1092CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
1159public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent)
1177public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, int typesize)
1192public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, PackingSize packingSize, int typesize)
1204public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces)
1215private TypeBuilder DefineTypeNoLock(String name, TypeAttributes attr, Type parent, Type[] interfaces, PackingSize packingSize, int typesize)
1227public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, PackingSize packsize)
1238private TypeBuilder DefineTypeNoLock(String name, TypeAttributes attr, Type parent, PackingSize packsize)
1252public EnumBuilder DefineEnum(String name, TypeAttributes visibility, Type underlyingType)
1273private EnumBuilder DefineEnumNoLock(String name, TypeAttributes visibility, Type underlyingType)
1462public MethodBuilder DefineGlobalMethod(String name, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
1470Type returnType, Type[] parameterTypes)
1478Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers,
1479Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers)
1490Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers,
1491Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers)
1523CallingConventions callingConvention, Type returnType, Type[] parameterTypes,
1535CallingConventions callingConvention, Type returnType, Type[] parameterTypes, CallingConvention nativeCallConv,
1551CallingConventions callingConvention, Type returnType, Type[] parameterTypes, CallingConvention nativeCallConv,
1668internal TypeToken GetTypeTokenInternal(Type type)
1674private TypeToken GetTypeTokenInternal(Type type, bool getGenericDefinition)
1683public TypeToken GetTypeToken(Type type)
1691private TypeToken GetTypeTokenWorkerNoLock(Type type, bool getGenericDefinition)
1863Type declaringType = method.DeclaringType;
1876Type[] tt = new Type[paramInfo.Length];
1894Type[] parameterTypes = new Type[parameters.Length];
1895Type[][] requiredCustomModifiers = new Type[parameterTypes.Length][];
1896Type[][] optionalCustomModifiers = new Type[parameterTypes.Length][];
1932public MethodToken GetConstructorToken(ConstructorInfo constructor, IEnumerable<Type> optionalParameterTypes)
1947public MethodToken GetMethodToken(MethodInfo method, IEnumerable<Type> optionalParameterTypes)
1969internal int GetMethodTokenInternal(MethodBase method, IEnumerable<Type> optionalParameterTypes, bool useMethodDef)
2036public MethodToken GetArrayMethodToken(Type arrayClass, String methodName, CallingConventions callingConvention,
2037Type returnType, Type[] parameterTypes)
2046private MethodToken GetArrayMethodTokenNoLock(Type arrayClass, String methodName, CallingConventions callingConvention,
2047Type returnType, Type[] parameterTypes)
2082public MethodInfo GetArrayMethod(Type arrayClass, String methodName, CallingConventions callingConvention,
2083Type returnType, Type[] parameterTypes)
system\reflection\emit\signaturehelper.cs (62)
31public static SignatureHelper GetMethodSigHelper(Module mod, Type returnType, Type[] parameterTypes)
37internal static SignatureHelper GetMethodSigHelper(Module mod, CallingConventions callingConvention, Type returnType, int cGenericParam)
43public static SignatureHelper GetMethodSigHelper(Module mod, CallingConventions callingConvention, Type returnType)
48internal static SignatureHelper GetMethodSpecSigHelper(Module scope, Type[] inst)
52foreach(Type t in inst)
60Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers,
61Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers)
70Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers,
71Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers)
102public static SignatureHelper GetMethodSigHelper(Module mod, CallingConvention unmanagedCallConv, Type returnType)
141public static SignatureHelper GetMethodSigHelper(CallingConventions callingConvention, Type returnType)
146public static SignatureHelper GetMethodSigHelper(CallingConvention unmanagedCallingConvention, Type returnType)
161public static SignatureHelper GetPropertySigHelper(Module mod, Type returnType, Type[] parameterTypes)
167Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers,
168Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers)
175Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers,
176Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers)
198internal static SignatureHelper GetTypeSigToken(Module mod, Type type)
228Type returnType, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers)
241Type returnType, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers)
247private SignatureHelper(Module mod, Type type)
296private void AddOneArgTypeHelper(Type argument, bool pinned)
305private void AddOneArgTypeHelper(Type clsArgument, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers)
317Type t = optionalCustomModifiers[i];
340Type t = requiredCustomModifiers[i];
363private void AddOneArgTypeHelper(Type clsArgument) { AddOneArgTypeHelperWorker(clsArgument, false); }
365private void AddOneArgTypeHelperWorker(Type clsArgument, bool lastWasGenericInst)
382Type[] args = clsArgument.GetGenericArguments();
386foreach (Type t in args)
619private unsafe void InternalAddRuntimeType(Type type)
822public void AddArgument(Type clsArgument)
828public void AddArgument(Type argument, bool pinned)
837public void AddArguments(Type[] arguments, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers)
857public void AddArgument(Type argument, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers)
system\reflection\emit\symboltype.cs (26)
34internal static Type FormCompoundType(char[] bFormat, Type baseType, int curIndex)
215internal Type m_baseType;
236internal void SetElementType(Type baseType)
289public override Type MakePointerType()
294public override Type MakeByRefType()
299public override Type MakeArrayType()
304public override Type MakeArrayType(int rank)
350Type baseType;
361Type baseType;
378Type baseType;
414public override Type BaseType
421CallingConventions callConvention, Type[] types,ParameterModifier[] modifiers)
433CallingConventions callConvention, Type[] types,ParameterModifier[] modifiers)
453public override Type GetInterface(String name,bool ignoreCase)
458public override Type[] GetInterfaces()
474Type returnType, Type[] types, ParameterModifier[] modifiers)
484public override Type[] GetNestedTypes(BindingFlags bindingAttr)
489public override Type GetNestedType(String name, BindingFlags bindingAttr)
505public override InterfaceMapping GetInterfaceMap(Type interfaceType)
518Type baseType;
561public override Type GetElementType()
571public override Type UnderlyingSystemType
582public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
587public override bool IsDefined (Type attributeType, bool inherit)
system\reflection\emit\typebuilder.cs (149)
97public static MethodInfo GetMethod(Type type, MethodInfo method)
130public static ConstructorInfo GetConstructor(Type type, ConstructorInfo constructor)
151public static FieldInfo GetField(Type type, FieldInfo field)
332private static bool IsPublicComType(Type type)
339Type enclosingType = type.DeclaringType;
362internal static bool IsTypeEqual(Type t1, Type t2)
369Type runtimeType1 = null;
370Type runtimeType2 = null;
407internal static unsafe void SetConstantValue(ModuleBuilder module, int tk, Type destType, Object value)
414Type type = value.GetType();
435Type underlyingType;
537private Type m_typeParent;
538private List<Type> m_typeInterfaces;
549private Type m_enumUnderlyingType;
598m_typeInterfaces = new List<Type>();
605Type parent,
606Type[] interfaces,
616private void Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module,
738Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
739Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers,
761Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
762Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers,
880Type temp = m_module.FindTypeBuilderWithName(strValueClassName, false);
1033public override Type DeclaringType
1038public override Type ReflectedType
1120public override Type BaseType
1126CallingConventions callConvention, Type[] types,ParameterModifier[] modifiers)
1146CallingConventions callConvention, Type[] types,ParameterModifier[] modifiers)
1189public override Type GetInterface(String name,bool ignoreCase)
1198public override Type[] GetInterfaces()
1207return EmptyArray<Type>.Value;
1232Type returnType, Type[] types, ParameterModifier[] modifiers)
1246public override Type[] GetNestedTypes(BindingFlags bindingAttr)
1255public override Type GetNestedType(String name, BindingFlags bindingAttr)
1274public override InterfaceMapping GetInterfaceMap(Type interfaceType)
1301public override bool IsAssignableFrom(Type c)
1306Type fromRuntimeType = null;
1337Type[] interfaces = fromTypeBuilder.GetInterfaces();
1377public override Type GetElementType()
1427public override bool IsSubclassOf(Type c)
1429Type p = this;
1447public override Type UnderlyingSystemType
1468public override Type MakePointerType()
1473public override Type MakeByRefType()
1478public override Type MakeArrayType()
1483public override Type MakeArrayType(int rank)
1518public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
1536public override bool IsDefined(Type attributeType, bool inherit)
1560internal void SetInterfaces(params Type[] interfaces)
1564m_typeInterfaces = new List<Type>();
1596 public override Type MakeGenericType(params Type[] typeArguments)
1603public override Type[] GetGenericArguments() { return m_inst; }
1613public override Type GetGenericTypeDefinition() { if (IsGenericTypeDefinition) return this; if (m_genTypeDef == null) throw new InvalidOperationException(); return m_genTypeDef; }
1651public MethodBuilder DefineMethod(String name, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
1673Type returnType, Type[] parameterTypes)
1681Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
1682Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
1695Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
1696Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
1805Type genericTypeDefinition = m_typeParent.GetGenericTypeDefinition();
1813Type inst = genericTypeDefinition.MakeGenericType(m_typeParent.GetGenericArguments());
1817BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null));
1820BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null);
1825con = m_typeParent.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null);
1846public ConstructorBuilder DefineConstructor(MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes)
1854Type[] parameterTypes, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers)
1869Type[] parameterTypes, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers)
1908CallingConventions callingConvention, Type returnType, Type[] parameterTypes,
1923CallingConventions callingConvention, Type returnType, Type[] parameterTypes,
1939Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
1940Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers,
1963public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, Type[] interfaces)
1976public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent)
1998public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, int typeSize)
2011public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, PackingSize packSize)
2024public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, PackingSize packSize, int typeSize)
2033private TypeBuilder DefineNestedTypeNoLock(String name, TypeAttributes attr, Type parent, Type[] interfaces, PackingSize packSize, int typeSize)
2041public FieldBuilder DefineField(String fieldName, Type type, FieldAttributes attributes)
2047public FieldBuilder DefineField(String fieldName, Type type, Type[] requiredCustomModifiers,
2048Type[] optionalCustomModifiers, FieldAttributes attributes)
2057private FieldBuilder DefineFieldNoLock(String fieldName, Type type, Type[] requiredCustomModifiers,
2058Type[] optionalCustomModifiers, FieldAttributes attributes)
2128public PropertyBuilder DefineProperty(String name, PropertyAttributes attributes, Type returnType, Type[] parameterTypes)
2134CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
2141Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
2142Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
2151Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
2152Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
2163Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers,
2164Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
2212public EventBuilder DefineEvent(String name, EventAttributes attributes, Type eventtype)
2221private EventBuilder DefineEventNoLock(String name, EventAttributes attributes, Type eventtype)
2272public Type CreateType()
2280internal void CheckContext(params Type[][] typess)
2284internal void CheckContext(params Type[] types)
2298m_typeInterfaces = new List<Type>();
2352foreach (Type tb in m_inst)
2484public void SetParent(Type parent)
2516public void AddInterfaceImplementation(Type interfaceType)
system\reflection\emit\typebuilderinstantiation.cs (41)
25internal static Type MakeGenericType(Type type, Type[] typeArguments)
36foreach (Type t in typeArguments)
48private Type m_type;
49private Type[] m_inst;
56private TypeBuilderInstantiation(Type type, Type[] inst)
72public override Type DeclaringType { get { return m_type.DeclaringType; } }
74public override Type ReflectedType { get { return m_type.ReflectedType; } }
82public override Type MakePointerType()
86public override Type MakeByRefType()
90public override Type MakeArrayType()
94public override Type MakeArrayType(int rank)
122private Type Substitute(Type[] substitutes)
124Type[] inst = GetGenericArguments();
125Type[] instSubstituted = new Type[inst.Length];
129Type t = inst[i];
148public override Type BaseType
158Type typeBldrBase = m_type.BaseType;
171protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
175protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
179public override Type GetInterface(String name, bool ignoreCase) { throw new NotSupportedException(); }
180public override Type[] GetInterfaces() { throw new NotSupportedException(); }
183protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
185public override Type[] GetNestedTypes(BindingFlags bindingAttr) { throw new NotSupportedException(); }
186public override Type GetNestedType(String name, BindingFlags bindingAttr) { throw new NotSupportedException(); }
190public override InterfaceMapping GetInterfaceMap(Type interfaceType) { throw new NotSupportedException(); }
199public override Type GetElementType() { throw new NotSupportedException(); }
201public override Type UnderlyingSystemType { get { return this; } }
202public override Type[] GetGenericArguments() { return m_inst; }
223public override Type GetGenericTypeDefinition() { return m_type; }
224public override Type MakeGenericType(params Type[] inst) { throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericTypeDefinition")); }
225public override bool IsAssignableFrom(Type c) { throw new NotSupportedException(); }
229public override bool IsSubclassOf(Type c)
238public override Object[] GetCustomAttributes(Type attributeType, bool inherit) { throw new NotSupportedException(); }
240public override bool IsDefined(Type attributeType, bool inherit) { throw new NotSupportedException(); }
system\reflection\emit\xxxontypebuilderinstantiation.cs (25)
42internal override Type[] GetParameterTypes()
50public override Type DeclaringType { get { return m_type; } }
51public override Type ReflectedType { get { return m_type; } }
53public override Object[] GetCustomAttributes(Type attributeType, bool inherit) { return m_method.GetCustomAttributes(attributeType, inherit); }
54public override bool IsDefined(Type attributeType, bool inherit) { return m_method.IsDefined(attributeType, inherit); }
71public new Type GetType() { return base.GetType(); }
85public override Type [] GetGenericArguments() { return m_method.GetGenericArguments(); }
89public override MethodInfo MakeGenericMethod(params Type[] typeArgs)
103public override Type ReturnType { get { return m_method.ReturnType; } }
134internal override Type[] GetParameterTypes()
139internal override Type GetReturnType()
147public override Type DeclaringType { get { return m_type; } }
148public override Type ReflectedType { get { return m_type; } }
150public override Object[] GetCustomAttributes(Type attributeType, bool inherit) { return m_ctor.GetCustomAttributes(attributeType, inherit); }
151public override bool IsDefined(Type attributeType, bool inherit) { return m_ctor.IsDefined(attributeType, inherit); }
168public new Type GetType() { return base.GetType(); }
182public override Type[] GetGenericArguments() { return m_ctor.GetGenericArguments(); }
248public override Type DeclaringType { get { return m_type; } }
249public override Type ReflectedType { get { return m_type; } }
251public override Object[] GetCustomAttributes(Type attributeType, bool inherit) { return m_field.GetCustomAttributes(attributeType, inherit); }
252public override bool IsDefined(Type attributeType, bool inherit) { return m_field.IsDefined(attributeType, inherit); }
269public new Type GetType() { return base.GetType(); }
273public override Type[] GetRequiredCustomModifiers() { return m_field.GetRequiredCustomModifiers(); }
274public override Type[] GetOptionalCustomModifiers() { return m_field.GetOptionalCustomModifiers(); }
287public override Type FieldType { get { throw new NotImplementedException(); } }
system\reflection\module.cs (45)
146public virtual Object[] GetCustomAttributes(Type attributeType, bool inherit)
151public virtual bool IsDefined(Type attributeType, bool inherit)
168public virtual MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
185public virtual FieldInfo ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
197public Type ResolveType(int metadataToken)
202public virtual Type ResolveType(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
219public virtual MemberInfo ResolveMember(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
289public virtual Type GetType(String className, bool ignoreCase)
295public virtual Type GetType(String className) {
300public virtual Type GetType(String className, bool throwOnError, bool ignoreCase)
318public virtual Type[] FindTypes(TypeFilter filter,Object filterCriteria)
320Type[] c = GetTypes();
331Type[] ret = new Type[cnt];
340public virtual Type[] GetTypes()
439String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
457public MethodInfo GetMethod(String name, Type[] types)
486CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
643private static RuntimeTypeHandle[] ConvertToTypeHandleArray(Type[] genericArguments)
652Type typeArg = genericArguments[i];
693public override MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
723Type declaringType = RuntimeMethodHandle.GetDeclaringType(methodHandle);
744private FieldInfo ResolveLiteralField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
758Type declaringType = ResolveType(tkDeclaringType, genericTypeArguments, genericMethodArguments);
776public override FieldInfo ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
831public override Type ResolveType(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
850Type t = GetModuleHandle().ResolveTypeHandle(metadataToken, typeArgs, methodArgs).GetRuntimeType();
864public override MemberInfo ResolveMember(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
958CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
964CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
1017public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
1032public override bool IsDefined(Type attributeType, bool inherit)
1066public override Type GetType(String className, bool throwOnError, bool ignoreCase)
1116public override Type[] GetTypes()
system\reflection\typedelegator.cs (16)
27protected Type typeImpl;
34public TypeDelegator(Type delegatingType) {
84public override Type BaseType {
89CallingConventions callConvention, Type[] types,ParameterModifier[] modifiers)
101CallingConventions callConvention, Type[] types,ParameterModifier[] modifiers)
126public override Type GetInterface(String name, bool ignoreCase)
131public override Type[] GetInterfaces()
147Type returnType, Type[] types, ParameterModifier[] modifiers)
165public override Type[] GetNestedTypes(BindingFlags bindingAttr)
170public override Type GetNestedType(String name, BindingFlags bindingAttr)
228public override Type GetElementType()
238public override Type UnderlyingSystemType
249public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
254public override bool IsDefined(Type attributeType, bool inherit)
260public override InterfaceMapping GetInterfaceMap(Type interfaceType)
system\rttype.cs (89)
877Type[] interfaces = ReflectedType.BaseType.GetInterfaces();
888Type[] interfaces = RuntimeTypeHandle.GetInterfaces(ReflectedType);
1040private static void AddElementTypes(Type template, IList<Type> types)
1072Type[] iFaces = iList.GetInterfaces();
1093Type[] ifaces = RuntimeTypeHandle.GetInterfaces(declaringType);
1132Type[] constraints = declaringType.GetGenericParameterConstraints();
1141Type[] temp = constraint.GetInterfaces();
1713Type type = m_runtimeType;
1767s_SICtorParamTypes = new Type[] { typeof(SerializationInfo), typeof(StreamingContext) };
1786Type DefaultMemberAttrType = typeof(DefaultMemberAttribute);
2234if (definition is Type)
2255Type genericArgument = genericArguments[i];
2256Type genericParameter = genericParamters[i];
2481Type type, BindingFlags bindingFlags, string name, bool prefixLookup, string ns)
2500RuntimeMethodInfo method, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
2507RuntimeConstructorInfo constructor, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
2516MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
2669foreach (Type t in GetGenericArguments())
2719private static Type[] s_SICtorParamTypes;
2805Type[] types, bool allowPrefixLookup)
2829Type[] types, bool allowPrefixLookup)
2853String name, BindingFlags bindingAttr, Type[] types, bool allowPrefixLookup)
3016private ListBuilder<Type> GetNestedTypeCandidates(String fullname, BindingFlags bindingAttr, bool allowPrefixLookup)
3027ListBuilder<Type> candidates = new ListBuilder<Type>(cache.Length);
3103public override Type[] GetInterfaces()
3106Type[] interfaces = new Type[candidates.Length];
3113public override Type[] GetNestedTypes(BindingFlags bindingAttr)
3125ListBuilder<Type> nestedTypes = GetNestedTypeCandidates(null, bindingAttr, false);
3149public override InterfaceMapping GetInterfaceMap(Type ifaceType)
3212Type[] types, ParameterModifier[] modifiers)
3252Type[] types, ParameterModifier[] modifiers)
3281String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
3390public override Type GetInterface(String fullname, bool ignoreCase)
3426public override Type GetNestedType(String fullname, BindingFlags bindingAttr)
3467ListBuilder<Type> nestedTypes = new ListBuilder<Type>();
3631typeCode = Type.GetTypeCode(Enum.GetUnderlyingType(this));
3677public override bool IsSubclassOf(Type type)
3710public override bool IsAssignableFrom(Type c)
3740Type[] constraints = GetGenericParameterConstraints();
3755public override bool IsEquivalentTo(Type other)
3770public override Type BaseType
3785Type[] constraints = GetGenericParameterConstraints();
3823public override Type UnderlyingSystemType
4052public override Type GetElementType()
4097public override Type GetEnumUnderlyingType()
4136if (Type.IsIntegerType(valueType))
4165Type valueType = value.GetType();
4190public override Type[] GetGenericArguments()
4192Type[] types = GetRootElementType().GetTypeHandleInternal().GetInstantiationPublic();
4195types = EmptyArray<Type>.Value;
4201public override Type MakeGenericType(Type[] instantiation)
4218Type instantiationElem = instantiation[i];
4226Type[] instantiationCopy = new Type[instantiation.Length];
4240Type ret = null;
4276public override Type GetGenericTypeDefinition()
4300public override Type[] GetGenericParameterConstraints()
4306Type[] constraints = new RuntimeTypeHandle(this).GetConstraints();
4309constraints = EmptyArray<Type>.Value;
4317public override Type MakePointerType() { return new RuntimeTypeHandle(this).MakePointer(); }
4318public override Type MakeByRefType() { return new RuntimeTypeHandle(this).MakeByRef(); }
4319public override Type MakeArrayType() { return new RuntimeTypeHandle(this).MakeSZArray(); }
4320public override Type MakeArrayType(int rank)
4372Type type = null;
4452if (binder != null && binder != Type.DefaultBinder)
4844if (!FilterApplyMethodInfo((RuntimeMethodInfo)semiFinalist, bindingFlags, CallingConventions.Any, new Type[argCnt]))
4898if (!FilterApplyMethodInfo((RuntimeMethodInfo)semiFinalist, bindingFlags, CallingConventions.Any, new Type[argCnt]))
5034public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
5049public override bool IsDefined(Type attributeType, bool inherit)
5094Type elementType = GetRootElementType();
5132public override Type DeclaringType
5140public override Type ReflectedType
5169Type elementType = this.GetRootElementType();
5223Type[] argsType = new Type[argCnt];
5396ConstructorInfo ctorInfo = typeof(CtorDelegate).GetConstructor(new Type[] {typeof(Object), typeof(IntPtr)});
5584internal static extern Type GetTypeFromProgIDImpl(String progID, String server, bool throwOnError);
5589internal static extern Type GetTypeFromCLSIDImpl(Guid clsid, String server, bool throwOnError);
5666Type paramType = aParams[i].ParameterType.GetElementType();
5676Type retType = meth.ReturnType;
5699Type wrapperType = null;
5735wrapperCons = wrapperType.GetConstructor(new Type[] {typeof(String)});
5739wrapperCons = wrapperType.GetConstructor(new Type[] {typeof(Object)});
system\runtime\interopservices\marshal.cs (40)
215public static int SizeOf(Type t)
259internal static extern uint SizeOfType(Type type);
266private static extern uint AlignedSizeOfType(Type type);
274internal static extern int SizeOfHelper(Type t, bool throwIfNotMarshalable);
279public static IntPtr OffsetOf(Type t, String fieldName)
878public static void PrelinkAll(Type c)
973public static Object PtrToStructure(IntPtr ptr, Type structureType)
1017public static extern void DestroyStructure(IntPtr ptr, Type structuretype);
1587private static extern Type GetLoadedTypeForGUID(ref Guid guid);
1594public static Type GetTypeForITypeInfo(IntPtr /* ITypeInfo* */ piTypeInfo)
1598Type TypeObj = null;
1678public static Type GetTypeFromCLSID(Guid clsid)
1689public static extern IntPtr /* ITypeInfo* */ GetITypeInfoForType(Type t);
1750public static IntPtr /* IUnknown* */ GetComInterfaceForObject(Object o, Type T)
1767public static IntPtr /* IUnknown* */ GetComInterfaceForObject(Object o, Type T, CustomQueryInterfaceMode mode)
1780public static IntPtr /* IUnknown* */ GetComInterfaceForObjectInContext(Object o, Type t)
1787private static extern IntPtr /* IUnknown* */ GetComInterfaceForObjectNative(Object o, Type t, bool onlyInContext, bool fEnalbeCustomizedQueryInterface);
1818public static extern Object GetTypedObjectForIUnknown(IntPtr /* IUnknown* */ pUnk, Type t);
2088public static Object CreateWrapperOfType(Object o, Type t)
2146private static extern Object InternalCreateWrapperOfType(Object o, Type t);
2165public static extern bool IsTypeVisibleFromCom(Type t);
2268public static extern int GetStartComSlot(Type t);
2276public static extern int GetEndComSlot(Type t);
2288public static extern MemberInfo GetMethodInfoForComSlot(Type t, int slot, ref ComMemberType memberType);
2323public static Guid GenerateGuidForType(Type type)
2333private static extern void FCallGenerateGuidForType(ref Guid result, Type type);
2342public static String GenerateProgIdForType(Type type)
2480Type t = sys.GetType("System.ComponentModel.LicenseManager");
2509internal static extern object GetNativeActivationFactory(Type type);
2547internal static System.Type GetCachedWinRTTypeByIid(
2555System.Type res = Type.GetTypeFromHandleUnsafe(rthHandle);
2573internal static System.Type[] GetCachedWinRTTypes(
2583System.Type[] result = new System.Type[res.Length];
2586result[i] = Type.GetTypeFromHandleUnsafe(res[i]);
2593internal static System.Type[] GetCachedWinRTTypes(
2604public static Delegate GetDelegateForFunctionPointer(IntPtr ptr, Type t)
2620Type c = t.BaseType;
2635internal static extern Delegate GetDelegateForFunctionPointerInternal(IntPtr ptr, Type t);
system\runtime\interopservices\registrationservices.cs (30)
128Type[] aTypes = GetRegistrableTypesInAssembly(assembly);
179Type[] aTypes = GetRegistrableTypesInAssembly(assembly);
222public virtual Type[] GetRegistrableTypesInAssembly(Assembly assembly)
233Type[] aTypes = assembly.GetExportedTypes();
242Type CurrentType = aTypes[cTypes];
248Type[] RetArray = new Type[TypeList.Count];
254public virtual String GetProgIdForType(Type type)
260public virtual void RegisterTypeForComClients(Type type, ref Guid g)
284public virtual bool TypeRequiresRegistration(Type type)
290public virtual bool TypeRepresentsComType(Type type)
302Type baseComImportType = GetBaseComImportType(type);
316public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags)
348internal static bool TypeRequiresRegistrationHelper(Type type)
360if (!type.IsValueType && type.GetConstructor(BindingFlags.Instance | BindingFlags.Public,null,new Type[0],null) == null)
375private void RegisterValueType(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase, String strRuntimeVersion)
409private void RegisterManagedType(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase, String strRuntimeVersion)
497private void RegisterComImportedType(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase, String strRuntimeVersion)
541private bool UnregisterValueType(Type type, String strAsmVersion)
600private bool UnregisterManagedType(Type type,String strAsmVersion)
796private bool UnregisterComImportedType(Type type, String strAsmVersion)
994private void CallUserDefinedRegistrationMethod(Type type, bool bRegister)
1000Type RegFuncAttrType = null;
1006for(Type currType = type; !bFunctionCalled && currType != null; currType = currType.BaseType)
1034(aParams[0].ParameterType != typeof(String) && aParams[0].ParameterType != typeof(Type)))
1074private Type GetBaseComImportType(Type type)
1080private bool IsRegisteredAsValueType(Type type)
1099private static extern void RegisterTypeForComClientsNative(Type type,ref Guid g);
1106private static extern int RegisterTypeForComClientsExNative(Type t, RegistrationClassContext clsContext, RegistrationConnectionType flags);
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (31)
20private readonly Type[] MonitorEnterParamTypes = new Type[] { typeof(Object), Type.GetType("System.Boolean&") };
22public EventProviderWriter( ModuleBuilder OutputModule, String strDestTypeName, Type EventItfType, Type SrcItfType, Type SinkHelperType )
31public Type Perform()
38new Type[]{m_EventItfType, typeof(IDisposable)}
94private MethodBuilder DefineAddEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo SrcItfMethod, Type SinkHelperClass, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP, MethodBuilder mbInitSrcItf )
96Type[] aParamTypes;
107ConstructorInfo SinkHelperCons = SinkHelperClass.GetConstructor(EventProviderWriter.DefaultLookup | BindingFlags.NonPublic, null, new Type[0], null );
115aParamTypes = new Type[1];
130Type[] parameterTypes;
131parameterTypes = new Type[1];
237private MethodBuilder DefineRemoveEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo SrcItfMethod, Type SinkHelperClass, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP )
239Type[] aParamTypes;
250aParamTypes = new Type[1];
290Type[] parameterTypes;
291parameterTypes = new Type[1];
463private MethodBuilder DefineInitSrcItfMethod( TypeBuilder OutputTypeBuilder, Type SourceInterface, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP, FieldBuilder fbCPC )
466ConstructorInfo DefaultArrayListCons = typeof(ArrayList).GetConstructor(EventProviderWriter.DefaultLookup, null, new Type[0], null );
473Type[] aParamTypes = new Type[1];
556ConstructorInfo DefaultBaseClsCons = typeof(Object).GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[0], null );
565new Type[]{typeof(Object)} );
584private MethodBuilder DefineFinalizeMethod( TypeBuilder OutputTypeBuilder, Type SinkHelperClass, FieldBuilder fbSinkHelper, FieldBuilder fbEventCP )
615Type[] aParamTypes = new Type[1];
770private Type m_EventItfType;
771private Type m_SrcItfType;
772private Type m_SinkHelperType;
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (17)
17public EventSinkHelperWriter( ModuleBuilder OutputModule, Type InputType, Type EventItfType )
24public Type Perform()
27Type[] aInterfaces = new Type[1];
70Type DelegateCls = aParams[0].ParameterType;
100Type[] parameters = new Type[PIs.Length];
119private void DefineEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo Method, Type DelegateCls, FieldBuilder fbDelegate )
126Type ReturnType = Method.ReturnType;
130Type[] parameterTypes;
133parameterTypes = new Type[paramInfos.Length];
191private void AddReturn(Type ReturnType, ILGenerator il, MethodBuilder Meth)
200switch (System.Type.GetTypeCode(ReturnType))
257ConstructorInfo DefaultBaseClsCons = typeof(Object).GetConstructor(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public, null, new Type[0], null );
294private Type m_InputType;
295private Type m_EventItfType;
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (17)
24private static volatile Tuple<Type, PropertyType>[] s_numericScalarTypes;
32private static Tuple<Type, PropertyType>[] NumericScalarTypes {
35Tuple<Type, PropertyType>[] numericScalarTypes = new Tuple<Type, PropertyType>[] {
36new Tuple<Type, PropertyType>(typeof(Byte), PropertyType.UInt8),
37new Tuple<Type, PropertyType>(typeof(Int16), PropertyType.Int16),
38new Tuple<Type, PropertyType>(typeof(UInt16), PropertyType.UInt16),
39new Tuple<Type, PropertyType>(typeof(Int32), PropertyType.Int32),
40new Tuple<Type, PropertyType>(typeof(UInt32), PropertyType.UInt32),
41new Tuple<Type, PropertyType>(typeof(Int64), PropertyType.Int64),
42new Tuple<Type, PropertyType>(typeof(UInt64), PropertyType.UInt64),
43new Tuple<Type, PropertyType>(typeof(Single), PropertyType.Single),
44new Tuple<Type, PropertyType>(typeof(Double), PropertyType.Double)
429foreach (Tuple<Type, PropertyType> numericScalar in NumericScalarTypes) {
501foreach (Tuple<Type, PropertyType> numericScalar in NumericScalarTypes) {
513private unsafe T Unbox<T>(Type expectedBoxedType) where T : struct {
534private unsafe T[] UnboxArray<T>(Type expectedArrayElementType) where T : struct {
system\runtime\interopservices\windowsruntime\icustomproperty.cs (1)
19Type Type
system\runtime\remoting\message.cs (47)
70private Type[] _MethodSignature; // Array of parameter types
443_MethodBase = RuntimeType.GetMethodBase(Type.GetTypeFromHandleUnsafe(_governingType), mh);
470internal static Type[] GenerateMethodSignature(MethodBase mb)
476Type[] methodSig = new Type[paramArray.Length];
531Type pt = currentPi.ParameterType;
541Type paramType = pt.GetElementType();
585internal static Object CoerceArg(Object value, Type pt)
643internal static Object SoapCoerceArg(Object value, Type pt, Hashtable keyToNamespaceTable)
1041public Type ActivationType
2541internal Type[] _methodSignature;
2827private Type[] instArgs;
2829private Type[] methodSignature;
2906methodSignature = (Type[])smuggledMsg.GetMethodSignature(deserializedArgs);
2938methodSignature = (Type[])smuggledMsg.MethodSignature;
3004private static Type ResolveTypeRelativeTo(String typeName, int offset, int count, Type serverType)
3006Type type = ResolveTypeRelativeToBaseTypes(typeName, offset, count, serverType);
3011Type[] interfaces = serverType.GetInterfaces();
3012foreach (Type iface in interfaces)
3029private static Type ResolveTypeRelativeToBaseTypes(String typeName, int offset, int count, Type serverType)
3052internal Type ResolveType()
3055Type t = null;
3062Type serverType = srvID.GetLastCalledType(typeName);
3171MemberInfo [] methods = t.FindMembers(MemberTypes.Method, MethodCall.LookupAll, Type.FilterName, methodName);
3209MI = Type.DefaultBinder.SelectMethod(MethodCall.LookupAll,
3358Type parameterType = parameters[j].ParameterType;
3529Type type = parameterInfos[outArg].ParameterType.GetElementType();
3828methodSignature = (Type[]) value;
3922internal Type _activationType;
4017public Type ActivationType
4101private Type[] methodSignature;
4169methodSignature = (Type[])msg.MethodSignature;
4200methodSignature = (Type[])msg.MethodSignature;
4255Type retType = null;
4269Type[] paramTypes = new Type[outParamsCount];
4382Type exceptionType = Type.GetType(serverFault.ExceptionType, false, false);
4426Type retType = mi.ReturnType;
4758methodSignature = (Type[]) value;
4850internal Type[] fieldTypes = null;
4875public Type[] FieldTypes
5329internal Type[] ArgTypes
5333Type[] ret = null;
5337ret = new Type[_map.Length];
system\runtime\remoting\remotingservices.cs (30)
207Type typeToProxy,
248Type objectType)
276Type objectType)
477public static ObjRef Marshal(MarshalByRefObject Obj, String ObjURI, Type RequestedType)
484internal static ObjRef MarshalInternal(MarshalByRefObject Obj, String ObjURI, Type RequestedType)
490internal static ObjRef MarshalInternal(MarshalByRefObject Obj, String ObjURI, Type RequestedType, bool updateChannelData)
497internal static ObjRef MarshalInternal(MarshalByRefObject Obj, String ObjURI, Type RequestedType, bool updateChannelData, bool isInitializing)
846public static Object Connect(Type classToProxy, String url)
853public static Object Connect(Type classToProxy, String url, Object data)
957internal static Object Unmarshal(Type classToProxy, String url)
964internal static Object Unmarshal(Type classToProxy, String url, Object data)
1334Type serverType;
1426private static Object GetOrCreateProxy(Type classToProxy, Identity idObj)
1456Type serverType = serverID.ServerType;
1479Identity idObj, Type classToProxy, Object proxy)
1885Type t = RemotingServices.InternalGetTypeFromQualifiedTypeName(msg.TypeName);
1898Type[] signature = (Type[])msg.MethodSignature;
1913private static MethodBase GetMethodBase(IMethodMessage msg, Type t, Type[] signature)
2060Type beginReturnType = typeof(IAsyncResult);
2061Type endReturnType = method.ReturnType;
2086Type type = method.DeclaringType;
2143if (((Type)obj != param.ParameterType) && param.IsIn)
2153public static Type GetServerTypeForUri(String URI)
2155Type svrType = null;
2350Type serverType = null;
2507internal static String DetermineDefaultQualifiedTypeName(Type type)
2678internal static Type InternalGetTypeFromQualifiedTypeName(String qualifiedTypeName)
2689return (RuntimeType)Type.GetType(typeName, false);
system\runtime\remoting\soap.cs (21)
82public Type Type;
85public FieldEntry(Type type, String name)
98public void AddXmlElement(Type fieldType, String fieldName,
106public void AddXmlAttribute(Type fieldType, String fieldName,
115out Type type, out String name)
132out Type type, out String name)
152Type type)
161Type type)
169public static void PreLoad(Type type)
236Type[] types = assembly.GetTypes();
237foreach (Type type in types)
244public static Type GetInteropTypeFromXmlElement(String xmlElement, String xmlNamespace)
246return (Type)_interopXmlElementToType[CreateKey(xmlElement, xmlNamespace)];
251public static Type GetInteropTypeFromXmlType(String xmlType, String xmlTypeNamespace)
253return (Type)_interopXmlTypeToType[CreateKey(xmlType, xmlTypeNamespace)];
257public static void GetInteropFieldTypeAndNameFromXmlElement(Type containingType,
259out Type type, out String name)
282public static void GetInteropFieldTypeAndNameFromXmlAttribute(Type containingType,
284out Type type, out String name)
308public static bool GetXmlElementForInteropType(Type type,
340public static bool GetXmlTypeForInteropType(Type type,
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (20)
38internal static BinaryTypeEnum GetBinaryTypeInfo(Type type, WriteObjectInfo objectInfo, String typeName, ObjectWriter objectWriter, out Object typeInformation, out int assemId)
105internal static BinaryTypeEnum GetParserBinaryTypeInfo(Type type, out Object typeInformation)
218out Type type,
317internal static void WriteWithCode(Type type, Object value, __BinaryWriter sout)
645Type[] instArgs;
651Type[] argTypes;
658internal Object[] WriteArray(String uri, String methodName, String typeName, Type[] instArgs, Object[] args, Object methodSignature, Object callContext, Object[] properties)
674argTypes = new Type[args.Length];
833instArgs = (Type[])callA[arrayPosition++];
907Type[] argTypes;
911Type returnType;
940argTypes = new Type[args.Length];
2072internal Type objectType;
2076internal Type[] memberTypes;
2085internal ObjectMap(String objectName, Type objectType, String[] memberNames, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo)
2127memberTypes = new Type[memberNames.Length];
2133Type type;
2167internal static ObjectMap Create(String name, Type objectType, String[] memberNames, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo)
2200internal Type dtType;
2216internal Type[] memberTypes;
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (6)
194internal Object[] WriteCallArray(String uri, String methodName, String typeName, Type[] instArgs, Object[] args, Object methodSignature, Object callContext, Object[] properties)
222internal void WriteObject(NameInfo nameInfo, NameInfo typeNameInfo, int numMembers, String[] memberNames, Type[] memberTypes, WriteObjectInfo[] memberObjectInfos)
694internal void WriteAssembly(Type type, String assemblyString, int assemId, bool isNew)
779Type[] memberTypes;
781internal ObjectMapInfo(int objectId, int numMembers, String[] memberNames, Type[] memberTypes)
789internal bool isCompatible(int numMembers, String[] memberNames, Type[] memberTypes)
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (33)
43internal Type objectType;
184internal static WriteObjectInfo Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, SerializationBinder binder)
193internal void InitSerialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, SerializationBinder binder)
285cache.memberTypes = new Type[count];
303private static void CheckTypeForwardedFrom(SerObjectInfoCache cache, Type objectType, string binderAssemblyString)
349cache.memberTypes = new Type[count];
399internal Type GetMemberType(MemberInfo objMember)
401Type objectType = null;
421internal void GetMemberInfo(out String[] outMemberNames, out Type[] outMemberTypes, out Object[] outMemberData)
466internal Type objectType;
483internal Type[] wireMemberTypes;
497internal List<Type> memberTypesList;
518internal static ReadObjectInfo Create(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, ObjectManager objectManager, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, bool bSimpleAssembly)
528internal void Init(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, ObjectManager objectManager, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, bool bSimpleAssembly)
544internal static ReadObjectInfo Create(Type objectType, String[] memberNames, Type[] memberTypes, ISurrogateSelector surrogateSelector, StreamingContext context, ObjectManager objectManager, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, bool bSimpleAssembly)
553internal void Init(Type objectType, String[] memberNames, Type[] memberTypes, ISurrogateSelector surrogateSelector, StreamingContext context, ObjectManager objectManager, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, bool bSimpleAssembly)
574private void InitReadConstructor(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context)
614memberTypesList = new List<Type>(20);
634cache.memberTypes = new Type[count];
667internal Type GetType(String name)
670Type type = null;
678type = (Type)memberTypesList[position];
810internal Type[] GetMemberTypes(String[] inMemberNames, Type objectType)
821cache.memberTypes = new Type[count];
831Type[] outMemberTypes = new Type[cache.memberInfos.Length];
871internal Type GetMemberType(MemberInfo objMember)
873Type objectType = null;
918internal Type[] memberTypes = null;
927internal SerObjectInfoCache(Type type)
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (18)
325private bool HasSurrogate(Type t){
333private void CheckSerializable(Type t)
363internal ReadObjectInfo CreateReadObjectInfo(Type objectType)
369internal ReadObjectInfo CreateReadObjectInfo(Type objectType, String[] memberNames, Type[] memberTypes)
457Type t = pr.PRdtType;
1334internal Type Bind(String assemblyString, String typeString)
1336Type type = null;
1347public Type type;
1353internal Type FastBindToType(String assemblyName, String typeName)
1355Type type = null;
1434private static void GetSimplyNamedTypeFromAssembly(Assembly assm, string typeName, ref Type type)
1449type = Type.GetType(typeName, ObjectReader.ResolveSimpleAssemblyName, new TopLevelAssemblyTypeResolver(assm).ResolveType, false /* throwOnError */);
1456private Type previousType;
1460internal Type GetType(BinaryAssemblyInfo assemblyInfo, String name)
1462Type objectType = null;
1502private static void CheckTypeForwardedTo(Assembly sourceAssembly, Assembly destAssembly, Type resolvedType)
1549public Type ResolveType(Assembly assembly, string simpleTypeName, bool ignoreCase)
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (21)
219Type[] instArgs = null;
358Type objType = objectInfo.objectType;
380Type[] memberTypes;
406Type type;
463Type[] memberTypes,
536Type memberType,
578Type memberType = memberNameInfo.NItype;
605Type outType = null;
734Type arrayType = objectInfo.objectType;
737Type arrayElemType = arrayType.GetElementType();
905Type dataType = null;
1092private long InternalGetId(Object obj, bool assignUniqueIdToValueType, Type type, out bool isNew)
1122private long Schedule(Object obj, bool assignUniqueIdToValueType, Type type)
1127private long Schedule(Object obj, bool assignUniqueIdToValueType, Type type, WriteObjectInfo objectInfo)
1269private NameInfo TypeToNameInfo(Type type, WriteObjectInfo objectInfo, InternalPrimitiveTypeE code, NameInfo nameInfo)
1292private NameInfo TypeToNameInfo(Type type)
1307private void TypeToNameInfo(Type type, NameInfo nameInfo)
1319Type previousType = null;
1321internal InternalPrimitiveTypeE ToCode(Type type)
1388private Type GetType(Object obj)
1390Type type = null;
system\runtime\serialization\serializationinfo.cs (33)
44internal Type[] m_types;
50private Type objectType;
57public SerializationInfo(Type type, IFormatterConverter converter)
64public SerializationInfo(Type type, IFormatterConverter converter, bool requireSameTokenInPartialTrust)
85m_types = new Type[defaultSize];
144public void SetType(Type type)
223public Type ObjectType
275Type[] newTypes = new Type[newSize];
289public void AddValue(String name, Object value, Type type)
392internal void AddValueInternal(String name, Object value, Type type)
430internal void UpdateValue(String name, Object value, Type type)
475private Object GetElement(String name, out Type foundType)
493private Object GetElementNoThrow(String name, out Type foundType)
516public Object GetValue(String name, Type type)
529Type foundType;
555internal Object GetValueNoThrow(String name, Type type)
557Type foundType;
587Type foundType;
600Type foundType;
614Type foundType;
627Type foundType;
640Type foundType;
654Type foundType;
667Type foundType;
681Type foundType;
694Type foundType;
708Type foundType;
721Type foundType;
735Type foundType;
748Type foundType;
761Type foundType;
774Type foundType;
system\security\cryptography\cryptoconfig.cs (34)
33private static volatile Dictionary<string, Type> appNameHT = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
176Type SHA1CryptoServiceProviderType = typeof(System.Security.Cryptography.SHA1CryptoServiceProvider);
177Type MD5CryptoServiceProviderType = typeof(System.Security.Cryptography.MD5CryptoServiceProvider);
178Type RIPEMD160ManagedType = typeof(System.Security.Cryptography.RIPEMD160Managed);
179Type HMACMD5Type = typeof(System.Security.Cryptography.HMACMD5);
180Type HMACRIPEMD160Type = typeof(System.Security.Cryptography.HMACRIPEMD160);
183Type HMACSHA1Type = typeof(System.Security.Cryptography.HMACSHA1);
184Type HMACSHA256Type = typeof(System.Security.Cryptography.HMACSHA256);
187Type HMACSHA384Type = typeof(System.Security.Cryptography.HMACSHA384);
188Type HMACSHA512Type = typeof(System.Security.Cryptography.HMACSHA512);
189Type MAC3DESType = typeof(System.Security.Cryptography.MACTripleDES);
192Type RSACryptoServiceProviderType = typeof(System.Security.Cryptography.RSACryptoServiceProvider);
195Type DSACryptoServiceProviderType = typeof(System.Security.Cryptography.DSACryptoServiceProvider);
196Type DESCryptoServiceProviderType = typeof(System.Security.Cryptography.DESCryptoServiceProvider);
197Type TripleDESCryptoServiceProviderType = typeof(System.Security.Cryptography.TripleDESCryptoServiceProvider);
198Type RC2CryptoServiceProviderType = typeof(System.Security.Cryptography.RC2CryptoServiceProvider);
201Type RijndaelManagedType = typeof(System.Security.Cryptography.RijndaelManaged);
204Type DSASignatureDescriptionType = typeof(System.Security.Cryptography.DSASignatureDescription);
205Type RSAPKCS1SHA1SignatureDescriptionType = typeof(System.Security.Cryptography.RSAPKCS1SHA1SignatureDescription);
206Type RSAPKCS1SHA256SignatureDescriptionType = typeof(System.Security.Cryptography.RSAPKCS1SHA256SignatureDescription);
207Type RSAPKCS1SHA384SignatureDescriptionType = typeof(System.Security.Cryptography.RSAPKCS1SHA384SignatureDescription);
208Type RSAPKCS1SHA512SignatureDescriptionType = typeof(System.Security.Cryptography.RSAPKCS1SHA512SignatureDescription);
211Type RNGCryptoServiceProviderType = typeof(System.Security.Cryptography.RNGCryptoServiceProvider);
542public static void AddAlgorithm(Type algorithm, params string[] names) {
576Type retvalType = null;
592retvalType = Type.GetType(retvalTypeString, false, false);
605if (retvalObj is Type) {
606retvalType = (Type) retvalObj;
608retvalType = Type.GetType((String) retvalObj, false, false);
617retvalType = Type.GetType(name, false, false);
656RuntimeConstructorInfo rci = Type.DefaultBinder.BindToMethod(Activator.ConstructorDefault,
670retval = rci.Invoke(Activator.ConstructorDefault, Type.DefaultBinder, args, null);
674Type.DefaultBinder.ReorderArgumentArray(ref args, state);
system\security\policy\evidence.cs (61)
58private Dictionary<Type, EvidenceTypeDescriptor> m_evidence;
90private static volatile Type[] s_runtimeEvidenceTypes;
106m_evidence = new Dictionary<Type, EvidenceTypeDescriptor>();
116m_evidence = new Dictionary<Type, EvidenceTypeDescriptor>();
122foreach (KeyValuePair<Type, EvidenceTypeDescriptor> evidenceType in evidence.m_evidence)
154m_evidence = new Dictionary<Type, EvidenceTypeDescriptor>();
182m_evidence = new Dictionary<Type, EvidenceTypeDescriptor>();
213m_evidence = new Dictionary<Type, EvidenceTypeDescriptor>();
217foreach (Type runtimeEvidenceType in RuntimeEvidenceTypes)
229internal static Type[] RuntimeEvidenceTypes
235Type[] runtimeEvidenceTypes = new Type[]
369Type evidenceIndex = GetEvidenceIndexType(evidence);
386Type evidenceIndex = GetEvidenceIndexType(evidence);
407Type evidenceType = typeof(T);
416private void AddAssemblyEvidence(EvidenceBase evidence, Type evidenceType, DuplicateEvidenceAction duplicateAction)
424private void AddAssemblyEvidenceNoLock(EvidenceBase evidence, Type evidenceType, DuplicateEvidenceAction duplicateAction)
464Type evidenceType = typeof(T);
474private void AddHostEvidence(EvidenceBase evidence, Type evidenceType, DuplicateEvidenceAction duplicateAction)
494private void AddHostEvidenceNoLock(EvidenceBase evidence, Type evidenceType, DuplicateEvidenceAction duplicateAction)
534Type[] hostSuppliedTypes = null;
562foreach (Type hostEvidenceType in hostSuppliedTypes)
648private static Type GetEvidenceIndexType(EvidenceBase evidence)
666internal EvidenceTypeDescriptor GetEvidenceTypeDescriptor(Type evidenceType)
677private EvidenceTypeDescriptor GetEvidenceTypeDescriptor(Type evidenceType, bool addIfNotExist)
819Type hostEvidenceType = hostEnumerator.Current.GetType();
892foreach (Type evidenceType in new List<Type>(m_evidence.Keys))
933m_evidence = new Dictionary<Type, EvidenceTypeDescriptor>();
1031Dictionary<Type, EvidenceBase> generatedEvidence = new Dictionary<Type, EvidenceBase>();
1032foreach (KeyValuePair<Type, EvidenceTypeDescriptor> evidenceType in m_evidence)
1113return new RawEvidenceEnumerator(this, new List<Type>(m_evidence.Keys), false);
1123return new RawEvidenceEnumerator(this, new List<Type>(m_evidence.Keys), true);
1144internal EvidenceBase GetAssemblyEvidence(Type type)
1154private EvidenceBase GetAssemblyEvidenceNoLock(Type type)
1187internal EvidenceBase GetHostEvidence(Type type)
1195private EvidenceBase GetHostEvidence(Type type, bool markDelayEvaluatedEvidenceUsed)
1226private EvidenceBase GetHostEvidenceNoLock(Type type)
1302private EvidenceBase GenerateHostEvidence(Type type, bool hostCanGenerate)
1382foreach (Type evidenceType in new List<Type>(m_evidence.Keys))
1445public void RemoveType(Type t)
1479foreach (KeyValuePair<Type, EvidenceTypeDescriptor> evidenceType in m_evidence)
1611private Type[] m_evidenceTypes;
1615private static volatile List<Type> s_expensiveEvidence;
1617public RawEvidenceEnumerator(Evidence evidence, IEnumerable<Type> evidenceTypes, bool hostEnumerator)
1655private static List<Type> ExpensiveEvidence
1661List<Type> expensiveEvidence = new List<Type>();
1690private static Type[] GenerateEvidenceTypes(Evidence evidence,
1691IEnumerable<Type> evidenceTypes,
1707List<Type> alreadyGeneratedList = new List<Type>();
1708List<Type> inexpensiveList = new List<Type>();
1709List<Type> expensiveList = new List<Type>(ExpensiveEvidence.Count);
1714foreach (Type evidenceType in evidenceTypes)
1736Type[] enumerationTypes = new Type[alreadyGeneratedList.Count + inexpensiveList.Count + expensiveList.Count];
system\security\policy\hash.cs (27)
35private Dictionary<Type, byte[]> m_hashes;
54Dictionary<Type, byte[]> hashes = info.GetValueNoThrow("Hashes", typeof(Dictionary<Type, byte[]>)) as Dictionary<Type, byte[]>;
63m_hashes = new Dictionary<Type, byte[]>();
96m_hashes = new Dictionary<Type, byte[]>();
112m_hashes = new Dictionary<Type, byte[]>(hash.m_hashes);
118private Hash(Type hashType, byte[] hashValue)
123m_hashes = new Dictionary<Type, byte[]>();
307private byte[] GenerateHash(Type hashType)
311Type indexType = GetHashIndexType(hashType);
331private static byte[] GenerateHash(Type hashType, byte[] assemblyBytes)
364Type[] defaultHashTypes = new Type[]
371foreach (Type defaultHashType in defaultHashTypes)
373Type hashImplementationType = GetDefaultHashImplementation(defaultHashType);
391private static Type GetDefaultHashImplementationOrFallback(Type hashAlgorithm,
392Type fallbackImplementation)
397Type defaultImplementation = GetDefaultHashImplementation(hashAlgorithm);
406private static Type GetDefaultHashImplementation(Type hashAlgorithm)
428return Type.GetType("System.Security.Cryptography.SHA256CryptoServiceProvider, " + AssemblyRef.SystemCore);
443private static Type GetHashIndexType(Type hashType)
447Type currentType = hashType;
503foreach (KeyValuePair<Type, byte[]> hashValue in m_hashes)
system\type.cs (126)
56public readonly static Type[] EmptyTypes = EmptyArray<Type>.Value;
72public override Type DeclaringType {
79public override Type ReflectedType
91public static Type GetType(String typeName, bool throwOnError, bool ignoreCase) {
97public static Type GetType(String typeName, bool throwOnError) {
103public static Type GetType(String typeName) {
110public static Type GetType(
113Func<Assembly, string, bool, Type> typeResolver)
120public static Type GetType(
123Func<Assembly, string, bool, Type> typeResolver,
131public static Type GetType(
134Func<Assembly, string, bool, Type> typeResolver,
144public static Type ReflectionOnlyGetType(String typeName, bool throwIfNotFound, bool ignoreCase)
150public virtual Type MakePointerType() { throw new NotSupportedException(); }
152public virtual Type MakeByRefType() { throw new NotSupportedException(); }
153public virtual Type MakeArrayType() { throw new NotSupportedException(); }
154public virtual Type MakeArrayType(int rank) { throw new NotSupportedException(); }
167public static Type GetTypeFromProgID(String progID)
182public static Type GetTypeFromProgID(String progID, bool throwOnError)
188public static Type GetTypeFromProgID(String progID, String server)
194public static Type GetTypeFromProgID(String progID, String server, bool throwOnError)
207public static Type GetTypeFromCLSID(Guid clsid)
213public static Type GetTypeFromCLSID(Guid clsid, bool throwOnError)
219public static Type GetTypeFromCLSID(Guid clsid, String server)
225public static Type GetTypeFromCLSID(Guid clsid, String server, bool throwOnError)
234public static TypeCode GetTypeCode(Type type)
248return Type.GetTypeCode(UnderlyingSystemType);
363public static extern Type GetTypeFromHandle(RuntimeTypeHandle handle);
394public abstract Type BaseType {
408Type[] types,
422public ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
434public ConstructorInfo GetConstructor(Type[] types)
443Type[] types,
464Type.EmptyTypes,
478Type[] types,
495Type[] types,
509public MethodInfo GetMethod(String name, Type[] types, ParameterModifier[] modifiers)
519return GetMethodImpl(name, Type.DefaultLookup, null, CallingConventions.Any, types, modifiers);
522public MethodInfo GetMethod(String name,Type[] types)
532return GetMethodImpl(name, Type.DefaultLookup, null, CallingConventions.Any, types, null);
548return GetMethodImpl(name, Type.DefaultLookup, null, CallingConventions.Any, null, null);
555Type[] types,
562return GetMethods(Type.DefaultLookup);
573return GetField(name, Type.DefaultLookup);
580return GetFields(Type.DefaultLookup);
587public Type GetInterface(String name) {
590abstract public Type GetInterface(String name, bool ignoreCase);
595abstract public Type[] GetInterfaces();
599public virtual Type[] FindInterfaces(TypeFilter filter,Object filterCriteria)
604Type[] c = GetInterfaces();
615Type[] ret = new Type[cnt];
630return GetEvent(name,Type.DefaultLookup);
638return GetEvents(Type.DefaultLookup);
646Type returnType, Type[] types, ParameterModifier[] modifiers)
656public PropertyInfo GetProperty(String name, Type returnType, Type[] types,ParameterModifier[] modifiers)
663return GetPropertyImpl(name,Type.DefaultLookup,null,returnType,types,modifiers);
674public PropertyInfo GetProperty(String name, Type returnType, Type[] types)
681return GetPropertyImpl(name,Type.DefaultLookup,null,returnType,types,null);
684public PropertyInfo GetProperty(String name, Type[] types)
691return GetPropertyImpl(name,Type.DefaultLookup,null,null,types,null);
694public PropertyInfo GetProperty(String name, Type returnType)
701return GetPropertyImpl(name,Type.DefaultLookup,null,returnType,null,null);
704internal PropertyInfo GetProperty(String name, BindingFlags bindingAttr, Type returnType)
719return GetPropertyImpl(name,Type.DefaultLookup,null,null,null,null);
723Type returnType, Type[] types, ParameterModifier[] modifiers);
732return GetProperties(Type.DefaultLookup);
739public Type[] GetNestedTypes()
741return GetNestedTypes(Type.DefaultLookup);
744abstract public Type[] GetNestedTypes(BindingFlags bindingAttr);
749public Type GetNestedType(String name)
751return GetNestedType(name,Type.DefaultLookup);
754abstract public Type GetNestedType(String name, BindingFlags bindingAttr);
760return GetMember(name,Type.DefaultLookup);
777return GetMembers(Type.DefaultLookup);
799Type[] t = null;
984Type type = this;
1000foreach (Type t in GetGenericArguments())
1202Type[] genericArguments = GetGenericArguments();
1214public virtual Type[] GetGenericParameterConstraints()
1317public virtual Type MakeGenericType(params Type[] typeArguments) {
1318Contract.Ensures(Contract.Result<Type>() != null);
1341abstract public Type GetElementType();
1344public virtual Type[] GetGenericArguments()
1349public virtual Type[] GenericTypeArguments{
1355return Type.EmptyTypes;
1362public virtual Type GetGenericTypeDefinition()
1364Contract.Ensures(Contract.Result<Type>() != null);
1371internal Type GetRootElementType()
1373Type rootElementType = this;
1468public virtual Type GetEnumUnderlyingType()
1472Contract.Ensures(Contract.Result<Type>() != null);
1491Type valueType = value.GetType();
1513if (Type.IsIntegerType(valueType))
1515Type underlyingType = GetEnumUnderlyingType();
1544Type valueType = value.GetType();
1546if (!(valueType.IsEnum || Type.IsIntegerType(valueType)))
1573internal static bool IsIntegerType(Type t)
1612foreach (Type genericArgument in GetGenericArguments())
1634public abstract Type UnderlyingSystemType {
1644public virtual bool IsSubclassOf(Type c)
1646Type p = this;
1676public virtual bool IsAssignableFrom(Type c)
1700Type[] constraints = GetGenericParameterConstraints();
1713public virtual bool IsEquivalentTo(Type other)
1718internal bool ImplementInterface(Type ifaceType)
1723Type t = this;
1726Type[] interfaces = t.GetInterfaces();
1766public static Type[] GetTypeArray(Object[] args) {
1770Type[] cls = new Type[args.Length];
1786return Equals(o as Type);
1792public virtual bool Equals(Type o)
1808public static extern bool operator ==(Type left, Type right);
1814public static extern bool operator !=(Type left, Type right);
1819Type SystemType = UnderlyingSystemType;
1831public virtual InterfaceMapping GetInterfaceMap(Type interfaceType)
1839public new Type GetType()
system\typenameparser.cs (11)
77internal static Type GetType(
80Func<Assembly, string, bool, Type> typeResolver,
91Type ret = null;
131private unsafe Type ConstructType(
133Func<Assembly, string, bool, Type> typeResolver,
166Type baseType = ResolveType(assembly, names, typeResolver, throwOnError, ignoreCase, ref stackMark);
177Type[] types = null;
180types = new Type[typeArguments.Length];
247private static Type ResolveType(Assembly assembly, string[] names, Func<Assembly, string, bool, Type> typeResolver, bool throwOnError, bool ignoreCase, ref StackCrawlMark stackMark)
251Type type = null;
system\unityserializationholder.cs (14)
75internal Type MakeElementTypes(Type type)
109info.AddValue("DeclaringType", type.DeclaringType, typeof(Type));
121info.AddValue("GenericArguments", type.GetGenericArguments(), typeof(Type[]));
156private Type[] m_instantiation;
159private Type m_declaringType;
181m_declaringType = info.GetValue("DeclaringType", typeof(Type)) as Type;
190m_instantiation = info.GetValue("GenericArguments", typeof(Type[])) as Type[];
248Type definition = GetRealObject(context) as Type;
277return Type.GetType(m_data, true, false);
281Type t = assembly.GetType(m_data, true, false);
Core\CSharp\MS\Internal\IListConverters.cs (9)
41public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
49public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
77public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
94internal abstract object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType);
120internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
162internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
203internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
245internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
283internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
src\Framework\MS\Internal\Commands\CommandHelpers.cs (13)
24internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler)
29internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
35internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
41internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
47internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
53internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
59internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
65internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
71internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
79internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, Key key, ModifierKeys modifierKeys,
85internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
92internal static void RegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
100private static void PrivateRegisterCommandHandler(Type controlType, RoutedCommand command, ExecutedRoutedEventHandler executedRoutedEventHandler,
src\Framework\MS\Internal\Data\DataBindEngine.cs (10)
346internal ViewRecord GetViewRecord(object collection, CollectionViewSource key, Type collectionViewType, bool createView, Func<object, object> GetSourceItem)
375internal IValueConverter GetDefaultValueConverter(Type sourceType,
376Type targetType,
674Type _sourceType, _targetType;
677public Key(Type sourceType, Type targetType, bool targetToSource)
711public IValueConverter this[Type sourceType, Type targetType, bool targetToSource]
721public void Add(Type sourceType, Type targetType, bool targetToSource, IValueConverter value)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (51)
41protected DefaultValueConverter(TypeConverter typeConverter, Type sourceType, Type targetType,
63internal static IValueConverter Create(Type sourceType,
64Type targetType,
69Type innerType;
183internal static TypeConverter GetConverter(Type type)
202internal static object TryParse(object o, Type targetType, CultureInfo culture)
216new Type[] {StringType, typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider)},
225new Type[] {StringType, typeof(System.IFormatProvider)},
234new Type[] {StringType},
257protected object ConvertFrom(object o, Type destinationType, DependencyObject targetElement, CultureInfo culture)
262protected object ConvertTo(object o, Type destinationType, DependencyObject targetElement, CultureInfo culture)
268protected void EnsureConverter(Type type)
282private object ConvertHelper(object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, bool isForward)
369protected Type _sourceType;
370protected Type _targetType;
377static Type StringType = typeof(String);
392public SourceDefaultValueConverter(TypeConverter typeConverter, Type sourceType, Type targetType,
405public object Convert(object o, Type type, object parameter, CultureInfo culture)
410public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
428public TargetDefaultValueConverter(TypeConverter typeConverter, Type sourceType, Type targetType,
440public object Convert(object o, Type type, object parameter, CultureInfo culture)
445public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
457public SystemConvertConverter(Type sourceType, Type targetType)
463public object Convert(object o, Type type, object parameter, CultureInfo culture)
468public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
477public static bool CanConvert(Type sourceType, Type targetType)
521private static bool CanConvertChar(Type type)
531Type _sourceType, _targetType;
534static readonly Type[] SupportedTypes = {
543static readonly Type[] CharSupportedTypes = {
565public ObjectTargetConverter(Type sourceType, DataBindEngine engine) :
577public object Convert(object o, Type type, object parameter, CultureInfo culture)
583public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
612public ObjectSourceConverter(Type targetType, DataBindEngine engine) :
624public object Convert(object o, Type type, object parameter, CultureInfo culture)
641public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
667public object Convert(object o, Type type, object parameter, CultureInfo culture)
680public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
698internal InterfaceConverter(Type sourceType, Type targetType)
710public object Convert(object o, Type type, object parameter, CultureInfo culture)
715public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
720private object ConvertTo(object o, Type type)
725Type _sourceType;
726Type _targetType;
736virtual public object GetService(Type serviceType)
src\Framework\MS\Internal\Data\DynamicValueConverter.cs (11)
34internal DynamicValueConverter(bool targetToSourceNeeded, Type sourceType, Type targetType)
40internal object Convert(object value, Type targetType)
45public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
51Type sourceType = value.GetType();
70public object ConvertBack(object value, Type sourceType, object parameter, CultureInfo culture)
76Type targetType = value.GetType();
96private void EnsureConverter(Type sourceType, Type targetType)
127private Type _sourceType;
128private Type _targetType;
src\Framework\MS\Internal\Data\ViewManager.cs (4)
502internal ViewRecord GetViewRecord(object collection, CollectionViewSource cvs, Type collectionViewType, bool createView, Func<object, object> GetSourceItem)
692private ViewRecord GetExistingView(object collection, CollectionViewSource cvs, Type collectionViewType, Func<object, object> GetSourceItem)
837private void ValidateViewType(CollectionView cv, Type collectionViewType)
845Type cachedViewType = (cvp == null) ? cv.GetType() : cvp.ProxiedView.GetType();
src\Framework\System\Windows\Controls\StickyNote.cs (5)
106Type owner = typeof(StickyNoteControl);
1951public object Convert(object o, Type type, object parameter, CultureInfo culture)
1967public object ConvertBack(object o, Type type, object parameter, CultureInfo culture)
1977public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
1995public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (16)
549Type elementType = textReader.ParentType;
551Type elementTypeStandardized = TextSchema.GetStandardElementType(elementType, reduceElement);
659Type rootType;
670Type contextType = context.ParentType;
776private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
841private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
851Type propertyOwnerType = context.ParentType;
921private static void WriteNoninheritableProperty(XmlWriter xmlWriter, DependencyProperty property, object propertyValue, Type propertyOwnerType, bool onlyAffected, DependencyObject complexProperties, object localValue)
961private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties)
1075private static void WriteComplexProperties(XmlWriter xmlWriter, DependencyObject complexProperties, Type elementType)
1117private static string GetPropertyNameForElement(DependencyProperty property, Type elementType, bool forceComplexName)
1145Type elementTypeStandardized = TextSchema.GetStandardElementType(element.GetType(), reduceElement);
1192Type elementTypeStandardized = typeof(Image);
1537private static void ValidateMergingPositions(Type itemType, TextPointer start, TextPointer end)
1624private static void ApplyContextualProperty(Type targetType, TextPointer start, TextPointer end, DependencyProperty property, object value)
1962private static string FilterNaNStringValueForDoublePropertyType(string stringValue, Type propertyType)
src\Framework\System\Windows\Documents\TextSchema.cs (25)
123internal static bool IsValidChild(TextElement parent, Type childType)
128internal static bool ValidateChild(TextElement parent, Type childType, bool throwIfIllegalChild, bool throwIfIllegalHyperlinkDescendent)
154internal static bool IsValidChild(TextPointer position, Type childType)
159internal static bool ValidateChild(TextPointer position, Type childType, bool throwIfIllegalChild, bool throwIfIllegalHyperlinkDescendent)
186internal static bool IsValidSibling(Type siblingType, Type newType)
219internal static bool IsValidChild(ITextPointer position, Type childType)
235internal static bool IsValidChildOfContainer(Type parentType, Type childType)
260internal static bool IsFormattingType(Type elementType)
271internal static bool IsKnownType(Type elementType)
277internal static bool IsNonFormattingInline(Type elementType)
282internal static bool IsMergeableInline(Type elementType)
287internal static bool IsNonMergeableInline(Type elementType)
306internal static bool AllowsParagraphMerging(Type elementType)
326internal static bool IsParagraphOrBlockUIContainer(Type elementType)
334internal static bool IsBlock(Type type)
340internal static bool IsBreak(Type type)
364internal static Type GetStandardElementType(Type type, bool reduceElement)
457internal static DependencyProperty[] GetInheritableProperties(Type type)
478internal static DependencyProperty[] GetNoninheritableProperties(Type type)
761Type propertyType = property.PropertyType;
807private static bool IsValidChild(Type parentType, Type childType)
src\Framework\System\Windows\Input\Command\CommandConverter.cs (9)
55public override bool CanConvertFrom( ITypeDescriptorContext context, Type sourceType )
74public override bool CanConvertTo( ITypeDescriptorContext context, Type destinationType )
114Type ownerType = GetTypeFromContext(context, typeName);
134internal static ICommand ConvertFromHelper(Type ownerType, string localName )
180public override object ConvertTo( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType )
210internal static bool IsKnownType( Type commandType )
224private Type GetTypeFromContext( ITypeDescriptorContext context, string typeName )
253private static RoutedUICommand GetKnownCommand( string localName, Type ownerType )
776internal static object GetKnownControlCommand(Type ownerType, string commandName)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (403)
1712Type type = typeof(System.Windows.Controls.AccessText);
1729Type type = typeof(System.Windows.Media.Animation.BeginStoryboard);
1745Type type = typeof(System.Windows.Media.Effects.BitmapEffectGroup);
1761Type type = typeof(System.Windows.Controls.Border);
1778Type type = typeof(System.Windows.Controls.Border);
1795Type type = typeof(System.Windows.Controls.Border);
1812Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
1829Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
1847Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
1863Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
1881Type type = typeof(System.Windows.Controls.ColumnDefinition);
1898Type type = typeof(System.Windows.Controls.ColumnDefinition);
1915Type type = typeof(System.Windows.Controls.ColumnDefinition);
1932Type type = typeof(System.Windows.Controls.ContentControl);
1950Type type = typeof(System.Windows.Controls.ContentControl);
1966Type type = typeof(System.Windows.Controls.ContentControl);
1982Type type = typeof(System.Windows.Controls.ContentControl);
2000Type type = typeof(System.Windows.ContentElement);
2017Type type = typeof(System.Windows.Controls.ContentPresenter);
2035Type type = typeof(System.Windows.Controls.ContentPresenter);
2052Type type = typeof(System.Windows.Controls.ContentPresenter);
2068Type type = typeof(System.Windows.Controls.ContentPresenter);
2084Type type = typeof(System.Windows.Controls.ContentPresenter);
2101Type type = typeof(System.Windows.Controls.Control);
2118Type type = typeof(System.Windows.Controls.Control);
2135Type type = typeof(System.Windows.Controls.Control);
2152Type type = typeof(System.Windows.Controls.Control);
2169Type type = typeof(System.Windows.Controls.Control);
2186Type type = typeof(System.Windows.Controls.Control);
2203Type type = typeof(System.Windows.Controls.Control);
2220Type type = typeof(System.Windows.Controls.Control);
2237Type type = typeof(System.Windows.Controls.Control);
2254Type type = typeof(System.Windows.Controls.Control);
2271Type type = typeof(System.Windows.Controls.Control);
2288Type type = typeof(System.Windows.Controls.Control);
2305Type type = typeof(System.Windows.Controls.Control);
2322Type type = typeof(System.Windows.Controls.Control);
2338Type type = typeof(System.Windows.Controls.Control);
2355Type type = typeof(System.Windows.Controls.DockPanel);
2372Type type = typeof(System.Windows.Controls.DockPanel);
2389Type type = typeof(System.Windows.Controls.Primitives.DocumentViewerBase);
2405Type type = typeof(System.Windows.Media.DrawingGroup);
2421Type type = typeof(System.Windows.Controls.FlowDocumentReader);
2437Type type = typeof(System.Windows.Controls.FlowDocumentScrollViewer);
2453Type type = typeof(System.Windows.FrameworkContentElement);
2469Type type = typeof(System.Windows.FrameworkElement);
2486Type type = typeof(System.Windows.FrameworkElement);
2503Type type = typeof(System.Windows.FrameworkElement);
2520Type type = typeof(System.Windows.FrameworkElement);
2537Type type = typeof(System.Windows.FrameworkElement);
2554Type type = typeof(System.Windows.FrameworkElement);
2571Type type = typeof(System.Windows.FrameworkElement);
2588Type type = typeof(System.Windows.FrameworkElement);
2605Type type = typeof(System.Windows.FrameworkElement);
2622Type type = typeof(System.Windows.FrameworkElement);
2638Type type = typeof(System.Windows.FrameworkElement);
2655Type type = typeof(System.Windows.FrameworkElement);
2672Type type = typeof(System.Windows.Media.GeneralTransformGroup);
2688Type type = typeof(System.Windows.Media.GeometryGroup);
2704Type type = typeof(System.Windows.Media.GradientBrush);
2720Type type = typeof(System.Windows.Controls.Grid);
2737Type type = typeof(System.Windows.Controls.Grid);
2754Type type = typeof(System.Windows.Controls.Grid);
2771Type type = typeof(System.Windows.Controls.Grid);
2788Type type = typeof(System.Windows.Controls.GridViewColumn);
2806Type type = typeof(System.Windows.Controls.HeaderedContentControl);
2824Type type = typeof(System.Windows.Controls.HeaderedContentControl);
2842Type type = typeof(System.Windows.Controls.HeaderedContentControl);
2858Type type = typeof(System.Windows.Controls.HeaderedContentControl);
2874Type type = typeof(System.Windows.Controls.HeaderedItemsControl);
2892Type type = typeof(System.Windows.Controls.HeaderedItemsControl);
2910Type type = typeof(System.Windows.Controls.HeaderedItemsControl);
2926Type type = typeof(System.Windows.Controls.HeaderedItemsControl);
2942Type type = typeof(System.Windows.Documents.Hyperlink);
2959Type type = typeof(System.Windows.Controls.Image);
2976Type type = typeof(System.Windows.Controls.Image);
2993Type type = typeof(System.Windows.Controls.ItemsControl);
3009Type type = typeof(System.Windows.Controls.ItemsControl);
3025Type type = typeof(System.Windows.Controls.ItemsControl);
3041Type type = typeof(System.Windows.Controls.ItemsControl);
3057Type type = typeof(System.Windows.Controls.ItemsControl);
3073Type type = typeof(System.Windows.Controls.ItemsControl);
3089Type type = typeof(System.Windows.Media.Media3D.MaterialGroup);
3105Type type = typeof(System.Windows.Media.Media3D.Model3DGroup);
3121Type type = typeof(System.Windows.Controls.Page);
3139Type type = typeof(System.Windows.Controls.Panel);
3156Type type = typeof(System.Windows.Shapes.Path);
3173Type type = typeof(System.Windows.Media.PathFigure);
3189Type type = typeof(System.Windows.Media.PathGeometry);
3206Type type = typeof(System.Windows.Controls.Primitives.Popup);
3222Type type = typeof(System.Windows.Controls.Primitives.Popup);
3239Type type = typeof(System.Windows.Controls.Primitives.Popup);
3256Type type = typeof(System.Windows.Controls.Primitives.Popup);
3273Type type = typeof(System.Windows.Controls.RowDefinition);
3290Type type = typeof(System.Windows.Controls.RowDefinition);
3307Type type = typeof(System.Windows.Controls.RowDefinition);
3324Type type = typeof(System.Windows.Controls.ScrollViewer);
3341Type type = typeof(System.Windows.Controls.ScrollViewer);
3358Type type = typeof(System.Windows.Controls.ScrollViewer);
3375Type type = typeof(System.Windows.Shapes.Shape);
3392Type type = typeof(System.Windows.Shapes.Shape);
3409Type type = typeof(System.Windows.Shapes.Shape);
3426Type type = typeof(System.Windows.Controls.TextBlock);
3443Type type = typeof(System.Windows.Controls.TextBlock);
3460Type type = typeof(System.Windows.Controls.TextBlock);
3477Type type = typeof(System.Windows.Controls.TextBlock);
3494Type type = typeof(System.Windows.Controls.TextBlock);
3511Type type = typeof(System.Windows.Controls.TextBlock);
3528Type type = typeof(System.Windows.Controls.TextBlock);
3545Type type = typeof(System.Windows.Controls.TextBlock);
3562Type type = typeof(System.Windows.Controls.TextBlock);
3579Type type = typeof(System.Windows.Controls.TextBlock);
3596Type type = typeof(System.Windows.Controls.TextBlock);
3613Type type = typeof(System.Windows.Controls.TextBox);
3630Type type = typeof(System.Windows.Documents.TextElement);
3647Type type = typeof(System.Windows.Documents.TextElement);
3664Type type = typeof(System.Windows.Documents.TextElement);
3681Type type = typeof(System.Windows.Documents.TextElement);
3698Type type = typeof(System.Windows.Documents.TextElement);
3715Type type = typeof(System.Windows.Documents.TextElement);
3732Type type = typeof(System.Windows.Documents.TextElement);
3749Type type = typeof(System.Windows.Media.Animation.TimelineGroup);
3765Type type = typeof(System.Windows.Controls.Primitives.Track);
3782Type type = typeof(System.Windows.Controls.Primitives.Track);
3799Type type = typeof(System.Windows.Controls.Primitives.Track);
3816Type type = typeof(System.Windows.Controls.Primitives.Track);
3833Type type = typeof(System.Windows.Controls.Primitives.Track);
3850Type type = typeof(System.Windows.Controls.Primitives.Track);
3867Type type = typeof(System.Windows.Media.Media3D.Transform3DGroup);
3883Type type = typeof(System.Windows.Media.TransformGroup);
3899Type type = typeof(System.Windows.UIElement);
3916Type type = typeof(System.Windows.UIElement);
3933Type type = typeof(System.Windows.UIElement);
3950Type type = typeof(System.Windows.UIElement);
3967Type type = typeof(System.Windows.UIElement);
3984Type type = typeof(System.Windows.Controls.Viewport3D);
4001Type type = typeof(System.Windows.Controls.AdornedElementPlaceholder);
4018Type type = typeof(System.Windows.Documents.AdornerDecorator);
4035Type type = typeof(System.Windows.Documents.AnchoredBlock);
4052Type type = typeof(System.Windows.Markup.ArrayExtension);
4069Type type = typeof(System.Windows.Documents.BlockUIContainer);
4086Type type = typeof(System.Windows.Documents.Bold);
4103Type type = typeof(System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames);
4120Type type = typeof(System.Windows.Controls.Border);
4137Type type = typeof(System.Windows.Controls.Primitives.BulletDecorator);
4154Type type = typeof(System.Windows.Controls.Button);
4172Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
4190Type type = typeof(System.Windows.Media.Animation.ByteAnimationUsingKeyFrames);
4207Type type = typeof(System.Windows.Controls.Canvas);
4224Type type = typeof(System.Windows.Media.Animation.CharAnimationUsingKeyFrames);
4241Type type = typeof(System.Windows.Controls.CheckBox);
4259Type type = typeof(System.Windows.Media.Animation.ColorAnimationUsingKeyFrames);
4276Type type = typeof(System.Windows.Controls.ComboBox);
4293Type type = typeof(System.Windows.Controls.ComboBoxItem);
4311Type type = typeof(System.Windows.Controls.ContextMenu);
4328Type type = typeof(System.Windows.Controls.ControlTemplate);
4345Type type = typeof(System.Windows.DataTemplate);
4362Type type = typeof(System.Windows.DataTrigger);
4379Type type = typeof(System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames);
4396Type type = typeof(System.Windows.Controls.Decorator);
4413Type type = typeof(System.Windows.Controls.DockPanel);
4430Type type = typeof(System.Windows.Controls.DocumentViewer);
4446Type type = typeof(System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames);
4463Type type = typeof(System.Windows.EventTrigger);
4480Type type = typeof(System.Windows.Controls.Expander);
4498Type type = typeof(System.Windows.Documents.Figure);
4515Type type = typeof(System.Windows.Documents.FixedDocument);
4532Type type = typeof(System.Windows.Documents.FixedDocumentSequence);
4549Type type = typeof(System.Windows.Documents.FixedPage);
4566Type type = typeof(System.Windows.Documents.Floater);
4583Type type = typeof(System.Windows.Documents.FlowDocument);
4600Type type = typeof(System.Windows.Controls.FlowDocumentPageViewer);
4616Type type = typeof(System.Windows.FrameworkTemplate);
4633Type type = typeof(System.Windows.Controls.Grid);
4650Type type = typeof(System.Windows.Controls.GridView);
4667Type type = typeof(System.Windows.Controls.GridViewColumnHeader);
4685Type type = typeof(System.Windows.Controls.GroupBox);
4703Type type = typeof(System.Windows.Controls.GroupItem);
4721Type type = typeof(System.Windows.Controls.HeaderedContentControl);
4739Type type = typeof(System.Windows.Controls.HeaderedItemsControl);
4756Type type = typeof(System.Windows.HierarchicalDataTemplate);
4773Type type = typeof(System.Windows.Documents.Hyperlink);
4790Type type = typeof(System.Windows.Controls.InkCanvas);
4807Type type = typeof(System.Windows.Controls.InkPresenter);
4824Type type = typeof(System.Windows.Documents.InlineUIContainer);
4841Type type = typeof(System.Windows.Input.InputScopeName);
4859Type type = typeof(System.Windows.Media.Animation.Int16AnimationUsingKeyFrames);
4876Type type = typeof(System.Windows.Media.Animation.Int32AnimationUsingKeyFrames);
4893Type type = typeof(System.Windows.Media.Animation.Int64AnimationUsingKeyFrames);
4910Type type = typeof(System.Windows.Documents.Italic);
4927Type type = typeof(System.Windows.Controls.ItemsControl);
4944Type type = typeof(System.Windows.Controls.ItemsPanelTemplate);
4961Type type = typeof(System.Windows.Controls.Label);
4979Type type = typeof(System.Windows.Media.LinearGradientBrush);
4995Type type = typeof(System.Windows.Documents.List);
5012Type type = typeof(System.Windows.Controls.ListBox);
5029Type type = typeof(System.Windows.Controls.ListBoxItem);
5047Type type = typeof(System.Windows.Documents.ListItem);
5064Type type = typeof(System.Windows.Controls.ListView);
5081Type type = typeof(System.Windows.Controls.ListViewItem);
5099Type type = typeof(System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames);
5116Type type = typeof(System.Windows.Controls.Menu);
5133Type type = typeof(System.Windows.Controls.Primitives.MenuBase);
5150Type type = typeof(System.Windows.Controls.MenuItem);
5167Type type = typeof(System.Windows.Media.Media3D.ModelVisual3D);
5184Type type = typeof(System.Windows.Data.MultiBinding);
5201Type type = typeof(System.Windows.MultiDataTrigger);
5218Type type = typeof(System.Windows.MultiTrigger);
5235Type type = typeof(System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames);
5252Type type = typeof(System.Windows.Documents.PageContent);
5269Type type = typeof(System.Windows.Navigation.PageFunctionBase);
5287Type type = typeof(System.Windows.Controls.Panel);
5304Type type = typeof(System.Windows.Documents.Paragraph);
5321Type type = typeof(System.Windows.Media.Animation.ParallelTimeline);
5337Type type = typeof(System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames);
5354Type type = typeof(System.Windows.Media.Animation.PointAnimationUsingKeyFrames);
5371Type type = typeof(System.Windows.Data.PriorityBinding);
5388Type type = typeof(System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames);
5405Type type = typeof(System.Windows.Media.RadialGradientBrush);
5421Type type = typeof(System.Windows.Controls.RadioButton);
5439Type type = typeof(System.Windows.Media.Animation.RectAnimationUsingKeyFrames);
5456Type type = typeof(System.Windows.Controls.Primitives.RepeatButton);
5474Type type = typeof(System.Windows.Controls.RichTextBox);
5491Type type = typeof(System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames);
5508Type type = typeof(System.Windows.Documents.Run);
5525Type type = typeof(System.Windows.Controls.ScrollViewer);
5543Type type = typeof(System.Windows.Documents.Section);
5560Type type = typeof(System.Windows.Controls.Primitives.Selector);
5577Type type = typeof(System.Windows.Media.Animation.SingleAnimationUsingKeyFrames);
5594Type type = typeof(System.Windows.Media.Animation.SizeAnimationUsingKeyFrames);
5611Type type = typeof(System.Windows.Documents.Span);
5628Type type = typeof(System.Windows.Controls.StackPanel);
5645Type type = typeof(System.Windows.Controls.Primitives.StatusBar);
5662Type type = typeof(System.Windows.Controls.Primitives.StatusBarItem);
5680Type type = typeof(System.Windows.Media.Animation.Storyboard);
5696Type type = typeof(System.Windows.Media.Animation.StringAnimationUsingKeyFrames);
5713Type type = typeof(System.Windows.Style);
5730Type type = typeof(System.Windows.Controls.TabControl);
5747Type type = typeof(System.Windows.Controls.TabItem);
5765Type type = typeof(System.Windows.Controls.Primitives.TabPanel);
5782Type type = typeof(System.Windows.Documents.Table);
5799Type type = typeof(System.Windows.Documents.TableCell);
5816Type type = typeof(System.Windows.Documents.TableRow);
5833Type type = typeof(System.Windows.Documents.TableRowGroup);
5850Type type = typeof(System.Windows.Controls.TextBlock);
5867Type type = typeof(System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames);
5884Type type = typeof(System.Windows.Controls.Primitives.ToggleButton);
5902Type type = typeof(System.Windows.Controls.ToolBar);
5919Type type = typeof(System.Windows.Controls.Primitives.ToolBarOverflowPanel);
5936Type type = typeof(System.Windows.Controls.Primitives.ToolBarPanel);
5953Type type = typeof(System.Windows.Controls.ToolBarTray);
5970Type type = typeof(System.Windows.Controls.ToolTip);
5988Type type = typeof(System.Windows.Controls.TreeView);
6005Type type = typeof(System.Windows.Controls.TreeViewItem);
6022Type type = typeof(System.Windows.Trigger);
6039Type type = typeof(System.Windows.Documents.Underline);
6056Type type = typeof(System.Windows.Controls.Primitives.UniformGrid);
6073Type type = typeof(System.Windows.Controls.UserControl);
6091Type type = typeof(System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames);
6108Type type = typeof(System.Windows.Media.Animation.VectorAnimationUsingKeyFrames);
6125Type type = typeof(System.Windows.Controls.Viewbox);
6142Type type = typeof(System.Windows.Media.Media3D.Viewport3DVisual);
6159Type type = typeof(System.Windows.Controls.VirtualizingPanel);
6176Type type = typeof(System.Windows.Controls.VirtualizingStackPanel);
6193Type type = typeof(System.Windows.Window);
6211Type type = typeof(System.Windows.Controls.WrapPanel);
6228Type type = typeof(System.Windows.Data.XmlDataProvider);
6245Type type = typeof(System.Windows.Controls.ControlTemplate);
6262Type type = typeof(System.Windows.DataTemplate);
6279Type type = typeof(System.Windows.DataTemplate);
6298Type type = typeof(System.Windows.Controls.ControlTemplate);
6302typeof(System.Type), // type
6307bamlMember.TypeConverterType = typeof(System.Type);
6309bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).TargetType = (System.Type)value; };
6318Type type = typeof(System.Windows.FrameworkElement);
6336Type type = typeof(System.Windows.FrameworkTemplate);
6355Type type = typeof(System.Windows.Controls.Grid);
6372Type type = typeof(System.Windows.Controls.Grid);
6389Type type = typeof(System.Windows.MultiTrigger);
6406Type type = typeof(System.Windows.NameScope);
6422Type type = typeof(System.Windows.Style);
6426typeof(System.Type), // type
6431bamlMember.TypeConverterType = typeof(System.Type);
6433bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).TargetType = (System.Type)value; };
6442Type type = typeof(System.Windows.Style);
6459Type type = typeof(System.Windows.Setter);
6477Type type = typeof(System.Windows.Setter);
6496Type type = typeof(System.Windows.Data.Binding);
6514Type type = typeof(System.Windows.ComponentResourceKey);
6533Type type = typeof(System.Windows.ComponentResourceKey);
6537typeof(System.Type), // type
6542bamlMember.TypeConverterType = typeof(System.Type);
6543bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.ComponentResourceKey)target).TypeInTargetAssembly = (System.Type)value; };
6552Type type = typeof(System.Windows.Data.Binding);
6569Type type = typeof(System.Windows.Data.Binding);
6588Type type = typeof(System.Windows.Data.Binding);
6605Type type = typeof(System.Windows.Data.Binding);
6623Type type = typeof(System.Windows.Media.Animation.Timeline);
6640Type type = typeof(System.Windows.Style);
6658Type type = typeof(System.Windows.Data.Binding);
6676Type type = typeof(System.Windows.Data.Binding);
6694Type type = typeof(System.Windows.ResourceDictionary);
6712Type type = typeof(System.Windows.Trigger);
6730Type type = typeof(System.Windows.Trigger);
6749Type type = typeof(System.Windows.Data.RelativeSource);
6753typeof(System.Type), // type
6758bamlMember.TypeConverterType = typeof(System.Type);
6759bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.RelativeSource)target).AncestorType = (System.Type)value; };
6768Type type = typeof(System.Windows.UIElement);
6785Type type = typeof(System.Windows.FrameworkContentElement);
6802Type type = typeof(System.Windows.FrameworkContentElement);
6820Type type = typeof(System.Windows.Style);
6838Type type = typeof(System.Windows.FrameworkTemplate);
6856Type type = typeof(System.Windows.Application);
6874Type type = typeof(System.Windows.Data.MultiBinding);
6891Type type = typeof(System.Windows.Data.MultiBinding);
6910Type type = typeof(System.Windows.Media.LinearGradientBrush);
6927Type type = typeof(System.Windows.Media.LinearGradientBrush);
6944Type type = typeof(System.Windows.Input.CommandBinding);
6962Type type = typeof(System.Windows.Condition);
6981Type type = typeof(System.Windows.Condition);
6999Type type = typeof(System.Windows.Condition);
7016Type type = typeof(System.Windows.Data.BindingBase);
7035Type type = typeof(System.Windows.Window);
7052Type type = typeof(System.Windows.Window);
7069Type type = typeof(System.Windows.Window);
7086Type type = typeof(System.Windows.Shapes.Shape);
7103Type type = typeof(System.Windows.Shapes.Shape);
7120Type type = typeof(System.Windows.Shapes.Shape);
7137Type type = typeof(System.Windows.Media.TileBrush);
7154Type type = typeof(System.Windows.Media.TileBrush);
7171Type type = typeof(System.Windows.Media.TileBrush);
7188Type type = typeof(System.Windows.Media.GeometryDrawing);
7204Type type = typeof(System.Windows.Controls.TextBox);
7221Type type = typeof(System.Windows.Controls.StackPanel);
7238Type type = typeof(System.Windows.Controls.Primitives.Track);
7255Type type = typeof(System.Windows.Controls.Primitives.Track);
7272Type type = typeof(System.Windows.Controls.Primitives.Track);
7289Type type = typeof(System.Windows.EventTrigger);
7307Type type = typeof(System.Windows.Input.InputBinding);
7324Type type = typeof(System.Windows.Input.KeyBinding);
7342Type type = typeof(System.Windows.Controls.TextBox);
7359Type type = typeof(System.Windows.Controls.TextBlock);
7376Type type = typeof(System.Windows.Navigation.JournalEntryUnifiedViewConverter);
7393Type type = typeof(System.Windows.Media.GradientBrush);
7410Type type = typeof(System.Windows.Controls.MenuItem);
7428Type type = typeof(System.Windows.DataTrigger);
7447Type type = typeof(System.Windows.DataTrigger);
7464Type type = typeof(System.Windows.Setter);
7483Type type = typeof(System.Windows.ResourceDictionary);
7501Type type = typeof(System.Windows.Media.Animation.BeginStoryboard);
7519Type type = typeof(System.Windows.ResourceDictionary);
7536Type type = typeof(System.Windows.Input.KeyboardNavigation);
7553Type type = typeof(System.Windows.Input.KeyboardNavigation);
7570Type type = typeof(System.Windows.Controls.Primitives.ScrollBar);
7587Type type = typeof(System.Windows.Trigger);
7606Type type = typeof(System.Windows.EventTrigger);
7624Type type = typeof(System.Windows.Controls.DefinitionBase);
7641Type type = typeof(System.Windows.Controls.ToolTipService);
7659Type type = typeof(System.Windows.Media.PathFigure);
7676Type type = typeof(System.Windows.Media.PathFigure);
7693Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
7710Type type = typeof(System.Windows.Documents.Block);
7727Type type = typeof(System.Windows.UIElement);
7744Type type = typeof(System.Windows.Media.Pen);
7761Type type = typeof(System.Windows.Controls.Primitives.BulletDecorator);
7778Type type = typeof(System.Windows.UIElement);
7795Type type = typeof(System.Windows.UIElement);
7812Type type = typeof(System.Windows.UIElement);
7829Type type = typeof(System.Windows.Media.SolidColorBrush);
7846Type type = typeof(System.Windows.Media.Brush);
7863Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase);
7880Type type = typeof(System.Windows.Media.PathSegment);
7897Type type = typeof(System.Windows.Controls.VirtualizingPanel);
7914Type type = typeof(System.Windows.Shapes.Shape);
7931Type type = typeof(System.Windows.Controls.Frame);
7948Type type = typeof(System.Windows.Controls.Frame);
7965Type type = typeof(System.Windows.Media.Animation.Storyboard);
7982Type type = typeof(System.Windows.Data.XmlDataProvider);
8000Type type = typeof(System.Windows.Controls.Primitives.Selector);
8017Type type = typeof(System.Windows.DataTemplate);
8037Type type = typeof(System.Windows.Shapes.Shape);
8054Type type = typeof(System.Windows.UIElement);
8071Type type = typeof(System.Windows.Controls.MenuItem);
8088Type type = typeof(System.Windows.Controls.Panel);
8105Type type = typeof(System.Windows.Data.Binding);
8123Type type = typeof(System.Windows.Window);
8140Type type = typeof(System.Windows.Data.ObjectDataProvider);
8144typeof(System.Type), // type
8149bamlMember.TypeConverterType = typeof(System.Type);
8150bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.ObjectDataProvider)target).ObjectType = (System.Type)value; };
8159Type type = typeof(System.Windows.Controls.ToolBar);
8177Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase);
8194Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase);
8211Type type = typeof(System.Windows.FrameworkElement);
8228Type type = typeof(System.Windows.MultiDataTrigger);
8245Type type = typeof(System.Windows.Input.KeyBinding);
8262Type type = typeof(System.Windows.Data.Binding);
8281Type type = typeof(System.Windows.Controls.Canvas);
8298Type type = typeof(System.Windows.Controls.Canvas);
8315Type type = typeof(System.Windows.Controls.Canvas);
8332Type type = typeof(System.Windows.Controls.Canvas);
8349Type type = typeof(System.Windows.Media.Animation.Storyboard);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (22)
1772new List<Type>() { typeof(System.Type) },
1776(System.Type)arguments[0]);
1852new List<Type>() { typeof(System.String) },
2695new List<Type>() { typeof(System.Object) },
2825new List<Type>() { typeof(System.Type), typeof(System.Object) },
2829(System.Type)arguments[0],
3165new List<Type>() { typeof(System.Object) },
4033new List<Type>() { typeof(System.Object) },
8294new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode) },
8301new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode), typeof(System.Type), typeof(System.Int32) },
8306(System.Type)arguments[1],
9424new List<Type>() { typeof(System.String) },
9443new List<Type>() { typeof(System.Object) },
9875new List<Type>() { typeof(System.Windows.DependencyProperty) },
10089new List<Type>() { typeof(System.String) },
10651new List<Type>() { typeof(System.Type) },
10655(System.Type)arguments[0]);
11830new List<Type>() { typeof(System.Object) },
src\Framework\System\Windows\Markup\BamlMapTable.cs (47)
116internal static Type GetKnownTypeFromId(short id)
145Type probeType = KnownTypes.Types[probe];
176internal static short GetKnownTypeIdFromType(Type type)
214internal static KnownElements GetKnownTypeConverterIdFromType(Type type)
221else if (type == typeof(System.Type))
244internal TypeConverter GetKnownConverterFromType(Type type)
264internal static TypeConverter GetKnownConverterFromType_NoCache(Type type)
298internal Type GetKnownConverterTypeFromType(Type type)
319if (type == typeof(System.Type))
344private static Type GetKnownConverterTypeFromPropName(
345Type propOwnerType,
419internal Type GetTypeFromId(short id)
421Type type = null;
529private short GetAssemblyIdForType(Type t)
549Type propType,
596Type t = GetTypeFromId(typeId);
660Type ownerType = record.OwnerType;
774internal Type GetTypeFromTypeInfo(BamlTypeInfoRecord typeInfo)
794Type type = assembly.GetType(typeInfo.TypeFullName);
807private Type GetAttributeOwnerType(BamlAttributeInfoRecord bamlAttributeInfoRecord)
829internal Type GetCLRPropertyTypeAndNameFromId(short attributeId, out string propName)
832Type propType = null;
865internal DependencyProperty GetDependencyPropertyValueFromId(short memberId, string memberName, out Type declaringType)
912Type declaringType = GetTypeFromId(ownerTypeId);
958Type ownerType = GetAttributeOwnerType(bamlAttributeInfoRecord);
971internal short GetAttributeOrTypeId(BinaryWriter binaryWriter, Type declaringType, string memberName, out short typeId)
1225Type elementType,
1309Type owningType, // Actual type of the object the owns or declares this attribute
1311Type attributeType, // Type of the attribute or property itself; not its owner type
1322Type owningType, // Actual type of the object the owns or declares this attribute
1324Type attributeType, // Type of the attribute or property itself; not its owner type
1336Type serializerType = XamlTypeMapper.GetXamlSerializerForType(owningType);
1387Type ownerType, // Type of object that owns or declares this attribute
1388Type attributeType, // Type of the attribute or property itself; not its owner type
1392out Type converterOrSerializerType)
1503Type defaultTargetType)
1506Type targetType = null;
1552Type declaringType, // Type of object that owns or declares this attribute
1553Type attributeType) // Type of the attribute or property itself; not its owner type
1571private Type GetCustomConverter(
1573Type ownerType, // Type of object that owns or declares this attribute
1575Type attributeType) // Type of the attribute or property itself; not its owner type
1578Type converterType = GetKnownConverterTypeFromPropName(ownerType, fieldName);
1612private Type GetCustomSerializer(
1613Type type,
1727private TypeConverter GetConverterFromCache(Type type)
src\Framework\System\Windows\Markup\BamlRecordReader.cs (37)
868out Type delayCreatedType,
872Type elementType = MapTable.GetTypeFromId(typeId);
910protected ReaderFlags GetFlagsFromType(Type elementType)
1031Type delayCreatedType = null;
1280Type elementType = MapTable.GetTypeFromId(bamlElementRecord.TypeId);
1424Type elementType = ParentContext.ExpectedType;
1453Type t = param as Type;
1502Type ownerType = ParserContext.TargetType;
2134Type declaringType = null;
2139out Type declaringType)
2178internal object GetCustomValue(BamlPropertyCustomRecord bamlPropertyRecord, Type propertyType, string propertyName)
2686Type valueType = MapTable.GetTypeFromId(bamlPropertyRecord.TypeId);
3071Type expectedType = holder.PropertyType;
3399Type keyType = MapTable.GetTypeFromId(bamlDefAttributeRecord.TypeId);
3717Type propertyType = null;
3792static private Type NullableType = typeof(Nullable<>);
3794static internal bool IsNullable(Type t)
3801internal object OptionallyMakeNullable(Type propertyType, object o, string propName)
3808((Type)propertyType.GetGenericArguments()[0]).Name,
3819static internal bool TryOptionallyMakeNullable( Type propertyType, string propName, ref object o )
3825Type genericType = (Type)propertyType.GetGenericArguments()[0];
4002Type propertyType,
4045Type propertyType)
4054if (propertyType == typeof(Type))
4078object GetObjectFromString(Type type, string s, short converterTypeId)
4334Type expectedType,
4344Type expectedType,
4822Type parentType = GetParentType();
4840Type parentType = GetParentType();
4856private Type GetParentType()
4913Type elementType;
5174Type currentParentType;
5281Type type,
5840Type currentParentType = currentParent.GetType();
5900public Type PropertyType
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (25)
54ref Type baseType,
55ref Type serializerType);
83Type declaringType, // Type where propIdName is declared
108Type declaringType,
169private KnownElements GetKnownExtensionFromType(Type extensionType, out string propName)
209Type extensionType,
246Type extensionType,
320Type targetType)
464Type declaringType, // Type where attribute is declared
475Type targetType;
476Type serializerType;
498Type declaringType, // Type where propIdName is declared
511Type targetType;
512Type serializerType;
572out Type targetType,
573out Type serializerType)
660Type propertyType;
934Type extensionType)
1221private ParameterInfo[] FindLongestConstructor(Type extensionType, out int maxConstructorArguments)
1400Type declaringType;
1516Type parentType,
1534Type declaringType;
1569Type typeValue = _parserContext.XamlTypeMapper.GetTypeFromBaseString(value,
1669Type elementBaseType,
1676out Type declaringType, // type of the object that the field is on
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (47)
63public override Type ObjectType
226Type ownerType = dpd.DependencyProperty.OwnerType;
253Type instanceType = instance.GetType();
302public ShouldSerializeKey(Type type, string propertyName)
337private Type _type;
426private static Type[] _shouldSerializeArgsObject = new Type[] { typeof(DependencyObject) };
427private static Type[] _shouldSerializeArgsManager = new Type[] { typeof(XamlDesignerSerializationManager) };
428private static Type[] _shouldSerializeArgsMode = new Type[] { typeof(XamlWriterMode) };
429private static Type[] _shouldSerializeArgsObjectManager = new Type[] { typeof(DependencyObject), typeof(XamlDesignerSerializationManager) };
522Type keyType = GetDictionaryKeyType(dictionary);
643static readonly List<Type> EmptyTypes = new List<Type>();
645public override IEnumerable<Type> TypeReferences
671protected abstract Type GetObjectType();
707private static Dictionary<Type, Type> _keyTypeMap;
709private static Type GetDictionaryKeyType(IDictionary value)
711Type type = value.GetType();
712Type result;
715_keyTypeMap = new Dictionary<Type, Type>();
718foreach (Type interfaceType in type.GetInterfaces())
722Type genericTypeDefinition = interfaceType.GetGenericTypeDefinition();
752protected override Type GetObjectType()
776public override Type PropertyType
914Type propertyType,
939Type type = value as Type;
945if( propertyType == typeof(Type) )
960ValueSerializer typeSerializer = context.GetValueSerializerFor(typeof(Type));
1001public override Type PropertyType
1041public override IEnumerable<Type> TypeReferences
1060internal ElementPseudoPropertyBase(object value, Type type, ElementMarkupObject obj) : base(obj)
1066public override Type PropertyType
1081public override IEnumerable<Type> TypeReferences
1083get { return new Type[0]; }
1087private Type _type;
1095internal ElementKey(object value, Type type, ElementMarkupObject obj) : base(value, type, obj) { }
1113internal ElementConstructorArgument(object value, Type type, ElementMarkupObject obj) : base(value, type, obj) { }
1131internal ElementItemsPseudoProperty(IEnumerable value, Type type, ElementMarkupObject obj) : base(value, type, obj)
1170internal ElementDictionaryItemsPseudoProperty(IDictionary value, Type type, ElementMarkupObject obj) : base(value, type, obj)
1223public ValueSerializer GetValueSerializerFor(Type type)
1278public object GetService(Type serviceType)
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (83)
126public Type GetType(
530Type owner,
534Type baseType = null;
588Type propType,
806Type propType,
861Type owner,
886Type ownerType,
907Type currentParentType,
949Type propertyOwnerType = attributeInfo.OwnerType;
1024Type owner,
1267protected virtual bool AllowInternalType(Type type)
1272private bool IsInternalTypeAllowedInFullTrust(Type type)
1299Type owner,
1329Type owner,
1359Type objectType = typeAndSerializer.ObjectType;
1380Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject];
1518Type baseType = owner;
1543Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject];
1678Type owner,
1720Type owner,
1723ref Type baseType,
1856ref Type ownerType)
1993Type ownerType,
2085Type ownerType)
2088Type currentType = ownerType;
2111internal static Type GetPropertyType(object propertyMember)
2113Type propertyType;
2128out Type propertyType,
2209internal static Type GetDeclaringType(object propertyMember)
2211Type validType = null;
2249internal static Type GetTypeFromName(string typeName, DependencyObject element)
2301Type t = assy.GetType(fullTypeName);
2321Type t = assy.GetType(fullTypeName);
2336internal Type GetTargetTypeAndMember(string valueParam,
2351Type targetType = null;
2387internal Type GetDependencyPropertyOwnerAndName(string memberValue,
2389Type defaultTargetType,
2392Type targetType = GetTargetTypeAndMember(memberValue, context, false, out memberName);
2419internal MemberInfo GetStaticMemberInfo(Type targetType, string memberName, bool fieldInfoOnly)
2459private MemberInfo GetStaticMemberInfo(Type targetType, string memberName, bool fieldInfoOnly, bool tryInternal)
2634Type objectType = GetObjectType(namespaceMap, localName, knownTypesOnly);
2684private Type GetObjectType(
2692Type type = null;
2761internal int GetCustomBamlSerializerIdForType(Type objectType)
2802internal Type GetXamlSerializerForType(Type objectType)
2818internal static Type GetInternalTypeHelperTypeFromAssembly(ParserContext pc)
2826Type ithType = a.GetType(GeneratedNamespace + "." + GeneratedInternalTypeHelperClassName);
2846Type ithType = GetInternalTypeHelperTypeFromAssembly(pc);
2861internal static object CreateInternalInstance(ParserContext pc, Type type)
2980internal static Delegate CreateDelegate(ParserContext pc, Type delegateType, object target, string handler)
3068internal Type GetTypeFromBaseString(
3074Type keyObject = null;
3205private TypeInformationCacheData GetCachedInformationForType(Type type)
3226private Type GetCachedBaseType(Type t)
3282ref Type ownerType)
3305Type ownerType)
3325internal object CreateInstance(Type t)
3621private string GetCachedNamespace(Type t)
3667internal Type GetTypeConverterType(Type type)
3671Type converterType = null;
3698internal TypeConverter GetTypeConverter(Type type)
3718Type converterType = TypeConverterHelper.GetConverterType(type);
3742internal Type GetPropertyConverterType(Type propType, object dpOrPiOrMi)
3745Type converterType = null;
3786internal TypeConverter GetPropertyConverter(Type propType, object dpOrPiOrMi)
3809Type converterType = TypeConverterHelper.GetConverterType(memberInfo);
3864internal ConstructorData GetConstructors(Type type)
3953internal bool GetCachedTrimSurroundingWhitespace(Type t)
3971private bool GetTrimSurroundingWhitespace(Type type)
4154internal TypeInformationCacheData(Type baseType)
4175internal Type BaseType
4191internal Type TypeConverterType
4237Type ownerType,
4291Type _baseType;
4299Type _typeConverterType;
4309Type ot,
4322public Type OwnerType;
4423public Type ObjectType = null;
4424public Type SerializerType = null;
src\Framework\System\Windows\Navigation\JournalEntryListConverter.cs (4)
38public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
48public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
121public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
143public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
src\Framework\System\Windows\PropertyPath.cs (9)
60public Type type; // user-specified type
308internal object ResolvePropertyName(int level, object item, Type ownerType, object context)
550object ResolvePropertyName(string name, object item, Type ownerType, object context, bool throwOnError)
655private PropertyInfo GetPropertyHelper(Type ownerType, string propertyName)
780object GetTypedParamValue(string param, Type type, bool throwOnError)
835Type GetTypeFromName(string name, object context)
884ValueSerializer typeSerializer = ValueSerializer.GetSerializerFor(typeof(Type), serializerContext);
886return typeSerializer.ConvertFromString(name, serializerContext) as Type;
906Type type = wpfSharedSchemaContext.ResolvePrefixedNameWithAdditionalWpfSemantics(name, hostElement);
src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (18)
58public static TResult ReflectionStaticCall<TResult>(this Type type, string methodName)
63method = type.GetMethod(methodName, Type.EmptyTypes);
91public static TResult ReflectionStaticCall<TResult, TArg>(this Type type, string methodName, TArg arg)
96method = type.GetMethod(methodName, new Type[] { typeof(TArg) });
146method = obj.GetType().GetMethod(methodName, Type.EmptyTypes);
178method = obj.GetType().GetMethod(methodName, new Type[] { typeof(TArg1) });
232method = obj.GetType().GetMethod(methodName, new Type[] { typeof(TArg1), typeof(TArg2) });
307public static object ReflectionNew(this Type type)
309ConstructorInfo constructor = type.GetConstructor(Type.EmptyTypes);
332public static object ReflectionNew<TArg1>(this Type type, TArg1 arg1)
334ConstructorInfo constructor = type.GetConstructor(new Type[] { typeof(TArg1) });
359public static object ReflectionNew<TArg1, TArg2>(this Type type, TArg1 arg1, TArg2 arg2)
361ConstructorInfo constructor = type.GetConstructor(new Type[] { typeof(TArg1), typeof(TArg2) });
380/// <exception cref="AmbiguousMatchException">More than one property is found with the specified name. See <see cref="Type.GetProperty(string)"/></exception>
387Type type = obj.GetType();
405/// <exception cref="AmbiguousMatchException">More than one property is found with the specified name. See <see cref="Type.GetProperty(string)"/></exception>
421/// <exception cref="AmbiguousMatchException">More than one property is found with the specified name. See <see cref="Type.GetProperty(string)"/></exception>
425public static TResult ReflectionStaticGetProperty<TResult>(this Type type, string propertyName)
compmod\system\componentmodel\design\ServiceObjectContainer.cs (16)
24private static Type[] _defaultServices = new Type[] { typeof(IServiceContainer), typeof(ServiceContainer) };
61protected virtual Type[] DefaultServices {
83public void AddService(Type serviceType, object serviceInstance) {
90public virtual void AddService(Type serviceType, object serviceInstance, bool promote) {
122public void AddService(Type serviceType, ServiceCreatorCallback callback) {
129public virtual void AddService(Type serviceType, ServiceCreatorCallback callback, bool promote) {
184public virtual object GetService(Type serviceType) {
193Type[] defaults = DefaultServices;
245public void RemoveService(Type serviceType) {
252public virtual void RemoveService(Type serviceType, bool promote) {
278private sealed class ServiceCollection<T> : Dictionary<Type, T> {
281private sealed class EmbeddedTypeAwareTypeComparer : IEqualityComparer<Type> {
284public bool Equals(Type x, Type y) {
288public int GetHashCode(Type obj) {
compmod\system\componentmodel\LicenseException.cs (8)
21private Type type;
28public LicenseException(Type type) : this(type, null, SR.GetString(SR.LicExceptionTypeOnly, type.FullName)) {
34public LicenseException(Type type, object instance) : this(type, null, SR.GetString(SR.LicExceptionTypeAndInstance, type.FullName, instance.GetType().FullName)) {
40public LicenseException(Type type, object instance, string message) : base(message) {
49public LicenseException(Type type, object instance, string message, Exception innerException) : base(message, innerException) {
59type = (Type) info.GetValue("type", typeof(Type));
66public Type LicensedType {
compmod\system\componentmodel\LicenseManager.cs (27)
87private static void CacheProvider(Type type, LicenseProvider provider) {
107public static object CreateWithContext(Type type, LicenseContext creationContext) {
117public static object CreateWithContext(Type type, LicenseContext creationContext, object[] args) {
146private static bool GetCachedNoLicenseProvider(Type type) {
158private static LicenseProvider GetCachedProvider(Type type) {
170private static LicenseProvider GetCachedProviderInstance(Type providerType) {
191public static bool IsLicensed(Type type) {
206public static bool IsValid(Type type) {
223public static bool IsValid(Type type, object instance, out License license) {
255private static bool ValidateInternal(Type type, object instance, bool allowExceptions, out License license) {
271private static bool ValidateInternalRecursive(LicenseContext context, Type type, object instance, bool allowExceptions, out License license, out string licenseKey) {
278Type providerType = attr.LicenseProvider;
311Type baseType = type.BaseType;
333public static void Validate(Type type) {
350public static License Validate(Type type, object instance) {
388Type savedType;
401Type type = Type.GetTypeFromHandle(rth);
422Type type = Type.GetTypeFromHandle(rth);
467Type type = Type.GetTypeFromHandle(rth);
514this.savedType = Type.GetTypeFromHandle(rth);
542Type type;
545public CLRLicenseContext(LicenseUsageMode usageMode, Type type) {
558public override string GetSavedLicenseKey(Type type, Assembly resourceAssembly) {
561public override void SetSavedLicenseKey(Type type, string key) {
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (32)
62private static readonly Type[] argsNone = new Type[0];
82Type componentClass; // used to determine if we should all on us or on the designer
83Type type; // the data type of the property
93Type receiverType; // Only set if we are an extender
98public ReflectPropertyDescriptor(Type componentClass, string name, Type type,
126public ReflectPropertyDescriptor(Type componentClass, string name, Type type, PropertyInfo propInfo, MethodInfo getMethod, MethodInfo setMethod, Attribute[] attrs) : this(componentClass, name, type, attrs) {
139public ReflectPropertyDescriptor(Type componentClass, string name, Type type, Type receiverType, MethodInfo getMethod, MethodInfo setMethod, Attribute[] attrs) : this(componentClass, name, type, attrs) {
150public ReflectPropertyDescriptor(Type componentClass, PropertyDescriptor oldReflectPropertyDescriptor, Attribute[] attributes)
306public override Type ComponentType {
346propInfo = componentClass.GetProperty(Name, bindingFlags, null, PropertyType, new Type[0], new ParameterModifier[0]);
356getMethod = FindMethod(componentClass, "Get" + Name, new Type[] { receiverType }, type);
398public override Type PropertyType {
412Type[] args;
418args = new Type[] {receiverType};
457for (Type t = ComponentType.BaseType; t != null && t != typeof(object); t = t.BaseType)
463PropertyInfo p = t.GetProperty(name, bindingFlags, null, PropertyType, new Type[0], null);
482propInfo = componentClass.GetProperty(Name, bindingFlags, null, PropertyType, new Type[0], new ParameterModifier[0]);
490new Type[] { receiverType, type}, typeof(void));
515Type[] args;
521args = new Type[] {receiverType};
597internal Type ExtenderGetReceiverType() {
601internal Type ExtenderGetType(IExtenderProvider provider) {
805Type currentReflectType = componentClass;
830memberInfo = currentReflectType.GetMethod("Get" + Name, bindingFlags, null, new Type[] { receiverType }, null);
833memberInfo = currentReflectType.GetProperty(Name, bindingFlags, null, PropertyType, new Type[0], new ParameterModifier[0]);
857Type specificType = Type.GetType(sta.TypeName);
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (81)
41private static Type[] _typeConstructor = new Type[] {typeof(Type)};
78private static readonly Type[] _skipInterfaceAttributeList = new Type[]
162internal static void AddEditorTable(Type editorBaseType, Hashtable table)
192public override object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args)
204argTypes = new Type[args.Length];
215argTypes = new Type[0];
234private static object CreateInstance(Type objectType, Type callingType) {
247internal AttributeCollection GetAttributes(Type type)
280internal string GetClassName(Type type)
289internal string GetComponentName(Type type, object instance)
300internal TypeConverter GetConverter(Type type, object instance)
310internal EventDescriptor GetDefaultEvent(Type type, object instance)
319internal PropertyDescriptor GetDefaultProperty(Type type, object instance)
328internal object GetEditor(Type type, object instance, Type editorBaseType)
337private static Hashtable GetEditorTable(Type editorBaseType) {
393internal EventDescriptorCollection GetEvents(Type type)
454internal object GetExtendedEditor(object instance, Type editorBaseType)
475Type componentType = instance.GetType();
530Type receiverType = eppa.ReceiverType;
778internal Type[] GetPopulatedTypes(Module module) {
782Type type = (Type)de.Key;
790return (Type[])typeList.ToArray(typeof(Type));
796internal PropertyDescriptorCollection GetProperties(Type type)
805internal object GetPropertyOwner(Type type, object instance, PropertyDescriptor pd)
814public override Type GetReflectionType(Type objectType, object instance)
825private ReflectedTypeData GetTypeData(Type type, bool createIfNeeded) {
861public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
870private static Type GetTypeFromName(string typeName)
872Type t = Type.GetType(typeName);
889t = Type.GetType(typeName.Substring(0, commaIndex));
900internal bool IsPopulated(Type type)
916private static Attribute[] ReflectGetAttributes(Type type)
1000private static EventDescriptor[] ReflectGetEvents(Type type)
1124Type providerType = provider.GetType();
1146Type receiverType = GetTypeFromName(provideAttr.ReceiverTypeName);
1150MethodInfo getMethod = providerType.GetMethod("Get" + provideAttr.PropertyName, new Type[] {receiverType});
1154MethodInfo setMethod = providerType.GetMethod("Set" + provideAttr.PropertyName, new Type[] {receiverType, getMethod.ReturnType});
1204private static PropertyDescriptor[] ReflectGetProperties(Type type)
1301internal void Refresh(Type type)
1318private static object SearchIntrinsicTable(Hashtable table, Type callingType)
1329Type baseType = callingType;
1340hashEntry = Type.GetType(typeString);
1363Type keyType = de.Key as Type;
1373hashEntry = Type.GetType(typeString);
1418Type type = hashEntry as Type;
1439private Type _type;
1445private Type[] _editorTypes;
1448internal ReflectedTypeData(Type type) {
1511Type baseType = _type.BaseType;
1527Type[] interfaces = _type.GetInterfaces();
1531Type iface = interfaces[idx];
1635Type converterType = GetTypeFromName(instanceAttr.ConverterTypeName);
1661Type converterType = GetTypeFromName(typeAttr.ConverterTypeName);
1754internal object GetEditor(object instance, Type editorBaseType)
1770Type editorType = GetTypeFromName(instanceAttr.EditorTypeName);
1798Type editorType = GetTypeFromName(typeAttr.EditorTypeName);
1832Type[] newTypes = new Type[newLength];
1856private static EditorAttribute GetEditorAttribute(AttributeCollection attributes, Type editorBaseType)
1863Type attrEditorBaseType = Type.GetType(edAttr.EditorBaseTypeName);
1890Type baseType = _type;
1891Type objType = typeof(object);
1927Type baseType = _type;
1928Type objType = typeof(object);
1954private Type GetTypeFromName(string typeName)
1963Type t = null;
1972t = Type.GetType(typeName);
1986t = Type.GetType(typeName.Substring(0, commaIndex));
compmod\system\componentmodel\TypeConverter.cs (15)
63public bool CanConvertFrom(Type sourceType) {
72public virtual bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
83public bool CanConvertTo(Type destinationType) {
91public virtual bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
154public object ConvertTo(object value, Type destinationType) {
163public virtual object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
263protected Exception GetConvertToException(object value, Type destinationType) {
446private Type componentType;
447private Type propertyType;
456protected SimplePropertyDescriptor(Type componentType, string name, Type propertyType) : this(componentType, name, propertyType, new Attribute[0]) {
464protected SimplePropertyDescriptor(Type componentType, string name, Type propertyType, Attribute[] attributes) : base(name, attributes) {
475public override Type ComponentType {
498public override Type PropertyType {
compmod\system\componentmodel\TypeDescriptor.cs (89)
159public static Type ComObjectType
172public static Type InterfaceType
207public static TypeDescriptionProvider AddAttributes(Type type, params Attribute[] attributes) {
260public static void AddEditorTable(Type editorBaseType, Hashtable table)
276public static void AddProvider(TypeDescriptionProvider provider, Type type)
357public static void AddProviderTransparent(TypeDescriptionProvider provider, Type type)
405Type type = instance.GetType();
425private static void CheckDefaultProvider(Type type)
469Type providerType = Type.GetType(pa.TypeName);
493Type baseType = type.BaseType;
575public static IDesigner CreateDesigner(IComponent component, Type designerBaseType)
577Type designerType = null;
589Type attributeBaseType = Type.GetType(da.DesignerBaseTypeName);
607designerType = Type.GetType(da.DesignerTypeName);
631public static EventDescriptor CreateEvent(Type componentType, string name, Type type, params Attribute[] attributes)
641public static EventDescriptor CreateEvent(Type componentType, EventDescriptor oldEventDescriptor, params Attribute[] attributes)
651public static object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args)
693public static PropertyDescriptor CreateProperty(Type componentType, string name, Type type, params Attribute[] attributes)
703public static PropertyDescriptor CreateProperty(Type componentType, PropertyDescriptor oldPropertyDescriptor, params Attribute[] attributes)
789private static void DebugValidate(Type type, AttributeCollection attributes, AttributeCollection debugAttributes)
933private static void DebugValidate(AttributeCollection attributes, Type type)
963private static void DebugValidate(TypeConverter converter, Type type)
993private static void DebugValidate(EventDescriptorCollection events, Type type, Attribute[] attributes)
1071private static void DebugValidate(PropertyDescriptorCollection properties, Type type, Attribute[] attributes)
1280public static object GetAssociation(Type type, object primary)
1367public static AttributeCollection GetAttributes(Type componentType)
1504public static string GetClassName(Type componentType)
1549public static TypeConverter GetConverter(Type type)
1559public static EventDescriptor GetDefaultEvent(Type componentType)
1596public static PropertyDescriptor GetDefaultProperty(Type componentType)
1634internal static ICustomTypeDescriptor GetDescriptor(Type type, string typeName)
1689public static object GetEditor(object component, Type editorBaseType)
1699public static object GetEditor(object component, Type editorBaseType, bool noCustomTypeDesc)
1712public static object GetEditor(Type type, Type editorBaseType)
1725public static EventDescriptorCollection GetEvents(Type componentType)
1740public static EventDescriptorCollection GetEvents(Type componentType, Attribute[] attributes)
1930private static Type GetNodeForBaseType(Type searchType)
1946public static PropertyDescriptorCollection GetProperties(Type componentType)
1961public static PropertyDescriptorCollection GetProperties(Type componentType, Attribute[] attributes)
2117public static TypeDescriptionProvider GetProvider(Type type)
2152internal static TypeDescriptionProvider GetProviderRecursive(Type type) {
2160public static Type GetReflectionType(Type type)
2174public static Type GetReflectionType(object instance)
2191private static TypeDescriptionNode NodeFor(Type type) {
2210private static TypeDescriptionNode NodeFor(Type type, bool createDelegator) {
2221Type searchType = type;
2230Type baseType = GetNodeForBaseType(searchType);
2302Type type = instance.GetType();
2394Type keyType = key as Type;
2848private static void RaiseRefresh(Type type) {
2885Type type = component.GetType();
2894Type nodeType = de.Key as Type;
2956public static void Refresh(Type type)
2982Type nodeType = de.Key as Type;
3046Type nodeType = de.Key as Type;
3062Type[] populatedTypes = provider.GetPopulatedTypes(module);
3064foreach(Type populatedType in populatedTypes) {
3080foreach(Type t in refreshedTypes.Keys) {
3177public static void RemoveProvider(TypeDescriptionProvider provider, Type type)
3232public static void RemoveProviderTransparent(TypeDescriptionProvider provider, Type type)
3279Type type = instance.GetType();
3358public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
3471public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
3562object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
3797object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
3914public override object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args)
3998public override Type GetReflectionType(Type objectType, object instance)
4008public override Type GetRuntimeType(Type objectType)
4024public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
4039public override bool IsSupportedType(Type type)
4201object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
4356private Type _objectType;
4362internal DefaultTypeDescriptor(TypeDescriptionNode node, Type objectType, object instance)
4525object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
misc\SecurityUtils.cs (15)
62private static void DemandReflectionAccess(Type type) {
78private static bool HasReflectionPermission(Type type) {
94internal static object SecureCreateInstance(Type type) {
103internal static object SecureCreateInstance(Type type, object[] args, bool allowNonPublic) {
136internal static object SecureCreateInstance(Type type, object[] args) {
145internal static object SecureConstructorInvoke(Type type, Type[] argTypes, object[] args, bool allowNonPublic) {
155internal static object SecureConstructorInvoke(Type type, Type[] argTypes, object[] args,
186Type[] parameterTypes = method.GetGenericArguments();
187foreach (Type type in parameterTypes) {
200Type type = field.DeclaringType;
216Type type = method.DeclaringType;
235Type type = ctor.DeclaringType;
245internal static object ArrayCreateInstance(Type type, int length) {
net\System\Net\_AutoWebProxyScriptHelper.cs (10)
48public override Type ReturnType {
51Type type = null;
143public override Type DeclaringType {
149public override Type ReflectedType {
159public override object[] GetCustomAttributes(Type type, bool inherit) {
163public override bool IsDefined(Type type, bool inherit) {
196MethodInfo IReflect.GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers) {
220PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
241Type IReflect.UnderlyingSystemType {
net\System\Net\_NativeSSPI.cs (3)
39int QueryContextAttributes(SafeDeleteContext phContext, ContextAttribute attribute, byte[] buffer, Type handleType, out SafeHandle refHandle);
170public unsafe int QueryContextAttributes(SafeDeleteContext phContext, ContextAttribute attribute, byte[] buffer, Type handleType, out SafeHandle refHandle) {
393public unsafe int QueryContextAttributes(SafeDeleteContext context, ContextAttribute attribute, byte[] buffer, Type handleType, out SafeHandle refHandle) {
net\System\Net\WebRequest.cs (4)
1191Type fest = typeof(FrameworkEventSource);
1192var beginParamTypes = new Type[] { typeof(object), typeof(string), typeof(bool), typeof(bool) };
1195var mi2 = fest.GetMethod("EndGetResponse", bindingFlags, null, new Type[] { typeof(object), typeof(bool), typeof(bool), typeof(int) }, null);
1197var mi4 = fest.GetMethod("EndGetRequestStream", bindingFlags, null, new Type[] { typeof(object), typeof(bool), typeof(bool) }, null);
regex\system\text\regularexpressions\RegexCompiler.cs (24)
165_chartolowerM = typeof(Char).GetMethod("ToLower", new Type[] {typeof(Char), typeof(CultureInfo)});
166_getcharM = typeof(String).GetMethod("get_Chars", new Type[] {typeof(int)});
235Type factory;
3088ConstructorInfo transparencyCtor = typeof(SecurityTransparentAttribute).GetConstructor(Type.EmptyTypes);
3092ConstructorInfo securityRulesCtor = typeof(SecurityRulesAttribute).GetConstructor(new Type[] { typeof(SecurityRuleSet) });
3123internal Type FactoryTypeFromCode(RegexCode code, RegexOptions options, String typeprefix) {
3126Type runnertype;
3127Type factory;
3186internal void GenerateRegexType(String pattern, RegexOptions opts, String name, bool ispublic, RegexCode code, RegexTree tree, Type factory, TimeSpan matchTimeout) {
3195Type[] noTypeArray = new Type[0];
3209null, new Type[0], new ParameterModifier[0]));
3280tmoutCtorBuilder = _typebuilder.DefineConstructor(ma, CallingConventions.Standard, new Type[] { typeof(TimeSpan) });
3319Newobj(typeof(Hashtable).GetConstructor(new Type[0]));
3360internal void GenerateCreateInstance(Type newtype) {
3361Newobj(newtype.GetConstructor(new Type[0]));
3368internal void DefineType(String typename, bool ispublic, Type inheritfromclass) {
3379internal void DefineMethod(String methname, Type returntype) {
3396internal Type BakeType() {
3397Type retval = _typebuilder.CreateType();
3407private static Type[] _paramTypes = new Type[] {typeof(RegexRunner)};
3444internal DynamicMethod DefineDynamicMethod(String methname, Type returntype, Type hostType) {