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) {
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (19)
50public static void Copy(Type genericType, FlowNode currentFlowElement, Dictionary<FlowNode, FlowNode> clonedFlowElements)
52MethodInfo copy = genericCopy.MakeGenericMethod(new Type[] { genericType });
85public static void ReferenceCopy(Type genericType,
93MethodInfo copy = genericRemapFlowSwitch.MakeGenericMethod(new Type[] { genericType });
147public static bool IsGenericFlowSwitch(Type type)
152public static IFlowSwitchLink CreateFlowSwitchLink(Type flowSwitchType, ModelItem currentMI, object caseValue, bool isDefault)
154Type genericType = null;
181public static string GetCaseName(ModelProperty casesProperties, Type type, out string errorMessage)
195Type type = typeof(T);
339public static bool IsIntegralType(Type type)
352public static string GetString(object key, Type type)
391public static object GetObject(string caseString, Type genericType)
507Type propertyType = casesPropperties.PropertyType;
509Type keyType = propertyType.GetGenericArguments()[0];
512Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { keyType, typeof(FlowNode) });
517public static bool CanBeGeneratedUniquely(Type typeArgument)
523public static bool CheckEquality(object value, Type targetType)
537public static bool ValidateCaseKey(object obj, ModelProperty casesProp, Type genericType, out string reason)
System\Activities\Presentation\TypeCollectionPropertyEditor.cs (10)
59IEnumerable<Type> rawInputData = inputData.GetCurrentValue() as IEnumerable<Type>;
64Func<Type, bool> filter = GetOptionValueOrUseDefault<Func<Type, bool>>(editingProperty.Attributes, TypeCollectionPropertyEditor.Filter, null);
65Type defaultType = GetOptionValueOrUseDefault<Type>(editingProperty.Attributes, TypeCollectionPropertyEditor.DefaultType, typeof(Object));
72foreach (Type i in ((TypeCollectionDesigner)editorWindow.Content).UpdatedTypeCollection)
83public EditorWindow(ModelItem activity, IEnumerable<Type> data, EditingContext context, DependencyObject owner, bool allowDuplicate, Func<Type, bool> filter, Type defaultType)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (27)
157private Dictionary<Type, SubscribeContextCallback> _subscriptions;
229public override bool Contains(Type itemType)
252public override ContextItem GetValue(Type itemType)
293private ContextItem GetValueNull(Type itemType)
352public override void Subscribe(Type contextItemType, SubscribeContextCallback callback)
372_subscriptions = new Dictionary<Type, SubscribeContextCallback>();
394public override void Unsubscribe(Type contextItemType, SubscribeContextCallback callback)
436private Dictionary<Type, ContextItem> _items;
437private Dictionary<Type, ContextItem> _defaultItems;
444internal Dictionary<Type, ContextItem> DefaultItems
449_defaultItems = new Dictionary<Type, ContextItem>();
455internal Dictionary<Type, ContextItem> Items
460_items = new Dictionary<Type, ContextItem>();
480private Dictionary<Type, object> _services;
481private Dictionary<Type, SubscribeServiceCallback> _subscriptions;
492public override bool Contains(Type serviceType)
506public override object GetService(Type serviceType)
523object GetPublishedService(Type serviceType)
595public override IEnumerator<Type> GetEnumerator()
599_services = new Dictionary<Type, object>();
614public override void Subscribe(Type serviceType, SubscribeServiceCallback callback)
638_subscriptions = new Dictionary<Type, SubscribeServiceCallback>();
656public override void Publish(Type serviceType, PublishServiceCallback callback)
675public override void Publish(Type serviceType, object serviceInstance)
698_services = new Dictionary<Type, object>();
724public override void Unsubscribe(Type serviceType, SubscribeServiceCallback callback)
762Dictionary<Type, object> services = _services;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (22)
31object IValueConverter.Convert(object value, Type convertToType, object containerParameter, CultureInfo culture)
33Type[] argumentTypes = GetGenericTypeArguments(value);
34Type containerType = GetContainerType(containerParameter);
38Type resultType = BuildTargetType(argumentTypes, containerType);
50object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
55Type GetContainerType(object value)
65if (value is Type)
67return (Type)value;
71return Type.GetType((string)value, false, true);
76Type[] GetGenericTypeArguments(object value)
78Type[] result = null;
83if (null != value && (value is Type))
85Type type = (Type)value;
92result = new Type[] { type };
98Type BuildTargetType(Type[] argumentTypes, Type containerType)
107object HandleConversion(Type resultType, Type convertToType)
125foreach (Type arg in resultType.GetGenericArguments())
143else if (typeof(Type) == convertToType)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (26)
31private Dictionary<Type, TypeMetadata> _metadata;
35_metadata = new Dictionary<Type, TypeMetadata>();
41internal IEnumerable<Type> AttributedTypes
74internal void AddCallback(Type type, AttributeCallback callback)
84internal void AddCustomAttributes(Type type, IEnumerable<object> attributes)
93internal void AddCustomAttributes(Type ownerType, MemberDescriptor descriptor, IEnumerable<object> attributes)
102internal void AddCustomAttributes(Type ownerType, MemberInfo member, IEnumerable<object> attributes)
111internal void AddCustomAttributes(Type ownerType, DependencyProperty dp, IEnumerable<object> attributes)
120internal void AddCustomAttributes(Type ownerType, string memberName, IEnumerable<object> attributes)
161foreach (KeyValuePair<Type, TypeMetadata> kv in table._metadata)
170private void AddTypeMetadata(Type type, TypeMetadata md)
188internal bool ContainsAttributes(Type type)
198private void ExpandAttributes(Type type, AttributeList attributes)
229internal IEnumerable GetCustomAttributes(Type type)
233AttributeList attributes = GetExpandedAttributes(type, null, delegate(Type typeToGet, object callbackParam)
254internal IEnumerable GetCustomAttributes(Type ownerType, MemberDescriptor descriptor)
263internal IEnumerable GetCustomAttributes(Type ownerType, DependencyProperty dp)
272internal IEnumerable GetCustomAttributes(Type ownerType, MemberInfo member)
281internal IEnumerable GetCustomAttributes(Type ownerType, string memberName)
285AttributeList attributes = GetExpandedAttributes(ownerType, memberName, delegate(Type typeToGet, object callbackParam)
326private AttributeList GetMemberList(Type ownerType, string memberName)
352private AttributeList GetExpandedAttributes(Type type, object callbackParam, GetAttributesCallback callback)
390private AttributeList GetTypeList(Type type)
404private TypeMetadata GetTypeMetadata(Type type)
517foreach (KeyValuePair<Type, TypeMetadata> kv in _metadata)
593private delegate AttributeList GetAttributesCallback(Type type, object callbackParam);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeTableBuilder.cs (6)
59public void AddCallback(Type type, AttributeCallback callback)
83public void AddCustomAttributes(Type type, params Attribute[] attributes) {
109public void AddCustomAttributes(Type ownerType, MemberDescriptor descriptor, params Attribute[] attributes) {
139public void AddCustomAttributes(Type ownerType, MemberInfo member, params Attribute[] attributes) {
170public void AddCustomAttributes(Type ownerType, string memberName, params Attribute[] attributes) {
196public void AddCustomAttributes(Type ownerType, DependencyProperty dp, params Attribute[] attributes) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (114)
27private static Dictionary<Type, Type> _interfaces;
76foreach (Type t in table.AttributedTypes)
88_interfaces = new Dictionary<Type, Type>();
100foreach (Type t in table.AttributedTypes)
117private Dictionary<Type, Type> _metadataTypeCache;
118private Dictionary<Type, AttributeCollection> _attributeCache;
166List<Type> toRemove = null;
167foreach (Type t in table.AttributedTypes)
169foreach (Type cached in _metadataTypeCache.Keys)
171Type realCachedType = cached.UnderlyingSystemType;
174if (toRemove == null) toRemove = new List<Type>();
184if (toRemove == null) toRemove = new List<Type>();
192foreach (Type t in toRemove)
256private AttributeCollection GetAttributes(Type objectType)
266if (_attributeCache == null) _attributeCache = new Dictionary<Type, AttributeCollection>();
286private static Attribute[] GetRawAttributes(Type objectType, string member, MemberDescriptor parentDescriptor, bool isEvent)
289Type reflectType = TypeDescriptor.GetReflectionType(objectType);
318Type reflectMemberType = null;
391foreach (Type iface in reflectType.GetInterfaces())
413reflectType = Type.GetType(a.TypeName);
447private MemberDescriptor GetCachedDescriptor(Type objectType, MemberDescriptor descriptor)
466private void CacheDescriptor(Type objectType, MemberDescriptor descriptor, MemberDescriptor cache)
486private EventDescriptorCollection MergeEvents(Type objectType, EventDescriptorCollection incoming)
506private PropertyDescriptorCollection MergeProperties(Type objectType, PropertyDescriptorCollection incoming)
527internal Type MergeType(Type objectType)
536private Type MergeTypeInternal(Type objectType, object instance)
543Type baseReflectionType = base.GetReflectionType(objectType, instance);
544Type reflectionType;
550Type objectTypeDefinition = null;
581foreach (Type t in table.AttributedTypes)
607_metadataTypeCache = new Dictionary<Type, Type>();
622public override Type GetReflectionType(Type objectType, object instance)
631public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
645internal readonly Type Type;
648internal DescriptorKey(Type type, MemberDescriptor member)
708private Type _objectType;
711internal MetadataStoreTypeDescriptor(MetadataStoreProvider provider, Type objectType, ICustomTypeDescriptor parent)
726object ICustomTypeDescriptor.GetEditor(Type editorBaseType) { return _parent.GetEditor(editorBaseType); }
781private Type _objectType;
791internal MetadataStorePropertyDescriptor(Type objectType, PropertyDescriptor parent)
962public override Type ComponentType { get { return _parent.ComponentType; } }
981public override Type PropertyType { get { return _parent.PropertyType; } }
993private Type _objectType;
999internal MetadataStoreEventDescriptor(Type objectType, EventDescriptor parent)
1030public override Type ComponentType { get { return _parent.ComponentType; } }
1031public override Type EventType { get { return _parent.EventType; } }
1047private Type _baseReflectionType;
1055internal MetadataType(Type baseReflectionType, AttributeTable[] tables, MetadataStoreProvider provider)
1079protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { return _baseReflectionType.GetConstructor(bindingAttr, binder, callConvention, types, modifiers); }
1092public override Type UnderlyingSystemType { get { return _baseReflectionType.UnderlyingSystemType; } }
1094public override InterfaceMapping GetInterfaceMap(Type interfaceType) { return _baseReflectionType.GetInterfaceMap(interfaceType); }
1095public override bool IsAssignableFrom(Type c) { return _baseReflectionType.IsAssignableFrom(c); }
1102public override bool IsSubclassOf(Type c) { return _baseReflectionType.IsSubclassOf(c); }
1104public override Type MakeArrayType() { return _baseReflectionType.MakeArrayType(); }
1105public override Type MakeArrayType(int rank) { return _baseReflectionType.MakeArrayType(rank); }
1106public override Type MakeByRefType() { return _baseReflectionType.MakeByRefType(); }
1107public override Type MakeGenericType(params Type[] typeArguments) { return _baseReflectionType.MakeGenericType(typeArguments); }
1108public override Type MakePointerType() { return _baseReflectionType.MakePointerType(); }
1111public override Type ReflectedType { get { return _baseReflectionType.ReflectedType; } }
1121public override Type GetElementType()
1129public override Type DeclaringType
1137public override Type[] FindInterfaces(TypeFilter filter, object filterCriteria)
1139Type[] ifaces = _baseReflectionType.FindInterfaces(filter, filterCriteria);
1150public override Type BaseType
1158public override Type GetInterface(string name, bool ignoreCase)
1166public override Type[] GetInterfaces()
1168Type[] ifaces = _baseReflectionType.GetInterfaces();
1179public override Type GetNestedType(string name, BindingFlags bindingAttr)
1187public override Type[] GetNestedTypes(BindingFlags bindingAttr)
1189Type[] ifaces = _baseReflectionType.GetNestedTypes(bindingAttr);
1200public override Type[] GetGenericArguments()
1202Type[] ifaces = _baseReflectionType.GetGenericArguments();
1213public override Type[] GetGenericParameterConstraints()
1215Type[] ifaces = _baseReflectionType.GetGenericParameterConstraints();
1226public override Type GetGenericTypeDefinition()
1242public override object[] GetCustomAttributes(Type attributeType, bool inherit)
1250public override bool IsDefined(Type attributeType, bool inherit)
1332protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
1374protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
1397private bool IsDefinedInTable(Type attributeType, MemberInfo member, bool inherit)
1400for (Type t = UnderlyingSystemType; t != null && !isDefined; t = t.BaseType)
1439private object[] MergeAttributes(Type filterType, MemberInfo member, bool inherit, ref AttributeMergeCache cache)
1442Type currentType = UnderlyingSystemType;
1481bool isType = member is Type;
1560private IEnumerable<object> MergeAttributesIterator(Type type, MemberInfo member, bool includeClrAttributes)
1590if (member is Type)
1790internal Type FilterType;
1823public override Type PropertyType { get { return _info.PropertyType; } }
1825public override Type DeclaringType { get { return _info.DeclaringType; } }
1827public override Type ReflectedType { get { return _info.ReflectedType; } }
1831public override Type[] GetOptionalCustomModifiers() { return _info.GetOptionalCustomModifiers(); }
1833public override Type[] GetRequiredCustomModifiers() { return _info.GetRequiredCustomModifiers(); }
1844public override object[] GetCustomAttributes(Type attributeType, bool inherit)
1861public override bool IsDefined(Type attributeType, bool inherit)
1890public override Type ReflectedType { get { return _info.ReflectedType; } }
1901public override Type DeclaringType { get { return _info.DeclaringType; } }
1906public override object[] GetCustomAttributes(Type attributeType, bool inherit)
1923public override bool IsDefined(Type attributeType, bool inherit)
1956public override Type DeclaringType { get { return _info.DeclaringType; } }
1958public override Type ReflectedType { get { return _info.ReflectedType; } }
1964public override Type[] GetGenericArguments() { return _info.GetGenericArguments(); }
1969public override MethodInfo MakeGenericMethod(params Type[] typeArguments) { return _info.MakeGenericMethod(typeArguments); }
1974public override Type ReturnType { get { return _info.ReturnType; } }
1980public override object[] GetCustomAttributes(Type attributeType, bool inherit)
1997public override bool IsDefined(Type attributeType, bool inherit)
System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (4)
23public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
47public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
131public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
136public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Converters\VisualBasicValueSearchableStringConverter.cs (1)
21Type t = value.GetType();
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (14)
23private static Dictionary<Type, Func<Activity, IEnumerable<ArgumentAccessor>>> argumentAccessorsGenerators = new Dictionary<Type, Func<Activity, IEnumerable<ArgumentAccessor>>>();
30public static void RegisterAccessorsGenerator(Type activityType, Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator)
51internal static bool TryGetArgumentAccessorsGenerator(Type activityType, out Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator)
137Dictionary<Assign, Type> assignLValueTypes = new Dictionary<Assign, Type>();
160Type expectedReturnType = expressionReplacement.NewArgument.ArgumentType;
170Type expectedReturnType;
189foreach (KeyValuePair<Assign, Type> kvp in assignLValueTypes)
192Type expectedReturnType = kvp.Value;
210internal static ExpressionReplacement ComputeExpressionReplacement(ActivityWithResult expression, Activity parentActivity, EditingContext context, ArgumentAccessorWrapperCache argumentAccessorWrapperCache, Type preferredReturnType = null)
225Type expectedReturnType;
238Type expressionResultType = isLocationExpression ? expression.ResultType.GetGenericArguments()[0] : expression.ResultType;
369Type argumentPropertyType = argumentProperty.PropertyType;
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityDelegateArgumentMetadata.cs (1)
23public Type Type
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (27)
119Type instanceType = instance.GetType();
122Type[] interfaces = instanceType.FindInterfaces(ModelTreeManager.CheckInterface, result);
129foreach (Type type in interfaces)
173static bool CheckInterface(Type type, object result)
443if (typeof(Type).IsAssignableFrom(currentModelItem.ItemType))
497if (typeof(Type).IsAssignableFrom(property.PropertyType) || property.PropertyType.IsValueType)
862internal static IList<ModelItem> DepthFirstSearch(ModelItem currentItem, Predicate<Type> filter, Predicate<ModelItem> shouldTraverseSubTree, bool preOrder)
870private static void RecursiveDepthFirstSearch(ModelItem currentItem, Predicate<Type> filter, Predicate<ModelItem> shouldTraverseSubTree, IList<ModelItem> foundItems, HashSet<ModelItem> alreadyVisitedItems, bool preOrder)
877if (typeof(Type).IsAssignableFrom(currentItem.ItemType))
1186Type type;
1187public DictionaryTypeDescriptionProvider(Type type)
1193public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
1202Type type;
1204public DictionaryTypeDescriptor(ICustomTypeDescriptor parent, Type type)
1227Type dictionaryType;
1228Type[] genericArguments;
1229Type kvpairType;
1230Type itemType;
1231Type propertyType;
1233internal ItemsCollectionPropertyDescriptor(Type type)
1239Type[] GenericArguments
1246Type[] interfaces = this.ComponentType.FindInterfaces(ModelTreeManager.CheckInterface, result);
1247foreach (Type type in interfaces)
1263Type KVPairType
1276Type ItemType
1288public override Type ComponentType
1301public override Type PropertyType
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactoryBuilder.cs (1)
35public Type TargetType
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (11)
552Type designerType = viewService.GetDesignerType(modelItem.ItemType);
1134void CreateImageFile(string fileName, Type encoderType)
1636public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1656public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1697public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1716public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1734public Type ItemType
1766public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
1789public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
1825public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
1832public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (11)
38public static readonly DependencyProperty ExpressionTypeProperty = DependencyProperty.Register("ExpressionType", typeof(Type), typeof(ExpressionTextBox),
93public Type ExpressionType
95get { return (Type)GetValue(ExpressionTypeProperty); }
414public static void RegisterExpressionActivityEditor(string name, Type expressionActivityEditorType, CreateExpressionFromStringCallback convertFromString)
628internal static bool TryConvertFromString(string targetEditor, string expressionText, bool isLocationExpression, Type resultType, out ActivityWithResult expression)
638static Dictionary<string, Type> ExpressionEditorTypeTable = new Dictionary<string, Type>();
641internal static void RegisterExpressionActivityService(string name, Type expressionEditorType, CreateExpressionFromStringCallback convertFromString)
648if (expressionEditorType.GetConstructor(System.Type.EmptyTypes) == null)
687Type expressionEditorType = ExpressionEditorTypeTable[expressionEditorName];
785internal static bool TryConvertString(string targetEditor, string expressionText, bool isLocationExpression, Type resultType, out ActivityWithResult expression)
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (25)
30typeof(Type),
51typeof(Type),
61Func<Type, bool> filter;
64public TypeBrowser(AssemblyContextControlItem assemblyContext, EditingContext context, Func<Type, bool> filter)
91Type SelectedType
93get { return (Type)GetValue(SelectedTypeProperty); }
115public Type ConcreteType
117get { return (Type)GetValue(ConcreteTypeProperty); }
223private Type ResolveType(out string errorTitle, out string errorMessage)
227Type result = this.SelectedType;
248Type[] arguments = new Type[this.GenericTypeMapping.Count];
299if (null != entry && entry.Data is Type)
312Type type = ResolveType(out errorTitle, out errorMessage);
396if (entry != null && this.SelectedType != entry.Data as Type)
412SelectedType = (null != entry ? entry.Data as Type : null);
419Type[] generics = this.SelectedType.GetGenericArguments();
420foreach (Type t in generics)
519Func<Type, bool> filter;
522public AssemblyNode(Assembly assembly, bool isLocal, Func<Type, bool> filter, EditingContext context)
573Func<Type, bool> typeFilter = this.filter;
587foreach (Type type in exportedTypes)
655private Type type;
675public Type Data
680public TypeNode(Type type)
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (39)
49typeof(Type),
61typeof(Func<Type, bool>),
75typeof(ObservableCollection<Type>),
109static List<Type> defaultTypes = null;
110static ObservableCollection<Type> defaultMostRecentlyUsedTypes;
112internal static List<Type> DefaultTypes
118defaultTypes = new List<Type>
130public static ObservableCollection<Type> DefaultMostRecentlyUsedTypes
136defaultMostRecentlyUsedTypes = new ObservableCollection<Type>(DefaultTypes);
145public ObservableCollection<Type> MostRecentlyUsedTypes
147get { return (ObservableCollection<Type>)GetValue(MostRecentlyUsedTypesProperty); }
152Type lastSelection;
173this.lastSelection = (Type)TypeProperty.DefaultMetadata.DefaultValue;
220if (typeWrapper.IsTypeDefinition && Type.Equals(this.lastSelection, typeWrapper.Type))
301public Func<Type, bool> Filter
303get { return (Func<Type, bool>)GetValue(FilterProperty); }
346foreach (Type type in this.MostRecentlyUsedTypes)
379public Type Type
381get { return (Type)GetValue(TypeProperty); }
400internal static string ResolveTypeName(Type type)
521ctrl.lastSelection = (Type)args.NewValue;
549((ObservableCollection<Type>)args.NewValue).CollectionChanged += ctrl.OnMostRecentlyUsedTypesChanged;
550((ObservableCollection<Type>)args.OldValue).CollectionChanged -= ctrl.OnMostRecentlyUsedTypesChanged;
595Type result = null;
657if (!MostRecentlyUsedTypes.Any<Type>(p => Type.Equals(p, result)))
747public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
753public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
766Type type;
768internal TypeWrapper(Type type)
775internal TypeWrapper(string text, string tag, Type type)
812public Type Type
874public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
881if (null == this.typePresenter.MostRecentlyUsedTypes.SingleOrDefault<Type>(p => Type.Equals(p, (Type)value)))
883this.typePresenter.MostRecentlyUsedTypes.Add((Type)value);
886return new TypeWrapper((Type)value);
894public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (9)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
20Fx.Assert(value is Type, string.Format(CultureInfo.InvariantCulture, "TypeToStringValueConverter cannot convert from type {0} to string", value.GetType().FullName));
21Type editedType = (Type)value;
37public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
39Fx.Assert(targetType.Equals(typeof(Type)), "TypeToStringValueConverter cannot convert string back to type " + targetType.FullName);
40Type target = null;
45target = Type.GetType(stringValue, false, true);
50target = Type.GetType(stringValue, false, true);
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (28)
209Type GetDefaultType()
514var editorType = variable.GetDynamicPropertyValueEditorType(DesignTimeVariable.VariableDefaultProperty);
756static Type VariablesCollectionType = typeof(Collection<Variable>);
757static Type CodeActivityType = typeof(CodeActivity);
758static Type GenericCodeActivityType = typeof(CodeActivity<>);
759static Type AsyncCodeActivityType = typeof(AsyncCodeActivity);
760static Type GenericAsyncCodeActivityType = typeof(AsyncCodeActivity<>);
766Type elementType = element.ItemType;
1023PropertyType = typeof(Type),
1024PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(),
1027((DesignTimeVariable)instance).SetVariableType((Type)newValue);
1212void SetVariableType(Type type)
1214if (!Type.Equals(type, this.GetVariableType()))
1255Type GetVariableType()
1257return (Type)this.ReflectedObject.Properties[VariableTypeProperty].ComputedValue;
1324protected override Type OnGetDynamicPropertyValueEditorType(string propertyName)
1326var type = this.GetVariableType();
1334var referenceType = typeof(PropertyValueEditor);
1335var expressionEditorType = typeof(ExpressionValueEditor);
1338var variableOfType = typeof(Variable<>).MakeGenericType(type);
1344var customEditorType = TypeDescriptor
1349Type currentType = Type.GetType(p.EditorTypeName);
1352.Select(p => Type.GetType(p.EditorTypeName))
1462public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1474public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1521public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1526public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (24)
45private static readonly Type VariableValueType = typeof(VariableValue<>);
46private static readonly Type VariableReferenceType = typeof(VariableReference<>);
47private static readonly Type LiteralType = typeof(Literal<>);
48private static readonly Type VisualBasicValueType = typeof(VisualBasicValue<>);
49private static readonly Type VisualBasicReferenceType = typeof(VisualBasicReference<>);
946Type expReturnType = null;
1001internal static ActivityWithResult CreateExpressionFromString(string expressionText, bool isLocation, Type type)
1006internal static ActivityWithResult CreateExpressionFromString(Type type, string expressionText, bool isLocation, ParserContext context)
1020Type targetExpressionType = null;
1048private static Activity CreateVBExpression(ExpressionValidationContext context, out string newExpressionText, out Type expReturnType, out SourceExpressionException compileErrorMessages, out VisualBasicSettings vbSettings)
1285Type expressionType = expression.GetType();
1286Type genericExpressionType = null;
1856Type expReturnType = null;
1897internal Type ExpressionType { get; set; }
2054public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2101public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2112public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2122public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2134public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2144public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2156public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
2163Type expressionType = value as Type;
2174public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (27)
157private Dictionary<Type, SubscribeContextCallback> _subscriptions;
229public override bool Contains(Type itemType)
252public override ContextItem GetValue(Type itemType)
293private ContextItem GetValueNull(Type itemType)
352public override void Subscribe(Type contextItemType, SubscribeContextCallback callback)
372_subscriptions = new Dictionary<Type, SubscribeContextCallback>();
394public override void Unsubscribe(Type contextItemType, SubscribeContextCallback callback)
436private Dictionary<Type, ContextItem> _items;
437private Dictionary<Type, ContextItem> _defaultItems;
444internal Dictionary<Type, ContextItem> DefaultItems
449_defaultItems = new Dictionary<Type, ContextItem>();
455internal Dictionary<Type, ContextItem> Items
460_items = new Dictionary<Type, ContextItem>();
480private Dictionary<Type, object> _services;
481private Dictionary<Type, SubscribeServiceCallback> _subscriptions;
492public override bool Contains(Type serviceType)
506public override object GetService(Type serviceType)
523object GetPublishedService(Type serviceType)
595public override IEnumerator<Type> GetEnumerator()
599_services = new Dictionary<Type, object>();
614public override void Subscribe(Type serviceType, SubscribeServiceCallback callback)
638_subscriptions = new Dictionary<Type, SubscribeServiceCallback>();
656public override void Publish(Type serviceType, PublishServiceCallback callback)
675public override void Publish(Type serviceType, object serviceInstance)
698_services = new Dictionary<Type, object>();
724public override void Unsubscribe(Type serviceType, SubscribeServiceCallback callback)
762Dictionary<Type, object> services = _services;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (22)
31object IValueConverter.Convert(object value, Type convertToType, object containerParameter, CultureInfo culture)
33Type[] argumentTypes = GetGenericTypeArguments(value);
34Type containerType = GetContainerType(containerParameter);
38Type resultType = BuildTargetType(argumentTypes, containerType);
50object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
55Type GetContainerType(object value)
65if (value is Type)
67return (Type)value;
71return Type.GetType((string)value, false, true);
76Type[] GetGenericTypeArguments(object value)
78Type[] result = null;
83if (null != value && (value is Type))
85Type type = (Type)value;
92result = new Type[] { type };
98Type BuildTargetType(Type[] argumentTypes, Type containerType)
107object HandleConversion(Type resultType, Type convertToType)
125foreach (Type arg in resultType.GetGenericArguments())
143else if (typeof(Type) == convertToType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (26)
31private Dictionary<Type, TypeMetadata> _metadata;
35_metadata = new Dictionary<Type, TypeMetadata>();
41internal IEnumerable<Type> AttributedTypes
74internal void AddCallback(Type type, AttributeCallback callback)
84internal void AddCustomAttributes(Type type, IEnumerable<object> attributes)
93internal void AddCustomAttributes(Type ownerType, MemberDescriptor descriptor, IEnumerable<object> attributes)
102internal void AddCustomAttributes(Type ownerType, MemberInfo member, IEnumerable<object> attributes)
111internal void AddCustomAttributes(Type ownerType, DependencyProperty dp, IEnumerable<object> attributes)
120internal void AddCustomAttributes(Type ownerType, string memberName, IEnumerable<object> attributes)
161foreach (KeyValuePair<Type, TypeMetadata> kv in table._metadata)
170private void AddTypeMetadata(Type type, TypeMetadata md)
188internal bool ContainsAttributes(Type type)
198private void ExpandAttributes(Type type, AttributeList attributes)
229internal IEnumerable GetCustomAttributes(Type type)
233AttributeList attributes = GetExpandedAttributes(type, null, delegate(Type typeToGet, object callbackParam)
254internal IEnumerable GetCustomAttributes(Type ownerType, MemberDescriptor descriptor)
263internal IEnumerable GetCustomAttributes(Type ownerType, DependencyProperty dp)
272internal IEnumerable GetCustomAttributes(Type ownerType, MemberInfo member)
281internal IEnumerable GetCustomAttributes(Type ownerType, string memberName)
285AttributeList attributes = GetExpandedAttributes(ownerType, memberName, delegate(Type typeToGet, object callbackParam)
326private AttributeList GetMemberList(Type ownerType, string memberName)
352private AttributeList GetExpandedAttributes(Type type, object callbackParam, GetAttributesCallback callback)
390private AttributeList GetTypeList(Type type)
404private TypeMetadata GetTypeMetadata(Type type)
517foreach (KeyValuePair<Type, TypeMetadata> kv in _metadata)
593private delegate AttributeList GetAttributesCallback(Type type, object callbackParam);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryBase.cs (1)
46public abstract Type CommonValueType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeTableBuilder.cs (6)
59public void AddCallback(Type type, AttributeCallback callback)
83public void AddCustomAttributes(Type type, params Attribute[] attributes) {
109public void AddCustomAttributes(Type ownerType, MemberDescriptor descriptor, params Attribute[] attributes) {
139public void AddCustomAttributes(Type ownerType, MemberInfo member, params Attribute[] attributes) {
170public void AddCustomAttributes(Type ownerType, string memberName, params Attribute[] attributes) {
196public void AddCustomAttributes(Type ownerType, DependencyProperty dp, params Attribute[] attributes) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (114)
27private static Dictionary<Type, Type> _interfaces;
76foreach (Type t in table.AttributedTypes)
88_interfaces = new Dictionary<Type, Type>();
100foreach (Type t in table.AttributedTypes)
117private Dictionary<Type, Type> _metadataTypeCache;
118private Dictionary<Type, AttributeCollection> _attributeCache;
166List<Type> toRemove = null;
167foreach (Type t in table.AttributedTypes)
169foreach (Type cached in _metadataTypeCache.Keys)
171Type realCachedType = cached.UnderlyingSystemType;
174if (toRemove == null) toRemove = new List<Type>();
184if (toRemove == null) toRemove = new List<Type>();
192foreach (Type t in toRemove)
256private AttributeCollection GetAttributes(Type objectType)
266if (_attributeCache == null) _attributeCache = new Dictionary<Type, AttributeCollection>();
286private static Attribute[] GetRawAttributes(Type objectType, string member, MemberDescriptor parentDescriptor, bool isEvent)
289Type reflectType = TypeDescriptor.GetReflectionType(objectType);
318Type reflectMemberType = null;
391foreach (Type iface in reflectType.GetInterfaces())
413reflectType = Type.GetType(a.TypeName);
447private MemberDescriptor GetCachedDescriptor(Type objectType, MemberDescriptor descriptor)
466private void CacheDescriptor(Type objectType, MemberDescriptor descriptor, MemberDescriptor cache)
486private EventDescriptorCollection MergeEvents(Type objectType, EventDescriptorCollection incoming)
506private PropertyDescriptorCollection MergeProperties(Type objectType, PropertyDescriptorCollection incoming)
527internal Type MergeType(Type objectType)
536private Type MergeTypeInternal(Type objectType, object instance)
543Type baseReflectionType = base.GetReflectionType(objectType, instance);
544Type reflectionType;
550Type objectTypeDefinition = null;
581foreach (Type t in table.AttributedTypes)
607_metadataTypeCache = new Dictionary<Type, Type>();
622public override Type GetReflectionType(Type objectType, object instance)
631public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
645internal readonly Type Type;
648internal DescriptorKey(Type type, MemberDescriptor member)
708private Type _objectType;
711internal MetadataStoreTypeDescriptor(MetadataStoreProvider provider, Type objectType, ICustomTypeDescriptor parent)
726object ICustomTypeDescriptor.GetEditor(Type editorBaseType) { return _parent.GetEditor(editorBaseType); }
781private Type _objectType;
791internal MetadataStorePropertyDescriptor(Type objectType, PropertyDescriptor parent)
962public override Type ComponentType { get { return _parent.ComponentType; } }
981public override Type PropertyType { get { return _parent.PropertyType; } }
993private Type _objectType;
999internal MetadataStoreEventDescriptor(Type objectType, EventDescriptor parent)
1030public override Type ComponentType { get { return _parent.ComponentType; } }
1031public override Type EventType { get { return _parent.EventType; } }
1047private Type _baseReflectionType;
1055internal MetadataType(Type baseReflectionType, AttributeTable[] tables, MetadataStoreProvider provider)
1079protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { return _baseReflectionType.GetConstructor(bindingAttr, binder, callConvention, types, modifiers); }
1092public override Type UnderlyingSystemType { get { return _baseReflectionType.UnderlyingSystemType; } }
1094public override InterfaceMapping GetInterfaceMap(Type interfaceType) { return _baseReflectionType.GetInterfaceMap(interfaceType); }
1095public override bool IsAssignableFrom(Type c) { return _baseReflectionType.IsAssignableFrom(c); }
1102public override bool IsSubclassOf(Type c) { return _baseReflectionType.IsSubclassOf(c); }
1104public override Type MakeArrayType() { return _baseReflectionType.MakeArrayType(); }
1105public override Type MakeArrayType(int rank) { return _baseReflectionType.MakeArrayType(rank); }
1106public override Type MakeByRefType() { return _baseReflectionType.MakeByRefType(); }
1107public override Type MakeGenericType(params Type[] typeArguments) { return _baseReflectionType.MakeGenericType(typeArguments); }
1108public override Type MakePointerType() { return _baseReflectionType.MakePointerType(); }
1111public override Type ReflectedType { get { return _baseReflectionType.ReflectedType; } }
1121public override Type GetElementType()
1129public override Type DeclaringType
1137public override Type[] FindInterfaces(TypeFilter filter, object filterCriteria)
1139Type[] ifaces = _baseReflectionType.FindInterfaces(filter, filterCriteria);
1150public override Type BaseType
1158public override Type GetInterface(string name, bool ignoreCase)
1166public override Type[] GetInterfaces()
1168Type[] ifaces = _baseReflectionType.GetInterfaces();
1179public override Type GetNestedType(string name, BindingFlags bindingAttr)
1187public override Type[] GetNestedTypes(BindingFlags bindingAttr)
1189Type[] ifaces = _baseReflectionType.GetNestedTypes(bindingAttr);
1200public override Type[] GetGenericArguments()
1202Type[] ifaces = _baseReflectionType.GetGenericArguments();
1213public override Type[] GetGenericParameterConstraints()
1215Type[] ifaces = _baseReflectionType.GetGenericParameterConstraints();
1226public override Type GetGenericTypeDefinition()
1242public override object[] GetCustomAttributes(Type attributeType, bool inherit)
1250public override bool IsDefined(Type attributeType, bool inherit)
1332protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
1374protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
1397private bool IsDefinedInTable(Type attributeType, MemberInfo member, bool inherit)
1400for (Type t = UnderlyingSystemType; t != null && !isDefined; t = t.BaseType)
1439private object[] MergeAttributes(Type filterType, MemberInfo member, bool inherit, ref AttributeMergeCache cache)
1442Type currentType = UnderlyingSystemType;
1481bool isType = member is Type;
1560private IEnumerable<object> MergeAttributesIterator(Type type, MemberInfo member, bool includeClrAttributes)
1590if (member is Type)
1790internal Type FilterType;
1823public override Type PropertyType { get { return _info.PropertyType; } }
1825public override Type DeclaringType { get { return _info.DeclaringType; } }
1827public override Type ReflectedType { get { return _info.ReflectedType; } }
1831public override Type[] GetOptionalCustomModifiers() { return _info.GetOptionalCustomModifiers(); }
1833public override Type[] GetRequiredCustomModifiers() { return _info.GetRequiredCustomModifiers(); }
1844public override object[] GetCustomAttributes(Type attributeType, bool inherit)
1861public override bool IsDefined(Type attributeType, bool inherit)
1890public override Type ReflectedType { get { return _info.ReflectedType; } }
1901public override Type DeclaringType { get { return _info.DeclaringType; } }
1906public override object[] GetCustomAttributes(Type attributeType, bool inherit)
1923public override bool IsDefined(Type attributeType, bool inherit)
1956public override Type DeclaringType { get { return _info.DeclaringType; } }
1958public override Type ReflectedType { get { return _info.ReflectedType; } }
1964public override Type[] GetGenericArguments() { return _info.GetGenericArguments(); }
1969public override MethodInfo MakeGenericMethod(params Type[] typeArguments) { return _info.MakeGenericMethod(typeArguments); }
1974public override Type ReturnType { get { return _info.ReturnType; } }
1980public override object[] GetCustomAttributes(Type attributeType, bool inherit)
1997public override bool IsDefined(Type attributeType, bool inherit)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (4)
23public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
47public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
131public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
136public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\VisualBasicValueSearchableStringConverter.cs (1)
21Type t = value.GetType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Hosting\WorkflowCommandExtensionItem.cs (1)
25public override Type ItemType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\IActivityDelegateFactory.cs (1)
11Type DelegateType { get; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (14)
23private static Dictionary<Type, Func<Activity, IEnumerable<ArgumentAccessor>>> argumentAccessorsGenerators = new Dictionary<Type, Func<Activity, IEnumerable<ArgumentAccessor>>>();
30public static void RegisterAccessorsGenerator(Type activityType, Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator)
51internal static bool TryGetArgumentAccessorsGenerator(Type activityType, out Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator)
137Dictionary<Assign, Type> assignLValueTypes = new Dictionary<Assign, Type>();
160Type expectedReturnType = expressionReplacement.NewArgument.ArgumentType;
170Type expectedReturnType;
189foreach (KeyValuePair<Assign, Type> kvp in assignLValueTypes)
192Type expectedReturnType = kvp.Value;
210internal static ExpressionReplacement ComputeExpressionReplacement(ActivityWithResult expression, Activity parentActivity, EditingContext context, ArgumentAccessorWrapperCache argumentAccessorWrapperCache, Type preferredReturnType = null)
225Type expectedReturnType;
238Type expressionResultType = isLocationExpression ? expression.ResultType.GetGenericArguments()[0] : expression.ResultType;
369Type argumentPropertyType = argumentProperty.PropertyType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityDelegateArgumentMetadata.cs (1)
23public Type Type
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (27)
119Type instanceType = instance.GetType();
122Type[] interfaces = instanceType.FindInterfaces(ModelTreeManager.CheckInterface, result);
129foreach (Type type in interfaces)
173static bool CheckInterface(Type type, object result)
443if (typeof(Type).IsAssignableFrom(currentModelItem.ItemType))
497if (typeof(Type).IsAssignableFrom(property.PropertyType) || property.PropertyType.IsValueType)
862internal static IList<ModelItem> DepthFirstSearch(ModelItem currentItem, Predicate<Type> filter, Predicate<ModelItem> shouldTraverseSubTree, bool preOrder)
870private static void RecursiveDepthFirstSearch(ModelItem currentItem, Predicate<Type> filter, Predicate<ModelItem> shouldTraverseSubTree, IList<ModelItem> foundItems, HashSet<ModelItem> alreadyVisitedItems, bool preOrder)
877if (typeof(Type).IsAssignableFrom(currentItem.ItemType))
1186Type type;
1187public DictionaryTypeDescriptionProvider(Type type)
1193public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
1202Type type;
1204public DictionaryTypeDescriptor(ICustomTypeDescriptor parent, Type type)
1227Type dictionaryType;
1228Type[] genericArguments;
1229Type kvpairType;
1230Type itemType;
1231Type propertyType;
1233internal ItemsCollectionPropertyDescriptor(Type type)
1239Type[] GenericArguments
1246Type[] interfaces = this.ComponentType.FindInterfaces(ModelTreeManager.CheckInterface, result);
1247foreach (Type type in interfaces)
1263Type KVPairType
1276Type ItemType
1288public override Type ComponentType
1301public override Type PropertyType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactoryBuilder.cs (1)
35public Type TargetType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (11)
552Type designerType = viewService.GetDesignerType(modelItem.ItemType);
1134void CreateImageFile(string fileName, Type encoderType)
1636public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1656public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1697public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1716public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1734public Type ItemType
1766public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
1789public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
1825public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
1832public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (11)
38public static readonly DependencyProperty ExpressionTypeProperty = DependencyProperty.Register("ExpressionType", typeof(Type), typeof(ExpressionTextBox),
93public Type ExpressionType
95get { return (Type)GetValue(ExpressionTypeProperty); }
414public static void RegisterExpressionActivityEditor(string name, Type expressionActivityEditorType, CreateExpressionFromStringCallback convertFromString)
628internal static bool TryConvertFromString(string targetEditor, string expressionText, bool isLocationExpression, Type resultType, out ActivityWithResult expression)
638static Dictionary<string, Type> ExpressionEditorTypeTable = new Dictionary<string, Type>();
641internal static void RegisterExpressionActivityService(string name, Type expressionEditorType, CreateExpressionFromStringCallback convertFromString)
648if (expressionEditorType.GetConstructor(System.Type.EmptyTypes) == null)
687Type expressionEditorType = ExpressionEditorTypeTable[expressionEditorName];
785internal static bool TryConvertString(string targetEditor, string expressionText, bool isLocationExpression, Type resultType, out ActivityWithResult expression)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportedNamespaceContextItem.cs (1)
33public override Type ItemType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (25)
30typeof(Type),
51typeof(Type),
61Func<Type, bool> filter;
64public TypeBrowser(AssemblyContextControlItem assemblyContext, EditingContext context, Func<Type, bool> filter)
91Type SelectedType
93get { return (Type)GetValue(SelectedTypeProperty); }
115public Type ConcreteType
117get { return (Type)GetValue(ConcreteTypeProperty); }
223private Type ResolveType(out string errorTitle, out string errorMessage)
227Type result = this.SelectedType;
248Type[] arguments = new Type[this.GenericTypeMapping.Count];
299if (null != entry && entry.Data is Type)
312Type type = ResolveType(out errorTitle, out errorMessage);
396if (entry != null && this.SelectedType != entry.Data as Type)
412SelectedType = (null != entry ? entry.Data as Type : null);
419Type[] generics = this.SelectedType.GetGenericArguments();
420foreach (Type t in generics)
519Func<Type, bool> filter;
522public AssemblyNode(Assembly assembly, bool isLocal, Func<Type, bool> filter, EditingContext context)
573Func<Type, bool> typeFilter = this.filter;
587foreach (Type type in exportedTypes)
655private Type type;
675public Type Data
680public TypeNode(Type type)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (39)
49typeof(Type),
61typeof(Func<Type, bool>),
75typeof(ObservableCollection<Type>),
109static List<Type> defaultTypes = null;
110static ObservableCollection<Type> defaultMostRecentlyUsedTypes;
112internal static List<Type> DefaultTypes
118defaultTypes = new List<Type>
130public static ObservableCollection<Type> DefaultMostRecentlyUsedTypes
136defaultMostRecentlyUsedTypes = new ObservableCollection<Type>(DefaultTypes);
145public ObservableCollection<Type> MostRecentlyUsedTypes
147get { return (ObservableCollection<Type>)GetValue(MostRecentlyUsedTypesProperty); }
152Type lastSelection;
173this.lastSelection = (Type)TypeProperty.DefaultMetadata.DefaultValue;
220if (typeWrapper.IsTypeDefinition && Type.Equals(this.lastSelection, typeWrapper.Type))
301public Func<Type, bool> Filter
303get { return (Func<Type, bool>)GetValue(FilterProperty); }
346foreach (Type type in this.MostRecentlyUsedTypes)
379public Type Type
381get { return (Type)GetValue(TypeProperty); }
400internal static string ResolveTypeName(Type type)
521ctrl.lastSelection = (Type)args.NewValue;
549((ObservableCollection<Type>)args.NewValue).CollectionChanged += ctrl.OnMostRecentlyUsedTypesChanged;
550((ObservableCollection<Type>)args.OldValue).CollectionChanged -= ctrl.OnMostRecentlyUsedTypesChanged;
595Type result = null;
657if (!MostRecentlyUsedTypes.Any<Type>(p => Type.Equals(p, result)))
747public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
753public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
766Type type;
768internal TypeWrapper(Type type)
775internal TypeWrapper(string text, string tag, Type type)
812public Type Type
874public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
881if (null == this.typePresenter.MostRecentlyUsedTypes.SingleOrDefault<Type>(p => Type.Equals(p, (Type)value)))
883this.typePresenter.MostRecentlyUsedTypes.Add((Type)value);
886return new TypeWrapper((Type)value);
894public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (9)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
20Fx.Assert(value is Type, string.Format(CultureInfo.InvariantCulture, "TypeToStringValueConverter cannot convert from type {0} to string", value.GetType().FullName));
21Type editedType = (Type)value;
37public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
39Fx.Assert(targetType.Equals(typeof(Type)), "TypeToStringValueConverter cannot convert string back to type " + targetType.FullName);
40Type target = null;
45target = Type.GetType(stringValue, false, true);
50target = Type.GetType(stringValue, false, true);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (28)
209Type GetDefaultType()
514var editorType = variable.GetDynamicPropertyValueEditorType(DesignTimeVariable.VariableDefaultProperty);
756static Type VariablesCollectionType = typeof(Collection<Variable>);
757static Type CodeActivityType = typeof(CodeActivity);
758static Type GenericCodeActivityType = typeof(CodeActivity<>);
759static Type AsyncCodeActivityType = typeof(AsyncCodeActivity);
760static Type GenericAsyncCodeActivityType = typeof(AsyncCodeActivity<>);
766Type elementType = element.ItemType;
1023PropertyType = typeof(Type),
1024PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(),
1027((DesignTimeVariable)instance).SetVariableType((Type)newValue);
1212void SetVariableType(Type type)
1214if (!Type.Equals(type, this.GetVariableType()))
1255Type GetVariableType()
1257return (Type)this.ReflectedObject.Properties[VariableTypeProperty].ComputedValue;
1324protected override Type OnGetDynamicPropertyValueEditorType(string propertyName)
1326var type = this.GetVariableType();
1334var referenceType = typeof(PropertyValueEditor);
1335var expressionEditorType = typeof(ExpressionValueEditor);
1338var variableOfType = typeof(Variable<>).MakeGenericType(type);
1344var customEditorType = TypeDescriptor
1349Type currentType = Type.GetType(p.EditorTypeName);
1352.Select(p => Type.GetType(p.EditorTypeName))
1462public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1474public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
1521public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1526public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (24)
45private static readonly Type VariableValueType = typeof(VariableValue<>);
46private static readonly Type VariableReferenceType = typeof(VariableReference<>);
47private static readonly Type LiteralType = typeof(Literal<>);
48private static readonly Type VisualBasicValueType = typeof(VisualBasicValue<>);
49private static readonly Type VisualBasicReferenceType = typeof(VisualBasicReference<>);
946Type expReturnType = null;
1001internal static ActivityWithResult CreateExpressionFromString(string expressionText, bool isLocation, Type type)
1006internal static ActivityWithResult CreateExpressionFromString(Type type, string expressionText, bool isLocation, ParserContext context)
1020Type targetExpressionType = null;
1048private static Activity CreateVBExpression(ExpressionValidationContext context, out string newExpressionText, out Type expReturnType, out SourceExpressionException compileErrorMessages, out VisualBasicSettings vbSettings)
1285Type expressionType = expression.GetType();
1286Type genericExpressionType = null;
1856Type expReturnType = null;
1897internal Type ExpressionType { get; set; }
2054public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2101public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2112public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2122public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2134public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
2144public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
2156public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
2163Type expressionType = value as Type;
2174public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (25)
58private Type _clrType; // Varies for SqlDbType.Udt, others are fixed value per type.
261Type userDefinedType,
283Type userDefinedType) :
304Type userDefinedType,
330Type userDefinedType,
547internal Type Type {
551_clrType = Type.GetType(_udtAssemblyQualifiedName, true);
558internal Type TypeWithoutThrowing {
562_clrType = Type.GetType(_udtAssemblyQualifiedName, false);
821Type userDefinedType,
850Type userDefinedType,
880Type userDefinedType,
913Type userDefinedType,
1000Type userDefinedType,
1032Type userDefinedType,
1064Type userDefinedType,
1099Type userDefinedType,
1177Type userDefinedType,
1222Type userDefinedType,
1267Type userDefinedType,
1317Type userDefinedType,
1459Type userDefinedType,
1511Type userDefinedType,
1563Type userDefinedType,
1619Type userDefinedType,
fx\src\data\System\Data\CodeGen\datacache.cs (17)
275private string GetTypeName(Type t) {
446Type DataType = index[i].DataType;
723CodeMemberMethod getRowType = MethodDecl(typeof(System.Type), "GetRowType", MemberAttributes.Family | MemberAttributes.Override); {
776Type DataType = col.DataType;
833System.Reflection.ConstructorInfo ctor = col.DataType.GetConstructor(new Type[] {typeof(string)});
867System.Reflection.ConstructorInfo ctor = col.DataType.GetConstructor(new Type[] {typeof(string)});
1422private static CodeTypeReference Type(Type type) { return new CodeTypeReference(type); }
1426private static CodeTypeReferenceExpression TypeExpr(Type type) { return new CodeTypeReferenceExpression(type); }
1447private static CodeExpression New(Type type, CodeExpression[] parameters) { return new CodeObjectCreateExpression(type, parameters);}
1492private static CodeStatement Throw(Type exception, string arg, string inner) {
1503private static CodeMemberField FieldDecl(Type type, String name) {return new CodeMemberField(type, name);}
1512private static CodeMemberMethod MethodDecl(Type type, String name, MemberAttributes attributes) {return Method(Type(type), name, attributes);}
1523private static CodeMemberProperty PropertyDecl(Type type, String name, MemberAttributes attributes) {
1531private static CodeStatement VariableDecl(Type type, String name) { return new CodeVariableDeclarationStatement(type, name); }
1533private static CodeStatement VariableDecl(Type type, String name, CodeExpression initExpr) { return new CodeVariableDeclarationStatement(type, name, initExpr); }
1543private static CodeParameterDeclarationExpression ParameterDecl(Type type, string name) { return new CodeParameterDeclarationExpression(type, name);}
1559 private static CodeCatchClause Catch(Type type, string name, CodeStatement catchStmnt) {
fx\src\data\System\Data\Common\AdapterUtil.cs (35)
368static private readonly Type StackOverflowType = typeof(StackOverflowException);
369static private readonly Type OutOfMemoryType = typeof(OutOfMemoryException);
370static private readonly Type ThreadAbortType = typeof(ThreadAbortException);
371static private readonly Type NullReferenceType = typeof(NullReferenceException);
372static private readonly Type AccessViolationType = typeof(AccessViolationException);
373static private readonly Type SecurityType = typeof(SecurityException);
378Type type = e.GetType();
397Type type = e.GetType();
408static internal ArgumentOutOfRangeException InvalidEnumerationValue(Type type, int value) {
412static internal ArgumentOutOfRangeException NotSupportedEnumerationValue(Type type, string value, string method) {
791static internal ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException) {
912static internal Exception WrongType(Type got, Type expected) {
934static internal ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection) {
937static internal ArgumentNullException CollectionNullValue(string parameter, Type collection, Type itemType) {
940static internal IndexOutOfRangeException CollectionIndexInt32(int index, Type collection, int count) {
943static internal IndexOutOfRangeException CollectionIndexString(Type itemType, string propertyName, string propertyValue, Type collection) {
946static internal InvalidCastException CollectionInvalidType(Type collection, Type itemType, object invalidValue) {
949static internal Exception CollectionUniqueValue(Type itemType, string propertyName, string propertyValue) {
952static internal ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection) {
955static internal ArgumentException ParametersIsParent(Type parameterType, ICollection collection) {
991static internal InvalidOperationException ColumnSchemaMismatch(string srcColumn, Type srcType, DataColumn column) {
1229static internal Exception InvalidImplicitConversion(Type fromtype, string totype) {
1375static internal Exception UninitializedParameterSize(int index, Type dataType) {
1566static internal ArgumentException UnknownDataType(Type dataType) {
1569static internal ArgumentException DbTypeNotSupported(System.Data.DbType type, Type enumtype) {
1572static internal ArgumentException UnknownDataTypeCode(Type dataType, TypeCode typeCode) {
1595static internal Exception ParameterConversionFailed(object value, Type destType, Exception inner) { // WebData 75433
1626static internal Exception ParametersSourceIndex(string parameterName, IDataParameterCollection collection, Type parameterType) {
1629static internal Exception ParameterNull(string parameter, IDataParameterCollection collection, Type parameterType) {
1632static internal Exception InvalidParameterType(IDataParameterCollection collection, Type parameterType, object invalidValue) {
fx\src\data\System\Data\Common\DataColumnMapping.cs (7)
85public DataColumn GetDataColumnBySchemaAction(DataTable dataTable, Type dataType, MissingSchemaAction schemaAction) {
90static public DataColumn GetDataColumnBySchemaAction(string sourceColumn, string dataSetColumn, DataTable dataTable, Type dataType, MissingSchemaAction schemaAction) {
137static internal DataColumn CreateDataColumnBySchemaAction(string sourceColumn, string dataSetColumn, DataTable dataTable, Type dataType, MissingSchemaAction schemaAction) {
182override public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
189override public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
198Type[] types = new Type[] { typeof(string), typeof(string) };
fx\src\data\System\Data\Common\DataStorage.cs (24)
70private static readonly Type[] StorageClassType = new Type[] {
94typeof(Type),
119internal readonly Type DataType;
131private readonly static Func<Type, Tuple<bool, bool, bool, bool>> _inspectTypeForInterfaces = InspectTypeForInterfaces;
132private readonly static ConcurrentDictionary<Type, Tuple<bool, bool, bool, bool>> _typeImplementsInterface = new ConcurrentDictionary<Type, Tuple<bool, bool, bool, bool>>();
134protected DataStorage(DataColumn column, Type type, object defaultValue, StorageType storageType)
138protected DataStorage(DataColumn column, Type type, object defaultValue, object nullValue, StorageType storageType)
142protected DataStorage(DataColumn column, Type type, object defaultValue, object nullValue, bool isICloneable, StorageType storageType) {
261public static DataStorage CreateStorage(DataColumn column, Type dataType, StorageType typeCode) {
324internal static StorageType GetStorageType(Type dataType) {
330TypeCode tcode = Type.GetTypeCode(dataType);
337internal static Type GetTypeStorage(StorageType storageType) {
341internal static bool IsTypeCustomType(Type type) {
353public static bool IsSqlType(Type dataType) {
362private static bool DetermineIfValueType(StorageType typeCode, Type dataType) {
419Type dataType,
456private static Tuple<bool, bool, bool, bool> InspectTypeForInterfaces(Type dataType) {
466internal static bool ImplementsINullableValue(StorageType typeCode, Type dataType) {
508internal static Type GetType(string value) {
509Type dataType = Type.GetType(value); // throwOnError=false, ignoreCase=fase
526internal static string GetQualifiedName(Type type)
fx\src\data\System\Data\Common\DataTableMapping.cs (5)
122public DataColumn GetDataColumn(string sourceColumn, Type dataType, DataTable dataTable, MissingMappingAction mappingAction, MissingSchemaAction schemaAction) {
195override public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
202override public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
213Type[] types = new Type[] { typeof(string), typeof(string), typeof(DataColumnMapping[]) };
fx\src\data\System\Data\Common\ObjectStorage.cs (31)
29internal ObjectStorage(DataColumn column, Type type)
169private Families GetFamily(Type dataType) {
170switch (Type.GetTypeCode(dataType)) {
212Type valType = value.GetType();
269Type type = DataType; // real type of objects in this column
274if (type == typeof(Type)){
275return Type.GetType(s);
307Type type = null;
331retValue = Type.GetType(xmlReader.ReadString());
380Type type = DataType;
384if ((type == typeof(Type)) || ((type == typeof(Object)) && (value is Type))) {
385return ((Type)value).AssemblyQualifiedName;
392if (Type.GetTypeCode(value.GetType()) != TypeCode.Object) {
453private static Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> _tempAssemblyCache;
463internal static void VerifyIDynamicMetaObjectProvider(Type type)
472internal static XmlSerializer GetXmlSerializer(Type type)
483internal static XmlSerializer GetXmlSerializer(Type type, XmlRootAttribute attribute)
486KeyValuePair<Type,XmlRootAttribute> key = new KeyValuePair<Type,XmlRootAttribute>(type,attribute);
489Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> cache = _tempAssemblyCache;
506Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> tmp =
507new Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer>(
509foreach (KeyValuePair<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> entry in cache)
517cache = new Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer>(
523key = new KeyValuePair<Type,XmlRootAttribute>(type, new XmlRootAttribute());
538private class TempAssemblyComparer : IEqualityComparer<KeyValuePair<Type,XmlRootAttribute>>
540internal static readonly IEqualityComparer<KeyValuePair<Type,XmlRootAttribute>> Default = new TempAssemblyComparer();
544public bool Equals(KeyValuePair<Type,XmlRootAttribute> x, KeyValuePair<Type,XmlRootAttribute> y)
555public int GetHashCode(KeyValuePair<Type,XmlRootAttribute> obj)
fx\src\data\System\Data\DataColumn.cs (13)
39private Type dataType = null;
115public DataColumn(string columnName, Type dataType) : this(columnName, dataType, null, MappingType.Element) {
125public DataColumn(string columnName, Type dataType, string expr) : this(columnName, dataType, expr, MappingType.Element) {
136public DataColumn(string columnName, Type dataType, string expr, MappingType type) {
165private void UpdateColumnType(Type type, StorageType typeCode) {
529public Type DataType {
1447Type leftType = value.GetType();
1448Type rightType = _storage.Get(record1).GetType();
1561internal static bool IsAutoIncrementType(Type dataType) {
1583return (DataStorage.IsTypeCustomType(value.GetType()) && !(value is Type));
1808internal abstract Type DataType { get; }
1842internal override Type DataType { get { return typeof(System.Int64); } }
1910internal override Type DataType { get { return typeof(System.Numerics.BigInteger); } }
fx\src\data\System\Data\DataException.cs (12)
634static public Exception DefaultValueDataType(string column, Type defaultType, Type columnType, Exception inner) {
642static public Exception DefaultValueColumnDataType(string column, Type defaultType, Type columnType, Exception inner) {
688static public Exception SetFailed(object value, DataColumn column, Type type, Exception innerException) {
708static public Exception CannotSetSimpleContentType(String columnName, Type type) {
712static public Exception CannotSetSimpleContent(String columnName, Type type) {
744static public Exception InvalidDataColumnMapping(Type type) {
1157static public Exception InvalidSchemaSerializationMode(Type enumType, string mode) {
1246static public Exception AggregateException(AggregateType aggregateType, Type type) {
1432static public DataException ConvertFailed(Type type1, Type type2) {
fx\src\data\System\Data\DataSet.cs (17)
1754this.WriteXmlSchema(stream, SchemaFormat.Public, (Converter<Type, string>)null);
1759/// <param name="multipleTargetConverter">A delegate used to convert <see cref='Type'/> into string.</param>
1760public void WriteXmlSchema(Stream stream, Converter<Type, string> multipleTargetConverter)
1772this.WriteXmlSchema(fileName, SchemaFormat.Public, (Converter<Type, string>)null);
1777/// <param name="multipleTargetConverter">A delegate used to convert <see cref='Type'/> into string.</param>
1780public void WriteXmlSchema(String fileName, Converter<Type, string> multipleTargetConverter)
1790this.WriteXmlSchema(writer, SchemaFormat.Public, (Converter<Type, string>)null);
1795/// <param name="multipleTargetConverter">A delegate used to convert <see cref='Type'/> into string.</param>
1796public void WriteXmlSchema(TextWriter writer, Converter<Type, string> multipleTargetConverter)
1806this.WriteXmlSchema(writer, SchemaFormat.Public, (Converter<Type, string>)null);
1811/// <param name="multipleTargetConverter">A delegate used to convert <see cref='Type'/> into string.</param>
1812public void WriteXmlSchema(XmlWriter writer, Converter<Type, string> multipleTargetConverter)
1820private void WriteXmlSchema(String fileName, SchemaFormat schemaFormat, Converter<Type, string> multipleTargetConverter)
1834private void WriteXmlSchema(Stream stream, SchemaFormat schemaFormat, Converter<Type, string> multipleTargetConverter)
1845private void WriteXmlSchema(TextWriter writer, SchemaFormat schemaFormat, Converter<Type, string> multipleTargetConverter)
1856private void WriteXmlSchema(XmlWriter writer, SchemaFormat schemaFormat, Converter<Type, string> multipleTargetConverter)
3388this.WriteXmlSchema(writer, SchemaFormat.WebService, (Converter<Type, string>)null);
fx\src\data\System\Data\Filter\FunctionNode.cs (14)
230private Type GetDataType(ExpressionNode node) {
231Type nodeType = node.GetType();
242throw ExprException.ArgumentType(funcs[info].name, 2, typeof(Type));
245Type dataType = Type.GetType(typeName);
421Type type = (Type)argumentValues[1];
576internal readonly Type result;
580internal readonly Type[] parameters = new Type[] {null, null, null};
590internal Function(string name, FunctionId id, Type result, bool IsValidateArguments,
591bool IsVariantArgumentList, int argumentCount, Type a1, Type a2, Type a3) {
fx\src\data\System\Data\Odbc\Odbc32.cs (6)
40static internal ArgumentOutOfRangeException NotSupportedEnumerationValue(Type type, int value) {
807internal readonly Type _type;
818private TypeMap(OdbcType odbcType, DbType dbType, Type type, ODBC32.SQL_TYPE sql_type, ODBC32.SQL_C sql_c, ODBC32.SQL_C param_sql_c, int bsize, int csize, bool signType) {
893static internal TypeMap FromSystemType(Type dataType) {
894switch(Type.GetTypeCode(dataType)) {
932default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType));
fx\src\data\System\Data\Odbc\OdbcParameter.cs (11)
868Type valueType = value.GetType();
894Type type = value.GetType ();
1005public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
1012public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
1044Type[] ctorParams;
1049ctorParams = new Type[] { typeof(string), typeof(OdbcType) };
1054ctorParams = new Type[] { typeof(string), typeof(OdbcType), typeof(int) };
1061ctorParams = new Type[] { typeof(string), typeof(OdbcType), typeof(int), typeof(string) };
1065ctorParams = new Type[] { typeof(string), typeof(object) };
1070ctorParams = new Type[] {
1080ctorParams = new Type[] {
fx\src\data\System\Data\OleDb\OleDbParameter.cs (10)
411Type currentType = value.GetType();
550public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
557public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
591Type[] ctorParams;
596ctorParams = new Type[] { typeof(string), typeof(OleDbType) };
601ctorParams = new Type[] { typeof(string), typeof(OleDbType), typeof(int) };
608ctorParams = new Type[] { typeof(string), typeof(OleDbType), typeof(int), typeof(string) };
612ctorParams = new Type[] { typeof(string), typeof(object) };
617ctorParams = new Type[] {
627ctorParams = new Type[] {
fx\src\data\System\Data\RelationshipConverter.cs (4)
27public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
41public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
55ctor = typeof(DataRelation).GetConstructor(new Type[] { typeof(string) /*relationName*/, typeof(string) /*parentTableName*/, typeof(string) /*childTableName */,
61ctor = typeof(DataRelation).GetConstructor(new Type[] { typeof(string)/*relationName*/, typeof(string)/*parentTableName*/, typeof(string)/*parentTableNamespace*/,
fx\src\data\System\Data\Sql\SqlMetaData.cs (15)
41private Type m_udttype;
89public SqlMetaData(String name, SqlDbType dbType, Type userDefinedType) {
95public SqlMetaData(String name, SqlDbType dbType, Type userDefinedType, string serverTypeName) {
101public SqlMetaData(String name, SqlDbType dbType, Type userDefinedType, string serverTypeName,
146Type userDefinedType) :
155Type userDefinedType, bool useServerDefault,
226Type udtType) {
340public Type Type {
630private void Construct(String name, SqlDbType dbType, Type userDefinedType, string serverTypeName, bool useServerDefault,
1046Type dataType = value.GetType();
1047switch (Type.GetTypeCode(dataType)) {
1119default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType));
1129Type dataType = value.GetType();
1130switch (Type.GetTypeCode(dataType))
1305default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType));
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
1072Type t;
fx\src\data\System\Data\SqlClient\SqlEnums.cs (10)
27internal readonly Type ClassType; // com+ type
28internal readonly Type SqlType;
61public MetaType(byte precision, byte scale, int fixedLength, bool isFixed, bool isLong, bool isPlp, byte tdsType, byte nullableTdsType, string typeName, Type classType, Type sqlType, SqlDbType sqldbType, DbType dbType, byte propBytes) {
277static internal MetaType GetMetaTypeFromType(Type dataType) {
284static private MetaType GetMetaTypeFromValue(Type dataType, object value, bool inferLen, bool streamAllowed) {
285switch (Type.GetTypeCode(dataType)) {
384default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType));
388internal static object GetNullSqlValue(Type sqlType) {
483Type type = sqlValue.GetType();
fx\src\data\System\Data\SqlClient\SqlParameter.cs (13)
70private Type _udtType;
904Type currentType = value.GetType();
1420Type valueType = _value.GetType ();
1432Type valueType = _sqlBufferReturnValue.GetTypeFromStorageType (_isSqlParameterSqlType);
1763override public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
1770override public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
1808Type[] ctorParams;
1813ctorParams = new Type[] { typeof(string), typeof(SqlDbType) };
1818ctorParams = new Type[] { typeof(string), typeof(SqlDbType), typeof(int) };
1825ctorParams = new Type[] { typeof(string), typeof(SqlDbType), typeof(int), typeof(string) };
1829ctorParams = new Type[] { typeof(string), typeof(object) };
1834ctorParams = new Type[] {
1846ctorParams = new Type[] {
System\ServiceModel\Channels\ServiceChannelProxy.cs (10)
30Type proxiedType;
31Type interfaceType;
37internal ServiceChannelProxy(Type interfaceType, Type proxiedType, MessageDirection direction, ServiceChannel serviceChannel)
97Type declaringType = method.DeclaringType;
211static readonly MethodInfo createGenericTaskMI = typeof(TaskCreator).GetMethod("CreateGenericTask", new Type[] { typeof(ServiceChannel), typeof(ProxyOperationRuntime), typeof(object[]) });
213static Func<ServiceChannel, ProxyOperationRuntime, object[], Task> GetOrCreateTaskDelegate(Type taskResultType)
387bool IRemotingTypeInfo.CanCastTo(Type toType, object o)
520Type targetType;
522internal MbrObject(RealProxy proxy, Type targetType)
System\ServiceModel\ComIntegration\ITypeCacheManager.cs (4)
11void FindOrCreateType (Guid riid, out Type interfaceType, bool noAssemblyGeneration, bool isServer);
12void FindOrCreateType (Type serverType, Guid riid, out Type interfaceType, bool noAssemblyGeneration, bool isServer);
13void FindOrCreateType (Guid typeLibId, string typeLibVersion, Guid typeDefId, out Type userDefinedType, bool noAssemblyGeneration);
System\ServiceModel\ComIntegration\TypeCacheManager.cs (15)
56private Dictionary<Guid, Type> typeTable;
63typeTable = new Dictionary<Guid, Type>();
262void ITypeCacheManager.FindOrCreateType(Guid typeLibId, string typeLibVersion, Guid typeDefId, out Type userDefinedType, bool noAssemblyGeneration)
270foreach (Type t in asm.GetTypes())
291public void FindOrCreateType(Guid iid, out Type interfaceType, bool noAssemblyGeneration, bool isServer)
298Type coClassInterface = null;
300foreach (Type t in asm.GetTypes())
326void ITypeCacheManager.FindOrCreateType(Type serverType, Guid iid, out Type interfaceType, bool noAssemblyGeneration, bool isServer)
337foreach (Type interfaceInType in serverType.GetInterfaces())
351public static Type ResolveClsidToType(Guid clsid)
386foreach (Type type in asm.GetTypes())
432foreach (Type type in asm.GetTypes())
446internal Type VerifyType(Guid iid)
448Type interfaceType;
System\ServiceModel\Description\ClientClassGenerator.cs (26)
34static Type clientBaseType = typeof(ClientBase<>);
35static Type duplexClientBaseType = typeof(DuplexClientBase<>);
36static Type instanceContextType = typeof(InstanceContext);
37static Type objectType = typeof(object);
38static Type objectArrayType = typeof(object[]);
39static Type exceptionType = typeof(Exception);
40static Type boolType = typeof(bool);
41static Type stringType = typeof(string);
42static Type endpointAddressType = typeof(EndpointAddress);
43static Type uriType = typeof(Uri);
44static Type bindingType = typeof(Binding);
45static Type sendOrPostCallbackType = typeof(SendOrPostCallback);
46static Type asyncCompletedEventArgsType = typeof(AsyncCompletedEventArgs);
47static Type eventHandlerType = typeof(EventHandler<>);
48static Type voidType = typeof(void);
49static Type asyncResultType = typeof(IAsyncResult);
50static Type asyncCallbackType = typeof(AsyncCallback);
66static Type[][] ClientCtorParamTypes = new Type[][]
68new Type[] { },
69new Type[] { stringType, },
70new Type[] { stringType, stringType, },
71new Type[] { stringType, endpointAddressType, },
72new Type[] { bindingType, endpointAddressType, },
84static Type[] EventArgsCtorParamTypes = new Type[]
System\ServiceModel\Description\DispatcherBuilder.cs (23)
28Type[] types = ProcessDescriptionForMsmqIntegration(endpoint, binding.TargetSerializationTypes);
39Type[] types = ProcessDescriptionForMsmqIntegration(endpoint, element.TargetSerializationTypes);
46static Type[] ProcessDescriptionForMsmqIntegration(ServiceEndpoint endpoint, Type[] existingSerializationTypes)
48List<Type> targetSerializationTypes;
51targetSerializationTypes = new List<Type>();
55targetSerializationTypes = new List<Type>(existingSerializationTypes);
60foreach (Type type in operationDesc.KnownTypes)
239Type BuildChannelListener(StuffPerListenUriInfo stuff,
313List<Type> supportedChannelTypes = new List<Type>();
339Type returnValue = DispatcherBuilder.MaybeCreateListener(true, supportedChannelTypes.ToArray(), binding, parameters,
345Dictionary<Type, byte> setOfChannelTypesSupportedByBinding = new Dictionary<Type, byte>();
377static internal Type MaybeCreateListener(bool actuallyCreate, Type[] supportedChannels,
387static Type MaybeCreateListener(bool actuallyCreate, Type[] supportedChannels,
403Type channelType = supportedChannels[i];
476Type channelType = supportedChannels[i];
732Type channelType = this.BuildChannelListener(stuff.Value,
1131internal static Type[] GetSupportedChannelTypes(ContractDescription contractDescription)
1140Type[] supportedChannels = ChannelRequirements.ComputeRequiredChannels(ref reqs);
System\ServiceModel\Description\MessageContractExporter.cs (11)
28static internal void ExportMessageBinding(WsdlExporter exporter, WsdlEndpointConversionContext endpointContext, Type messageContractExporterType, OperationDescription operation)
256protected XmlQualifiedName ExportType(Type type, string partName, string operationName, out XmlSchemaType xsdType)
662internal void ExportMessageBinding(OperationDescription operation, Type messageContractExporterType)
748static bool GetStyleAndUse(OperationDescription operation, Type messageContractExporterType, out bool isRpc, out bool isEncoded)
821Type type;
825public TypedMessageKey(Type type, string contractNS, object extensionData)
948Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(header.Type, out isQueryable);
956static internal bool IsTypeNullable(Type type)
978Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(description.Body.ReturnValue.Type, out isQueryable);
986Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(bodyPart.Type, out isQueryable);
998foreach (Type knownType in operation.KnownTypes)
System\ServiceModel\Description\MessageContractImporter.cs (8)
49static internal void ImportMessageBinding(WsdlImporter importer, WsdlEndpointConversionContext endpointContext, Type schemaImporterType)
1238static bool CheckAndAddPart(XmlQualifiedName typeNameFound, XmlQualifiedName typeNameRequired, string name, string ns, Type type, MessageDescription description, bool isReply)
1639Type type = typeof(DataContractSerializerSchemaImporter);
1692internal static bool TryGetFailedReferenceType(Exception ex, out Type failedReferenceType)
1699failedReferenceType = ex.Data[FailedReferenceTypeExceptionKey] as Type;
1714Type failedReferenceType;
1959xmlImporter.Extensions.Add(extTypeName, Type.GetType(extTypeName, true /*throwOnError*/));
1997Type type = typeof(XmlSerializerSchemaImporter);
System\ServiceModel\Description\MetadataResolver.cs (5)
18public static ServiceEndpointCollection Resolve(Type contract, EndpointAddress address)
52public static ServiceEndpointCollection Resolve(Type contract, Uri address, MetadataExchangeClientMode mode)
86public static IAsyncResult BeginResolve(Type contract, EndpointAddress address, AsyncCallback callback, object asyncState)
118public static IAsyncResult BeginResolve(Type contract, Uri address, MetadataExchangeClientMode mode, AsyncCallback callback, object asyncState)
307private static Collection<ContractDescription> CreateContractCollection(Type contract)
System\ServiceModel\Description\TypedMessageConverter.cs (7)
14public static TypedMessageConverter Create(Type messageContract, string action)
19public static TypedMessageConverter Create(Type messageContract, string action, string defaultNamespace)
24public static TypedMessageConverter Create(Type messageContract, string action, XmlSerializerFormatAttribute formatterAttribute)
29public static TypedMessageConverter Create(Type messageContract, string action, DataContractFormatAttribute formatterAttribute)
34public static TypedMessageConverter Create(Type messageContract, String action, String defaultNamespace, XmlSerializerFormatAttribute formatterAttribute)
45public static TypedMessageConverter Create(Type messageContract, String action, String defaultNamespace, DataContractFormatAttribute formatterAttribute)
63static OperationFormatter GetOperationFormatter(Type t, Attribute formatAttribute, string defaultNS, string action)
System\ServiceModel\Description\TypeLoader.cs (84)
21static Type[] messageContractMemberAttributes = {
27static Type[] formatterAttributes = {
32static Type[] knownTypesMethodParamType = new Type[] { typeof(ICustomAttributeProvider) };
37static readonly Type OperationContractAttributeType = typeof(OperationContractAttribute);
45readonly Dictionary<Type, ContractDescription> contracts;
46readonly Dictionary<Type, MessageDescriptionItems> messages;
51this.contracts = new Dictionary<Type, ContractDescription>();
52this.messages = new Dictionary<Type, MessageDescriptionItems>();
56ContractDescription LoadContractDescriptionHelper(Type contractType, Type serviceType, object serviceImplementation)
70Type actualContractType = ServiceReflector.GetContractTypeAndAttribute(contractType, out actualContractAttribute);
102void EnsureNoInheritanceWithContractClasses(Type actualContractType)
107for (Type service = actualContractType.BaseType; service != null; service = service.BaseType)
118void EnsureNoOperationContractsOnNonServiceContractTypes(Type actualContractType)
120foreach (Type t in actualContractType.GetInterfaces())
124for (Type u = actualContractType.BaseType; u != null; u = u.BaseType)
130void EnsureNoOperationContractsOnNonServiceContractTypes_Helper(Type aParentType)
138Type operationContractProviderType = ServiceReflector.GetOperationContractProviderType(methodInfo);
156public ContractDescription LoadContractDescription(Type contractType)
163public ContractDescription LoadContractDescription(Type contractType, Type serviceType)
171public ContractDescription LoadContractDescription(Type contractType, Type serviceType, object serviceImplementation)
182Type channelType = typeof(IOutputChannel);
197Type channelType = typeof(IRequestChannel);
212void AddBehaviors(ContractDescription contractDesc, Type implType, bool implIsCallback, ContractReflectionInfo reflectionInfo)
230Type targetIface = implIsCallback ? opDesc.DeclaringContract.CallbackContractType : opDesc.DeclaringContract.ContractType;
246delegate(Type currentType, KeyedByTypeCollection<IOperationBehavior> behaviors)
260delegate(Type currentType, KeyedByTypeCollection<IOperationBehavior> behaviors)
284Type targetInterface = implIsCallback ? reflectionInfo.callbackiface : reflectionInfo.iface;
317void GetIContractBehaviorsFromInterfaceType(Type interfaceType, KeyedByTypeCollection<IContractBehavior> behaviors)
327static void UpdateContractDescriptionWithAttributesFromServiceType(ContractDescription description, Type serviceType)
331delegate(Type currentType, KeyedByTypeCollection<IContractBehavior> behaviors)
350IEnumerable<Type> knownTypes = GetKnownTypes(customAttributes, reflectionInfo.iface);
351foreach (Type knownType in knownTypes)
364foreach (Type knownType in knownTypes)
375private IEnumerable<Type> GetKnownTypes(object[] knownTypeAttributes, ICustomAttributeProvider provider)
382Type type = knownTypeAttribute.DeclaringType;
385type = provider as Type;
393if (!typeof(IEnumerable<Type>).IsAssignableFrom(method.ReturnType))
396return (IEnumerable<Type>)method.Invoke(null, new object[] { provider });
400List<Type> knownTypes = new List<Type>();
411KeyedByTypeCollection<IOperationBehavior> GetIOperationBehaviorAttributesFromType(OperationDescription opDesc, Type targetIface, Type implType)
523internal void AddBehaviorsSFx(ServiceEndpoint serviceEndpoint, Type contractType)
535internal void AddBehaviorsFromImplementationType(ServiceEndpoint serviceEndpoint, Type implementationType)
552Type targetIface = serviceEndpoint.Contract.CallbackContractType;
560delegate(Type currentType, KeyedByTypeCollection<IOperationBehavior> behaviors)
573Type t = behavior.GetType();
615Type contractToGetMethodsFrom,
652internal static void EnsureCallbackType(Type callbackType)
661internal static void EnsureSubcontract(ServiceContractAttribute svcContractAttr, Type contractType)
663Type callbackType = svcContractAttr.CallbackContract;
665List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType);
668Type inheritedContractType = types[i];
689ContractDescription CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, out ContractReflectionInfo reflectionInfo, object serviceImplementation)
701Type callbackType = contractAttr.CallbackContract;
716List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType);
717List<Type> inheritedCallbackTypes = new List<Type>();
720Type inheritedContractType = types[i];
814Type taskTResult;
940IEnumerable<Type> knownTypes = GetKnownTypes(methodAttributes, methodInfo);
941foreach (Type knownType in knownTypes)
1070Type taskTResult,
1109Type responseType = isTask ? taskTResult : methodInfo.ReturnType;
1154Type returnType,
1204private static MessagePartDescription CreateParameterPartDescription(XmlName defaultName, string defaultNS, int index, ICustomAttributeProvider attrProvider, Type type)
1218internal MessageDescription CreateTypedMessageDescription(Type typedMessageType,
1247for (Type baseType = typedMessageType; baseType != null && baseType != typeof(object) && baseType != typeof(ValueType); baseType = baseType.BaseType)
1306Type memberType;
1368MessagePartDescription CreateMessagePartDescription(Type bodyType,
1404MessageHeaderDescription CreateMessageHeaderDescription(Type headerParameterType,
1483internal static Type GetParameterType(ParameterInfo parameterInfo)
1485Type parameterType = parameterInfo.ParameterType;
1924internal Type iface;
1925internal Type callbackiface;
1941Type serviceType,
1949for (Type currentType = serviceType; currentType != null; currentType = currentType.BaseType)
1955public delegate void ServiceInheritanceCallback<IBehavior, TBehaviorCollection>(Type currentType, KeyedByTypeCollection<IBehavior> behaviors);
1967Type type,
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (13)
222internal Reflector(string defaultNs, Type type)
242Type contractType = operation.DeclaringContract != null ? operation.DeclaringContract.ContractType : null;
386foreach (Type knownType in Operation.KnownTypes)
531Type bodyObjectType = bodyPart.Type;
543Type bodyObjectType = bodyPart.Type;
703internal XmlTypeMapping ImportTypeMapping(Type type, bool isEncoded)
711internal void IncludeType(Type knownType, bool isEncoded)
724Type type;
727internal SerializerGenerationContext(Type type)
795XmlSerializer[] CreateSerializersFromMappings(XmlMapping[] mappings, Type type)
946static internal XmlReflectionMember GetXmlReflectionMember(XmlName memberName, XmlName elementName, string ns, Type type, ICustomAttributeProvider additionalAttributesProvider, bool isMultiple, bool isEncoded, bool isWrapped)
971Type invalidAttributeType = null;
991Type invalidAttributeType = null;
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (1)
44Type type;
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (15)
184internal static void TraceIdentityVerificationSuccess(EventTraceActivity eventTraceActivity, EndpointIdentity identity, Claim claim, Type identityVerifier)
195internal static void TraceIdentityVerificationFailure(EndpointIdentity identity, AuthorizationContext authContext, Type identityVerifier)
201internal static void TraceIdentityDeterminationSuccess(EndpointAddress epr, EndpointIdentity identity, Type identityVerifier)
207internal static void TraceIdentityDeterminationFailure(EndpointAddress epr, Type identityVerifier)
213internal static void TraceIdentityHostNameNormalizationFailure(EndpointAddress epr, Type identityVerifier, Exception e)
1050Type identityVerifier;
1052public IdentityVerificationSuccessTraceRecord(EndpointIdentity identity, Claim claim, Type identityVerifier)
1082Type identityVerifier;
1084public IdentityVerificationFailureTraceRecord(EndpointIdentity identity, AuthorizationContext authContext, Type identityVerifier)
1148Type identityVerifier;
1150public IdentityDeterminationSuccessTraceRecord(EndpointAddress epr, EndpointIdentity identity, Type identityVerifier)
1176Type identityVerifier;
1179public IdentityDeterminationFailureTraceRecord(EndpointAddress epr, Type identityVerifier)
1201Type identityVerifier;
1205public IdentityHostNameNormalizationFailureTraceRecord(EndpointAddress epr, Type identityVerifier, Exception e)
System\ServiceModel\Dispatcher\CodeGenerator.cs (45)
47Type delegateType;
74getTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle");
84stringConcat2 = typeof(string).GetMethod("Concat", new Type[] { typeof(string), typeof(string) });
94objectToString = typeof(object).GetMethod("ToString", new Type[0]);
119internal void BeginMethod(string methodName, Type delegateType, bool allowPrivateMemberAccess)
123Type[] paramTypes = new Type[parameters.Length];
130void BeginMethod(Type returnType, string methodName, Type[] argTypes, bool allowPrivateMemberAccess)
200internal Type GetVariableType(object var)
210internal LocalBuilder DeclareLocal(Type type, string name)
215internal LocalBuilder DeclareLocal(Type type, string name, bool isPinned)
283internal void InitObj(Type valueType)
292Type objType = GetVariableType(obj).GetElementType();
306Type objType = GetVariableType(obj).GetElementType();
319static bool IsStruct(Type objType)
360internal void ConvertAddress(Type source, Type target)
365internal void ConvertValue(Type source, Type target)
370internal void Castclass(Type target)
377internal void Box(Type type)
384internal void Unbox(Type type)
391internal void Ldobj(Type type)
393OpCode opCode = GetLdindOpCode(Type.GetTypeCode(type));
408internal void Stobj(Type type)
415internal void Ldtoken(Type t)
424Type valueType = o.GetType();
425if (o is Type)
427Ldtoken((Type)o);
438switch (Type.GetTypeCode(valueType))
708internal void Ldelem(Type arrayElementType)
716OpCode opCode = GetLdelemOpCode(Type.GetTypeCode(arrayElementType));
726internal void Ldelema(Type arrayElementType)
736internal void Stelem(Type arrayElementType)
742OpCode opCode = GetStelemOpCode(Type.GetTypeCode(arrayElementType));
818void InternalConvert(Type source, Type target, bool isAddress)
826OpCode opCode = GetConvOpCode(Type.GetTypeCode(target));
1094internal void EmitStackTop(Type stackTopType)
1110internal void ToString(Type type)
1134internal void LoadZeroValueIntoLocal(Type type, LocalBuilder local)
1138switch (Type.GetTypeCode(type))
1184internal Type ArgType;
1185internal ArgBuilder(int index, Type argType)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (27)
22internal static DataContractSerializer CreateSerializer(Type type, int maxItems)
27internal static DataContractSerializer CreateSerializer(Type type, IList<Type> knownTypes, int maxItems)
38internal static DataContractSerializer CreateSerializer(Type type, string rootName, string rootNs, int maxItems)
43internal static DataContractSerializer CreateSerializer(Type type, IList<Type> knownTypes, string rootName, string rootNs, int maxItems)
55internal static DataContractSerializer CreateSerializer(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNs, int maxItems)
60internal static DataContractSerializer CreateSerializer(Type type, IList<Type> knownTypes, XmlDictionaryString rootName, XmlDictionaryString rootNs, int maxItems)
76static Type typeOfIQueryable = typeof(IQueryable);
77static Type typeOfIQueryableGeneric = typeof(IQueryable<>);
78static Type typeOfIEnumerable = typeof(IEnumerable);
79static Type typeOfIEnumerableGeneric = typeof(IEnumerable<>);
83IList<Type> knownTypes;
95foreach (Type type in description.KnownTypes)
98knownTypes = new List<Type>();
146private void ValidateDataContractType(Type type)
277KeyValuePair<Type, ArrayList>[] multipleHeaderValues = null;
309multipleHeaderValues = new KeyValuePair<Type, ArrayList>[parameters.Length];
312multipleHeaderValues[headerDescription.Index] = new KeyValuePair<System.Type, System.Collections.ArrayList>(headerDescription.TypedHeader ? TypedHeaderManager.GetMessageHeaderType(headerDescription.Type) : headerDescription.Type, new ArrayList());
352Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(headerDescription.Type, out isQueryable);
476internal static Type GetSubstituteDataContractType(Type type, out bool isQueryable)
534IList<Type> knownTypes;
536Type contractType;
540IList<Type> knownTypes, DataContractSerializerOperationBehavior behavior)
551public Type ContractType
System\ServiceModel\MessageHeaderT.cs (13)
61internal Type GetGenericArgument()
81static Dictionary<Type, TypedHeaderManager> cache = new Dictionary<Type, TypedHeaderManager>();
83static Type GenericAdapterType = typeof(GenericAdapter<>);
85internal static object Create(Type t, object content, bool mustUnderstand, bool relay, string actor)
90internal static object GetContent(Type t, object typedHeaderInstance, out bool mustUnderstand, out bool relay, out string actor)
95internal static Type GetMessageHeaderType(Type contentType)
99internal static Type GetHeaderType(Type headerParameterType)
107static TypedHeaderManager GetTypedHeaderManager(Type t)
143protected abstract Type GetMessageHeaderType();
174protected override Type GetMessageHeaderType()
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (13)
60public WSSecurityTokenSerializer(SecurityVersion securityVersion, bool emitBspRequiredAttributes, SamlSerializer samlSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes)
65public WSSecurityTokenSerializer(SecurityVersion securityVersion, TrustVersion trustVersion, SecureConversationVersion secureConversationVersion, bool emitBspRequiredAttributes, SamlSerializer samlSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes)
70public WSSecurityTokenSerializer(SecurityVersion securityVersion, bool emitBspRequiredAttributes, SamlSerializer samlSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes,
76public WSSecurityTokenSerializer(SecurityVersion securityVersion, TrustVersion trustVersion, SecureConversationVersion secureConversationVersion, bool emitBspRequiredAttributes, SamlSerializer samlSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes,
392internal Type[] GetTokenTypes(string tokenTypeUri)
409protected internal virtual string GetTokenTypeUri(Type tokenType)
482Type[] tokenTypes = null;
492public Type TokenType { get { return GetTokenTypes()[0]; } }
496protected abstract Type[] GetTokenTypesCore();
498public Type[] GetTokenTypes()
505public bool SupportsCore(Type tokenType)
507Type[] tokenTypes = GetTokenTypes();
521protected static SecurityKeyIdentifierClause CreateDirectReference(XmlElement issuedTokenXml, string idAttributeLocalName, string idAttributeNamespace, Type tokenType)
System\ServiceModel\Security\WsSecurityTokenSerializerAdapter.cs (2)
70public WsSecurityTokenSerializerAdapter( SecurityTokenHandlerCollection securityTokenHandlerCollection, SecurityVersion securityVersion, bool emitBspAttributes, SamlSerializer samlSerializer, SecurityStateEncoder stateEncoder, IEnumerable<Type> knownTypes )
89public WsSecurityTokenSerializerAdapter( SecurityTokenHandlerCollection securityTokenHandlerCollection, SecurityVersion securityVersion, TrustVersion trustVersion, SecureConversationVersion secureConversationVersion, bool emitBspAttributes, SamlSerializer samlSerializer, SecurityStateEncoder stateEncoder, IEnumerable<Type> knownTypes )
System\ServiceModel\ServiceConfiguration.cs (4)
201public ServiceEndpoint AddServiceEndpoint(Type contractType, Binding binding, string address)
214public ServiceEndpoint AddServiceEndpoint(Type contractType, Binding binding, Uri address)
241public ServiceEndpoint AddServiceEndpoint(Type contractType, Binding binding, string address, Uri listenUri)
258public ServiceEndpoint AddServiceEndpoint(Type contractType, Binding binding, Uri address, Uri listenUri)
System\ServiceModel\ServiceHost.cs (18)
1656Type serviceType;
1664public ServiceHost(Type serviceType, params Uri[] baseAddresses)
1719public ServiceEndpoint AddServiceEndpoint(Type implementedContract, Binding binding, string address)
1724public ServiceEndpoint AddServiceEndpoint(Type implementedContract, Binding binding, string address, Uri listenUri)
1740public ServiceEndpoint AddServiceEndpoint(Type implementedContract, Binding binding, Uri address)
1745void ValidateContractType(Type implementedContract, ReflectedAndBehaviorContractCollection reflectedAndBehaviorContracts)
1763public ServiceEndpoint AddServiceEndpoint(Type implementedContract, Binding binding, Uri address, Uri listenUri)
1792Type contractType = contract.ContractType;
1798Type otherContractType = otherContract.ContractType;
1828Type serviceType = this.Description.ServiceType;
1851static MethodInfo GetConfigureMethod(Type serviceType)
1986List<Type> interfaces = ServiceReflector.GetInterfaces(this.serviceType);
1989Type contractType = interfaces[i];
2031protected void InitializeDescription(Type serviceType, UriSchemeKeyedCollection baseAddresses)
2052class ReflectedContractCollection : KeyedCollection<Type, ContractDescription>
2059protected override Type GetKeyForItem(ContractDescription item)
2093internal bool Contains(Type implementedContract)
2108internal string GetConfigKey(Type implementedContract)
Compilation\BuildManager.cs (27)
112private Type _profileType;
542Type t = Type.GetType(AppSettings.PortableCompilationOutputSnapshotType, true);
969internal static MethodInfo FindPreStartInitMethod(Type type, string methodName) {
978types: Type.EmptyTypes,
1136Type type = _globalAsaxBuildResult.ResultType;
1291public static Type GetType(string typeName, bool throwOnError) {
1298public static Type GetType(string typeName, bool throwOnError, bool ignoreCase) {
1302Type type = null;
1304type = Type.GetType(typeName, throwOnError, ignoreCase);
1314return Type.GetType(typeName, throwOnError, ignoreCase);
1374internal static Type GetTypeFromCodeAssembly(string typeName, bool ignoreCase) {
1398Type buildProviderType = CompilationUtil.GetBuildProviderTypeFromExtension(compConfig,
1420List<Type> buildProviderTypes = CompilationUtil.GetFolderLevelBuildProviderTypes(compConfig, appliesTo);
1422foreach (Type buildProviderType in buildProviderTypes) {
1976public static Type GetGlobalAsaxType() {
1980private Type GetGlobalAsaxTypeInternal() {
2033out Type codeDomProviderType, out CompilerParameters compilerParameters,
2050out Type codeDomProviderType, out CompilerParameters compilerParameters,
2125internal static Type GetProfileType() {
2129private Type GetProfileTypeInternal() {
3083public static Type GetCompiledType(string virtualPath) {
3092internal static Type GetCompiledType(VirtualPath virtualPath, ClientBuildManagerCallback callback) {
3117internal static Type GetCompiledType(VirtualPath virtualPath) {
3130public static object CreateInstanceFromVirtualPath(string virtualPath, Type requiredBaseType) {
3141Type requiredBaseType, HttpContext context, bool allowCrossApp) {
3322internal static string GetNormalizedTypeName(Type t) {
Compilation\ClientBuildManagerTypeDescriptionProviderBridge.cs (19)
23private Type GetReflectionType(Type type) {
31private Type[] GetReflectionTypes(Type[] types) {
39internal bool HasProperty(Type type, string name, BindingFlags bindingAttr, Type returnType, Type[] types)
46Type reflectionType = GetReflectionType(type);
47Type[] reflectionTypes = GetReflectionTypes(types);
54internal bool HasField(Type type, string name, BindingFlags bindingAttr) {
61Type reflectionType = _targetFrameworkProvider.GetReflectionType(type);
67internal bool HasEvent(Type type, string name) {
74Type reflectionType = _targetFrameworkProvider.GetReflectionType(type);
85internal bool HasMethod(Type type, string name, BindingFlags bindingAttr) {
86Type reflectionType = type;
94internal string[] GetFilteredProperties(Type type, BindingFlags bindingFlags) {
101Type reflectionType = _targetFrameworkProvider.GetReflectionType(type);
108internal string[] GetFilteredEvents(Type type, BindingFlags bindingFlags) {
115Type reflectionType = _targetFrameworkProvider.GetReflectionType(type);
Compilation\CompilationUtil.cs (19)
247Type type = info.CodeDomProviderType;
281internal static Type GetBuildProviderTypeFromExtension(VirtualPath configPath, string extension,
290internal static Type GetBuildProviderTypeFromExtension(CompilationSection config, string extension,
295Type buildProviderType = null;
330internal static List<Type> GetFolderLevelBuildProviderTypes(CompilationSection config,
435internal static Type LoadTypeWithChecks(string typeName, Type requiredBaseType, Type requiredBaseType2, ConfigurationElement elem, string propertyName) {
436Type t = ConfigUtil.GetType(typeName, propertyName, elem);
452internal static CodeDomProvider CreateCodeDomProvider(Type codeDomProviderType) {
460internal static CodeDomProvider CreateCodeDomProviderNonPublic(Type codeDomProviderType) {
469private static CodeDomProvider CreateCodeDomProviderWithPropertyOptions(Type codeDomProviderType) {
515ConstructorInfo ci = codeDomProviderType.GetConstructor(new Type[] { typeof(IDictionary<string, string>) });
537internal static IDictionary<string, string> GetProviderOptions(Type codeDomProviderType) {
563internal static string GetCompilerVersion(Type codeDomProviderType) {
571internal static string GetProviderOption(Type codeDomProviderType, string providerOption) {
595internal static bool IsCompilerVersion35(Type codeDomProviderType) {
606internal static bool IsCompilerVersion35OrAbove(Type codeDomProviderType) {
625internal static bool WarnAsError(Type codeDomProviderType) {
Compilation\DataBindingExpressionBuilder.cs (3)
32Type propertyType, ControlBuilder controlBuilder, CodeStatementCollection methodStatements, CodeStatementCollection statements, CodeLinePragma linePragma, bool isEncoded, ref bool hasTempObject) {
65Type propertyType, ControlBuilder controlBuilder, CodeStatementCollection methodStatements, CodeStatementCollection statements, CodeLinePragma linePragma, bool isEncoded, ref bool hasTempObject) {
95Type bindingContainerType = controlBuilder.BindingContainerType;
Compilation\DelayLoadType.cs (15)
12private Type _type;
27public Type Type {
62public override Type BaseType {
84protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) {
92public override Type GetElementType() {
112public override Type GetInterface(string name, bool ignoreCase) {
116public override Type[] GetInterfaces() {
124protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) {
132public override Type GetNestedType(string name, BindingFlags bindingAttr) {
136public override Type[] GetNestedTypes(BindingFlags bindingAttr) {
144protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
188public override Type UnderlyingSystemType {
194public override object[] GetCustomAttributes(Type attributeType, bool inherit) {
202public override bool IsDefined(Type attributeType, bool inherit) {
Compilation\ResourceExpressionBuilder.cs (5)
42public override object ParseExpression(string expression, Type propertyType, ExpressionBuilderContext context) {
160string resourceKey, Type objType, string propName, CultureInfo culture) {
174string resourceKey, CultureInfo culture, Type objType, string propName) {
194private static object ObjectFromString(string value, Type objType, string propName) {
256Type t = null;
Configuration\ConfigUtil.cs (15)
19internal static void CheckBaseType(Type expectedBaseType, Type userBaseType, string propertyName, ConfigurationElement configElement) {
30internal static Type GetType(string typeName, string propertyName, ConfigurationElement configElement,
37Type val;
77internal static Type GetType(string typeName, string propertyName, ConfigurationElement configElement) {
81internal static Type GetType(string typeName, string propertyName, ConfigurationElement configElement, bool checkAptcaBit) {
85internal static Type GetType(string typeName, string propertyName, ConfigurationElement configElement, bool checkAptcaBit, bool ignoreCase) {
89internal static Type GetType(string typeName, XmlNode node) {
93internal static Type GetType(string typeName, XmlNode node, bool ignoreCase) {
97internal static void CheckAssignableType(Type baseType, Type type, ConfigurationElement configElement, string propertyName) {
105internal static void CheckAssignableType(Type baseType, Type baseType2, Type type, ConfigurationElement configElement, string propertyName) {
114internal static bool IsTypeHandlerOrFactory(Type t) {
Configuration\HandlerBase.cs (6)
146private static XmlNode GetAndRemoveTypeAttributeInternal(XmlNode node, string attrib, bool fRequired, ref Type val) {
156internal static XmlNode GetAndRemoveTypeAttribute(XmlNode node, string attrib, ref Type val) {
241internal static void CheckAssignableType(XmlNode node, Type baseType, Type type) {
249internal static void CheckAssignableType(string filename, int lineNumber, Type baseType, Type type) {
Configuration\ProvidersHelper.cs (5)
21public static ProviderBase InstantiateProvider(ProviderSettings providerSettings, Type providerType)
28Type t = ConfigUtil.GetType(pnType, "type", providerSettings, true, true);
52internal static ProviderBase InstantiateProvider(NameValueCollection providerSettings, Type providerType) {
59Type t = ConfigUtil.GetType(pnType, "type", null, null, true, true);
83public static void InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
Handlers\AssemblyResourceLoader.cs (5)
130internal static Assembly GetAssemblyFromType(Type type) {
175internal static string GetWebResourceUrl(Type type, string resourceName) {
179internal static string GetWebResourceUrl(Type type, string resourceName, bool htmlEncoded) {
183internal static string GetWebResourceUrl(Type type, string resourceName, bool htmlEncoded, IScriptManager scriptManager) {
191internal static string GetWebResourceUrl(Type type, string resourceName, bool htmlEncoded, IScriptManager scriptManager, bool enableCdn) {
Hosting\ApplicationManager.cs (18)
219public IRegisteredObject CreateObject(IApplicationHost appHost, Type type) {
232public IRegisteredObject CreateObject(String appId, Type type, string virtualPath, string physicalPath, bool failIfExists) {
237public IRegisteredObject CreateObject(String appId, Type type, string virtualPath, string physicalPath,
259internal IRegisteredObject CreateObjectInternal(String appId, Type type, IApplicationHost appHost, bool failIfExists) {
277Type type,
299Type type,
309Type type,
329Type type,
379public IRegisteredObject GetObject(String appId, Type type) {
443internal void RemoveFromTableIfRuntimeExists(String appId, Type runtimeType) {
471public void StopObject(String appId, Type type) {
825Type type,
1188Type appDomainManagerType = AspNetAppDomainManager.GetAspNetAppDomainManagerType(requireHostExecutionContextManager, requireHostSecurityManager);
1245Type hostType = typeof(HostingEnvironment);
1566internal static Type GetAspNetAppDomainManagerType(bool overrideHostExecutionContextManager, bool overrideHostSecurityManager) {
1574Type openGenericType = typeof(AspNetAppDomainManagerImpl<,>);
1575Type closedGenericType = openGenericType.MakeGenericType(
1641Type.GetType(HttpRuntime.HostSecurityPolicyResolverType)) as HostSecurityPolicyResolver;
ModelBinding\AssociatedMetadataProvider.cs (9)
19protected abstract ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
21protected virtual IEnumerable<Attribute> FilterAttributes(Type containerType, PropertyDescriptor propertyDescriptor, IEnumerable<Attribute> attributes) {
25public override IEnumerable<ModelMetadata> GetMetadataForProperties(object container, Type containerType) {
33private IEnumerable<ModelMetadata> GetMetadataForPropertiesImpl(object container, Type containerType) {
40public override ModelMetadata GetMetadataForProperty(Func<object> modelAccessor, Type containerType, string propertyName) {
61protected virtual ModelMetadata GetMetadataForProperty(Func<object> modelAccessor, Type containerType, PropertyDescriptor propertyDescriptor) {
68public override ModelMetadata GetMetadataForType(Func<object> modelAccessor, Type modelType) {
83protected virtual ICustomTypeDescriptor GetTypeDescriptor(Type type) {
ModelBinding\ModelBinderDictionary.cs (19)
7public class ModelBinderDictionary : IDictionary<Type, IModelBinder> {
10private readonly Dictionary<Type, IModelBinder> _innerDictionary = new Dictionary<Type, IModelBinder>();
41return ((IDictionary<Type, IModelBinder>)_innerDictionary).IsReadOnly;
45public ICollection<Type> Keys {
52public IModelBinder this[Type key]
71public void Add(KeyValuePair<Type, IModelBinder> item) {
72((IDictionary<Type, IModelBinder>)_innerDictionary).Add(item);
76public void Add(Type key, IModelBinder value)
85public bool Contains(KeyValuePair<Type, IModelBinder> item) {
86return ((IDictionary<Type, IModelBinder>)_innerDictionary).Contains(item);
89public bool ContainsKey(Type key) {
93public void CopyTo(KeyValuePair<Type, IModelBinder>[] array, int arrayIndex) {
94((IDictionary<Type, IModelBinder>)_innerDictionary).CopyTo(array, arrayIndex);
134public IEnumerator<KeyValuePair<Type, IModelBinder>> GetEnumerator() {
138public bool Remove(KeyValuePair<Type, IModelBinder> item) {
139return ((IDictionary<Type, IModelBinder>)_innerDictionary).Remove(item);
142public bool Remove(Type key) {
146public bool TryGetValue(Type key, out IModelBinder value) {
parent\parent\parent\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) {
Profile\HttpProfileBase.cs (17)
89Type t = BuildManager.GetProfileType();
215internal static Type InheritsFromType {
220Type t;
247Type t = Type.GetType(inheritsType, false, true);
269Type t = Type.GetType(inheritsType, false, true);
333Type t = pps.TypeInternal;
360Type t;
390Type baseType = ProfileBase.InheritsFromType;
488private static void AddPropertySettingsFromConfig(Type baseType, bool fAnonEnabled, bool hasLowTrust, ProfilePropertySettingsCollection settingsCollection, string groupName) {
547static private Type ResolvePropertyTypeForCommonTypes(string typeName) {
613static private Type ResolvePropertyType(string typeName) {
614Type t = ResolvePropertyTypeForCommonTypes(typeName.ToLower(System.Globalization.CultureInfo.InvariantCulture));
624static private Type GetPropType(string typeName) {
625return Type.GetType(typeName, true, true);
670internal Type PropertyType;
Security\AuthStoreRoleProvider.cs (4)
575Type typeAzAuthorizationStoreClass = null;
578typeAzAuthorizationStoreClass = Type.GetType("Microsoft.Interop.Security.AzRoles.AzAuthorizationStoreClass, Microsoft.Interop.Security.AzRoles, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
581typeAzAuthorizationStoreClass = Type.GetType("Microsoft.Interop.Security.AzRoles.AzAuthorizationStoreClass, Microsoft.Interop.Security.AzRoles, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
585typeAzAuthorizationStoreClass = Type.GetType("Microsoft.Interop.Security.AzRoles.AzAuthorizationStoreClass, Microsoft.Interop.Security.AzRoles, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
State\SessionStateItemCollection.cs (1)
154Type t;
UI\ClientScriptManager.cs (25)
250internal static ScriptKey CreateScriptKey(Type type, string key) {
254internal static ScriptKey CreateScriptIncludeKey(Type type, string key, bool isResource) {
527public string GetWebResourceUrl(Type type, string resourceName) {
532internal static string GetWebResourceUrl(Page owner, Type type, string resourceName, bool htmlEncoded, IScriptManager scriptManager) {
537internal static string GetWebResourceUrl(Page owner, Type type, string resourceName, bool htmlEncoded, IScriptManager scriptManager, bool enableCdn) {
572public bool IsClientScriptBlockRegistered(Type type, string key) {
591public bool IsClientScriptIncludeRegistered(Type type, string key) {
612public bool IsStartupScriptRegistered(Type type, string key) {
631public bool IsOnSubmitStatementRegistered(Type type, string key) {
772public void RegisterClientScriptBlock(Type type, string key, string script) {
781public void RegisterClientScriptBlock(Type type, string key, string script, bool addScriptTags) {
795internal void RegisterClientScriptBlock(Control control, Type type, string key, string script, bool addScriptTags) {
820public void RegisterClientScriptInclude(Type type, string key, string url) {
824internal void RegisterClientScriptInclude(Type type, string key, string url, bool isResource) {
838internal void RegisterClientScriptInclude(Control control, Type type, string key, string url) {
851public void RegisterClientScriptResource(Type type, string resourceName) {
860internal void RegisterClientScriptResource(Control control, Type type, string resourceName) {
895public void RegisterOnSubmitStatement(Type type, string key, string script) {
905internal void RegisterOnSubmitStatement(Control control, Type type, string key, string script) {
993public void RegisterStartupScript(Type type, string key, string script) {
1004public void RegisterStartupScript(Type type, string key, string script, bool addScriptTags) {
1018internal void RegisterStartupScript(Control control, Type type, string key, string script, bool addScriptTags) {
1425private Type _type;
1431internal ScriptKey(Type type, string key) : this(type, key, false, false) {
1434internal ScriptKey(Type type, string key, bool isInclude, bool isResource) {
UI\ControlBuilder.cs (24)
48private Type _controlType;
94public virtual Type BindingContainerType {
100Type ctrlType = NamingContainerBuilder.ControlType;
118Type ctrlType = NamingContainerBuilder.ControlType;
285public Type ControlType {
308public virtual Type DeclareType {
532public Type NamingContainerType {
899Type memberType = null;
993Type memberType = null;
1156Type memberType = null;
1579internal ControlBuilder CreateChildBuilder(string filter, string tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, string id, int line, VirtualPath virtualPath, ref Type childType, bool defaultProperty) {
1638public static ControlBuilder CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, string tagName, string id, IDictionary attribs, int line, string sourceFileName) {
1659private static ControlBuilder CreateBuilderFromType(Type type) {
1712private static ControlBuilderAttribute GetControlBuilderAttribute(Type controlType) {
1725private ControlBuilder GetChildPropertyBuilder(string tagName, IDictionary attribs, ref Type childType, TemplateParser templateParser, bool defaultProperty) {
1806public virtual Type GetChildControlType(string tagName, IDictionary attribs) {
1892public virtual void Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, string tagName, string id, IDictionary attribs) {
1933Type subType = null;
1979private static ParseChildrenAttribute GetParseChildrenAttribute(Type controlType) {
2189MethodInfo methodInfo = ControlType.GetMethod("Add", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { objValue.GetType() }, null);
2505Type templateControlType = TemplateControl.GetType();
3010internal void SetControlType(Type controlType) {
3157private Type _builderType;
3159internal ReflectionBasedControlBuilderFactory(Type builderType) {
UI\ExpressionBinding.cs (4)
22private Type _propertyType;
28public ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression) : this(propertyName, propertyType, expressionPrefix, expression, false, null) {
34internal ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression, bool generated, object parsedExpressionData) {
91public Type PropertyType {
UI\IScriptManager.cs (5)
19void RegisterClientScriptBlock(Control control, Type type, string key, string script, bool addScriptTags);
20void RegisterClientScriptInclude(Control control, Type type, string key, string url);
21void RegisterClientScriptResource(Control control, Type type, string resourceName);
25void RegisterOnSubmitStatement(Control control, Type type, string key, string script);
27void RegisterStartupScript(Control control, Type type, string key, string script, bool addScriptTags);
UI\TagNameToTypeMapper.cs (19)
49Type GetControlType(string tagName, IDictionary attribs);
70Type ITagNameToTypeMapper.GetControlType(string tagName, IDictionary attribs) {
74internal Type GetControlType(string tagName, IDictionary attribs, bool throwOnError) {
86Type type = null;
125Type type = referenceManager.GetType(_nsRegisterEntry.TagPrefix, tagName);
136Type type = typeResolutionService.GetType(typeName, false, true);
169Type ITagNameToTypeMapper.GetControlType(string tagName, IDictionary attribs) {
170Type foundType = null;
174Type t = ((ITagNameToTypeMapper)nsMapper).GetControlType(tagName, attribs);
357Type type = null;
439internal void RegisterTag(string tagName, Type type) {
452internal /*public*/ Type GetControlType(string tagName, IDictionary attribs, bool fAllowHtmlTags) {
453Type type = GetControlType2(tagName, attribs, fAllowHtmlTags);
458Type mappedType = (Type)tagMapEntries[type];
468private /*public*/ Type GetControlType2(string tagName, IDictionary attribs, bool fAllowHtmlTags) {
469Type type;
473type = (Type) _mappedTags[tagName];
478type = (Type) _mappedTags[tagName];
UI\TargetFrameworkUtil.cs (61)
53private static ConcurrentDictionary<Type, MemberCache> s_memberCache = new ConcurrentDictionary<Type, MemberCache>();
57private static ConcurrentDictionary<Type, PropertyDescriptorCollection> s_typePropertyDescriptorCollectionDict =
58new ConcurrentDictionary<Type, PropertyDescriptorCollection>();
61private static ConcurrentDictionary<Type, EventDescriptorCollection> s_eventDescriptorCollectionDict =
62new ConcurrentDictionary<Type, EventDescriptorCollection>();
64private static ConcurrentDictionary<Type, bool> s_isFrameworkType = new ConcurrentDictionary<Type, bool>();
66private static MemberCache GetMemberCache(Type type){
115private static TypeDescriptionProvider GetTargetFrameworkProvider(Type type) {
123private static ICustomTypeDescriptor GetTypeDescriptor(Type type) {
148private static Type GetReflectionType(Type type) {
159private static Type[] GetReflectionTypes(Type[] types) {
167internal static PropertyInfo GetProperty(Type type, string name, BindingFlags bindingAttr,
168Type returnType = null,
169Type[] types = null,
173types = Type.EmptyTypes;
176if (SkipCache || returnType != null || types != Type.EmptyTypes) {
192private static PropertyInfo GetPropertyHelper(Type type, string name, BindingFlags bindingAttr,
193Type returnType, Type[] types, bool throwAmbiguousMatchException) {
198Type typeToUse = GetTypeToUseForCBMBridge(type);
202Type reflectionType = GetReflectionType(type);
203Type reflectionReturnType = GetReflectionType(returnType);
204Type[] reflectionTypes = GetReflectionTypes(types);
224internal static FieldInfo GetField(Type type, string name, BindingFlags bindingAttr) {
241private static FieldInfo GetFieldInfo(Type type, string name, BindingFlags bindingAttr) {
243Type typeToUse = GetTypeToUseForCBMBridge(type);
251Type targetFrameworkType = GetReflectionType(type);
261internal static EventInfo GetEvent(Type type, string name) {
277private static EventInfo GetEventInfo(Type type, string name) {
279Type typeToUse = GetTypeToUseForCBMBridge(type);
287Type targetFrameworkType = GetReflectionType(type);
297internal static PropertyDescriptorCollection GetProperties(Type type) {
312private static PropertyDescriptorCollection GetPropertyDescriptorCollection(Type type) {
342Type type = obj.GetType();
360private static PropertyDescriptorCollection GetFilteredPropertyDescriptorCollection(Type objectType, object instance) {
373Type typeToUse = GetTypeToUseForCBMBridge(objectType);
383internal static EventDescriptorCollection GetEvents(Type type) {
397private static EventDescriptorCollection GetEventDescriptorCollection(Type type) {
415private static EventDescriptorCollection GetFilteredEventDescriptorCollection(Type objectType, object instance) {
428Type typeToUse = GetTypeToUseForCBMBridge(objectType);
438internal static System.ComponentModel.AttributeCollection GetAttributes(Type type) {
448internal static object[] GetCustomAttributes(Type type, Type attributeType, bool inherit) {
449Type targetType = GetReflectionType(type);
456internal static string TypeNameConverter(Type type) {
460Type targetFrameworkType = GetReflectionType(type);
469private static bool IsFrameworkType(Type type) {
485private static PropertyInfo GetMostSpecificProperty(Type type, string name, BindingFlags additionalFlags, Type returnType, Type[] types) {
489Type currentType = type;
510private static Type GetTypeToUseForCBMBridge(Type type) {
514internal static bool HasMethod(Type type, string name, BindingFlags bindingAttr) {
517Type typeToUse = GetTypeToUseForCBMBridge(type);
521Type reflectionType = GetReflectionType(type);
540internal static bool IsSupportedType(Type type) {
UI\TemplateControl.cs (6)
282public static object ReadStringResource(Type t) {
578private MethodInfo GetInstanceMethodInfo(Type delegateType, string methodName) {
640public Control LoadControl(Type t, object[] parameters) {
646private Control LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, object[] parameters) {
910protected object GetLocalResourceObject(string resourceKey, Type objType, string propName) {
930protected object GetGlobalResourceObject(string className, string resourceKey, Type objType, string propName) {
UI\Util.cs (17)
61internal static bool CanConvertToFrom(TypeConverter converter, Type type) {
518internal static void CheckAssignableType(Type baseType, Type type) {
561internal static Type GetNonPrivateFieldType(Type classType, string fieldName) {
575internal static Type GetNonPrivatePropertyType(Type classType, string propName) {
945internal static object GetAndRemoveEnumAttribute(IDictionary directives, Type enumType,
955internal static object GetEnumAttribute(string name, string value, Type enumType) {
959internal static object GetEnumAttribute(string name, string value, Type enumType, bool allowMultiple) {
1223internal static string GetAssemblyPathFromType(Type t) {
1230internal static string GetAssemblySafePathFromType(Type t) {
1235internal static string GetAssemblyQualifiedTypeName(Type t) {
1257internal static bool IsLateBoundComClassicType(Type t) {
1372internal static Type GetTypeFromAssemblies(IEnumerable assemblies, string typeName, bool ignoreCase) {
1376Type type = null;
1379Type t = assembly.GetType(typeName, false /*throwOnError*/, ignoreCase);
UI\WebControls\ObjectDataSourceView.cs (22)
681private object BuildDataObject(Type dataObjectType, IDictionary inputParameters) {
712private static object BuildObjectValue(object value, Type destinationType, string paramName, ParsingCulture parsingCulture) {
715Type innerDestinationType = destinationType;
735Type paramValueType = value.GetType();
750private static object ConvertType(object value, Type type, string paramName, ParsingCulture parsingCulture) {
839Type type = GetType(TypeName);
844Type dataObjectType = TryGetDataObjectType();
917Type type = GetType(TypeName);
922Type dataObjectType = TryGetDataObjectType();
1091Type type = GetType(TypeName);
1200Type type = GetType(TypeName);
1205Type dataObjectType = TryGetDataObjectType();
1341private ObjectDataSourceMethod GetResolvedMethodData(Type type, string methodName, Type dataObjectType, object oldDataObject, object newDataObject, DataSourceOperation operation) {
1456private ObjectDataSourceMethod GetResolvedMethodData(Type type, string methodName, IDictionary allParameters, DataSourceOperation operation) {
1599private Type GetType(string typeName) {
1605Type type = BuildManager.GetType(TypeName, false, true);
1941Type type = GetType(TypeName);
2025private Type TryGetDataObjectType() {
2032Type dataObjectType = BuildManager.GetType(dataObjectTypeName, false, true);
2073internal Type Type;
2077internal ObjectDataSourceMethod(DataSourceOperation operation, Type type, MethodInfo methodInfo, OrderedDictionary parameters) {
UI\WebParts\WebPartManager.cs (32)
1338Type transformerType = transformer.GetType();
1350Type transformerConsumerType = WebPartTransformerAttribute.GetConsumerType(transformerType);
1351Type transformerProviderType = WebPartTransformerAttribute.GetProviderType(transformerType);
1736Type childControlType = childControl.GetType();
1759foreach (Type type in transformers.Values) {
1768private static ICollection[] CreateConnectionPoints(Type type) {
1782Type parameterType = null;
1791Type connectionPointType = attribute.ConnectionPointType;
1816Type returnType = method.ReturnType;
1821Type connectionPointType = attribute.ConnectionPointType;
1931protected virtual string CreateDynamicWebPartID(Type webPartType) {
2205private static void ExportProperty(XmlWriter writer, string name, string value, Type type,
2265Type valType = ((pi != null) ? pi.PropertyType : ((val != null) ? val.GetType() : typeof(object)));
2313private static ICollection[] GetConnectionPoints(Type type) {
2355private static ConsumerConnectionPointCollection GetConsumerConnectionPoints(Type type) {
2428private static Type GetExportType(string name) {
2465private static string GetExportName(Type type) {
2564private static ProviderConnectionPointCollection GetProviderConnectionPoints(Type type) {
2740Type partType;
3026Type type = null;
3058Type converterType = WebPartUtil.DeserializeType(attr.ConverterTypeName, false);
3173public virtual bool IsAuthorized(Type type, string path, string authorizationFilter, bool isShared) {
3217Type childType = null;
3326Type type = dynamicConnectionState[i + 5] as Type;
3348Type type = WebPartUtil.DeserializeType(typeName, false);
4219private bool ShouldExportProperty(PropertyInfo propertyInfo, Type propertyValueType,
4237Type converterType = WebPartUtil.DeserializeType(attr.ConverterTypeName, false);
4316Type type = control.GetType();
4318Type loadedType = WebPartUtil.DeserializeType(typeName, /* throwOnError */ false);
4513private Type _type;
4517public ConnectionPointKey(Type type, CultureInfo culture, CultureInfo uiCulture) {
Util\SmtpMail.cs (7)
47private Type _type;
53private Type LateBoundType {
57_type = Type.GetTypeFromProgID(_progId);
87private static Object CallMethod(Type type, Object obj, String methodName, Object[] args) {
111private static Object GetProp(Type type, Object obj, String propName) {
128private static void SetProp(Type type, Object obj, String propName, Object propValue) {
147private static void SetProp(Type type, Object obj, String propName, Object propKey, Object propValue) {
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) {
winforms\Managed\System\Resources\ResXDataNode.cs (24)
80private Func<Type, string> typeNameConverter;
121public ResXDataNode(string name, object value, Func<Type, string> typeNameConverter) {
131Type valueType = (value == null) ? typeof(object) : value.GetType();
154public ResXDataNode(string name, ResXFileRef fileRef, Func<Type, string> typeNameConverter) {
180Type nodeType = null;
377Type valueType = (value == null) ? typeof(object) : value.GetType();
482Type type = ResolveType(typeName, typeResolver);
506Type type = ResolveType(typeName, typeResolver);
606Type objectType = null;
675Type objectType = ResolveType(FileRefType , typeResolver);
733private Type ResolveType(string typeName, ITypeResolutionService typeResolver) {
734Type t = null;
760t = Type.GetType(typeName, false);
820private Func<Type, string> typeNameConverter;
826internal ResXSerializationBinder(Func<Type, string> typeNameConverter) {
830public override Type BindToType(string assemblyName, string typeName) {
837Type t = typeResolver.GetType(typeName);
865public override void BindToName(Type serializedType, out string assemblyName, out string typeName) {
973public Type GetType(string name) {
977public Type GetType(string name, bool throwOnError) {
981public Type GetType(string name, bool throwOnError, bool ignoreCase) {
982Type result = null;
990result = cachedTypes[name] as Type;
996result = Type.GetType(name, false, ignoreCase);
winforms\Managed\System\WinForms\AccessibleObject.cs (8)
2486MethodInfo IReflect.GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers) {
2541PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
2630Type IReflect.UnderlyingSystemType {
3275MethodInfo IReflect.GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers) {
3299PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
3320Type IReflect.UnderlyingSystemType {
winforms\Managed\System\WinForms\AxHost.cs (21)
2785Object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
3703public ConnectionPointCookie(object source, object sink, Type eventInterface)
3707internal ConnectionPointCookie(object source, object sink, Type eventInterface, bool throwException) {
3996MethodInfo IReflect.GetMethod(String name,BindingFlags bindingAttr,Binder binder, Type[] types,ParameterModifier[] modifiers) {
4020PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
4048Type IReflect.UnderlyingSystemType {
5282MethodInfo IReflect.GetMethod(String name,BindingFlags bindingAttr,Binder binder, Type[] types,ParameterModifier[] modifiers) {
5306PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) {
5335Type IReflect.UnderlyingSystemType {
6361MethodInfo IReflect.GetMethod(String name,BindingFlags bindingAttr,Binder binder, Type[] types,ParameterModifier[] modifiers) {
6389PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder,Type returnType, Type[] types, ParameterModifier[] modifiers) {
6461Type IReflect.UnderlyingSystemType {
6488public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
6502public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
6533public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
7010public override Type ComponentType {
7043public override Type PropertyType {
7063public override object GetEditor(Type editorBaseType) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (19)
46private Type propertyType;
175public Com2PropertyDescriptor(int dispid, string name, Attribute[] attrs, bool readOnly, Type propType, Object typeData, bool hrHidden)
198valueConverter = CreateOleTypeConverter((Type)oleConverters[(Guid)typeData]);
367public override Type ComponentType {
507public override Type PropertyType {
705private Com2DataTypeToManagedDataTypeConverter CreateOleTypeConverter(Type t) {
711ConstructorInfo ctor = t.GetConstructor(new Type[]{typeof(Com2PropertyDescriptor)});
743Type converterType = Type.GetType(converterTypeName);
777private Object GetBaseTypeEditor(Type editorBaseType) {
789Type attrEditorBaseType = Type.GetType(editorTypeName);
791Type type = Type.GetType(attr.EditorTypeName);
830public override Object GetEditor(Type editorBaseType) {
950public void GetTypeConverterAndTypeEditor(ref TypeConverter typeConverter, Type editorBaseType, ref Object typeEditor) {
968Type editorType = PropertyType;
1001Type localConverterType = localConverter.GetType();
1368public override Object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) {
winforms\Managed\System\WinForms\Control.cs (14)
17239Type[] convertTypes = new Type[] {
17244foreach (Type t in convertTypes) {
17684Type eventInterface = GetDefaultEventsInterface(control.GetType());
17723public static bool AdviseConnectionPoint(object connectionPoint, object sink, Type eventInterface, out int cookie) {
17742internal static bool AdviseConnectionPoint(ComConnectionPointContainer cpc, object sink, Type eventInterface, out int cookie) {
17897public ComConnectionPoint FindConnectionPoint(Type eventInterface) {
17963private static Type GetDefaultEventsInterface(Type controlType) {
17965Type eventInterface = null;
17973eventInterface = Type.GetType(eventName, false);
18149null, new Type[0], new ParameterModifier[0]);
18224null, new Type[0], new ParameterModifier[0]);
18858public Object GetService(Type service) {
winforms\Managed\System\WinForms\DataGridViewCellFormattingEventArgs.cs (1)
24Type desiredType,
winforms\Managed\System\WinForms\Formatter.cs (23)
18static private Type stringType = typeof(String);
19static private Type booleanType = typeof(bool);
20static private Type checkStateType = typeof(CheckState);
36Type targetType,
58Type oldTargetType = targetType;
90Type targetType,
134Type sourceType = value.GetType();
209Type targetType,
210Type sourceType,
220Type oldTargetType = targetType;
258Type targetType,
259Type sourceType,
350private static object ChangeType(object value, Type type, IFormatProvider formatInfo) {
386private static string GetCantConvertMessage(object value, Type targetType) {
406public static object InvokeStringParseMethod(object value, Type targetType, IFormatProvider formatInfo) {
413new Type[] {stringType, typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider)},
422new Type[] {stringType, typeof(System.IFormatProvider)},
431new Type[] {stringType},
456public static object NullData(Type type, object dataSourceNullValue) {
482private static Type NullableUnwrap(Type type) {
487Type underlyingType = Nullable.GetUnderlyingType(type);
499public static object GetDefaultDataSourceNullValue(Type type) {
winforms\Managed\System\WinForms\ListBindingConverter.cs (8)
23private static Type[] ctorTypes = null; // the list of type of our ctor parameters.
29private static Type[] ConstructorParamaterTypes {
32ctorTypes = new Type[]{typeof(string), typeof(object), typeof(string), typeof(bool), typeof(DataSourceUpdateMode), typeof(object), typeof(string), typeof(IFormatProvider)};
57public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
72public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
150Type[] ctorParams = new Type[lastItem + 1];
159ctor = typeof(Binding).GetConstructor(new Type[] {
winforms\Managed\System\WinForms\ListItemConverter.cs (15)
36public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
51public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
65ctor = typeof(ListViewItem).GetConstructor(new Type[] { typeof(ListViewItem.ListViewSubItem[]), typeof(string)});
75ctor = typeof(ListViewItem).GetConstructor(new Type[] { typeof(ListViewItem.ListViewSubItem[]), typeof(int)});
99ctor = typeof(ListViewItem).GetConstructor(new Type[] {
115ctor = typeof(ListViewItem).GetConstructor(new Type[] {
136ctor = typeof(ListViewItem).GetConstructor(new Type[] {typeof(string)});
146ctor = typeof(ListViewItem).GetConstructor(new Type[] {
153ctor = typeof(ListViewItem).GetConstructor(new Type[] {
165ctor = typeof(ListViewItem).GetConstructor(new Type[] {
172ctor = typeof(ListViewItem).GetConstructor(new Type[] {
187public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
194public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
206ctor = typeof(ListViewItem.ListViewSubItem).GetConstructor(new Type[] {
224ctor = typeof(ListViewItem.ListViewSubItem).GetConstructor(new Type[] {typeof(ListViewItem), typeof(string)});
winforms\Managed\System\WinForms\Padding.cs (5)
283public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
291public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
342public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
372typeof(Padding).GetConstructor(new Type[] {typeof(int)}),
377typeof(Padding).GetConstructor(new Type[] {typeof(int), typeof(int), typeof(int), typeof(int)}),