7 types derived from Type
mscorlib (1)
system\reflection\typeinfo.cs (1)
29public abstract class TypeInfo:Type,IReflectableType
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1044private class MetadataType : Type
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1044private class MetadataType : Type
System.Web (1)
Compilation\DelayLoadType.cs (1)
11internal class DelayLoadType : Type {
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
14internal sealed class DesignTimeType : Type, ICloneable
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
13internal sealed class RTTypeWrapper : Type, ICloneable
System.WorkflowServices (1)
System\Workflow\Activities\ContractType.cs (1)
16internal sealed class ContractType : Type, ICloneable
22743 references to Type
ComSvcConfig (18)
ComplusTypeValidator.cs (15)
35Type typeOfInterfaceResolver = typeof(Message).Assembly.GetType("System.ServiceModel.ComIntegration.TypeCacheManager"); 54foreach (Type t in asm.GetTypes()) 58Type baseType = t.BaseType; 92Type typeOfInterfaceResolver = typeof(Message).Assembly.GetType("System.ServiceModel.ComIntegration.TypeCacheManager"); 96Type typeOfInterface = null; 99typeOfInterface = typeOfInterfaceResolver.InvokeMember("VerifyType", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, resolver, args, CultureInfo.InvariantCulture) as Type; 134Type typeOfParam = parameter.ParameterType; 168Type typeOfInterfaceResolver = typeof(Message).Assembly.GetType("System.ServiceModel.ComIntegration.TypeCacheManager"); 172Type typeOfInterface = null; 175typeOfInterface = typeOfInterfaceResolver.InvokeMember("VerifyType", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, resolver, args, CultureInfo.InvariantCulture) as Type; 218Type typeOfInterfaceResolver = typeof(Message).Assembly.GetType("System.ServiceModel.ComIntegration.TypeCacheManager"); 222Type typeOfInterface = null; 225typeOfInterface = typeOfInterfaceResolver.InvokeMember("VerifyType", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, resolver, args, CultureInfo.InvariantCulture) as Type; 260Type typeOfParam = parameter.ParameterType; 313public static bool IsValidParameter(Type type, ICustomAttributeProvider attributeProvider, bool allowReferences, out string typeMismatchDetails)
SvcFileManager.cs (3)
216Type serviceParser = typeof(ServiceHostFactory).Assembly.GetType("System.ServiceModel.Activation.ServiceParser"); 269Type factoryType = typeof(WasHostedComPlusFactory); 270Type compiledType = factoryType.Assembly.GetType(dictionary[factoryAttributeName], false);
Microsoft.Activities.Build (7)
Microsoft\Activities\Build\BeforeInitializeComponentExtension.cs (1)
188bool IsAssignableTo(XamlType type, Type assignableTo)
Microsoft\Activities\Build\Expressions\ExpressionsBuildExtension.cs (1)
104foreach (Type type in Utilities.GetTypes(localAssembly))
Microsoft\Activities\Build\Utilities.cs (4)
21internal static Activity CreateActivity(Type type, out Exception ctorException) 29ConstructorInfo defaultConstructor = type.GetConstructor(Type.EmptyTypes); 77internal static Type[] GetTypes(Assembly assembly) 97internal static bool IsTypeAuthoredInXaml(Type type)
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (1)
77foreach (Type type in Utilities.GetTypes(localAssembly))
mscorlib (2760)
microsoft\win32\oavariantlib.cs (3)
37internal static readonly Type [] ClassTypes = { 79internal static Variant ChangeType(Variant source, Type targetClass, short options, CultureInfo culture) 102private static int GetCVTypeFromClass(Type ctype)
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\appdomain.cs (2)
2160internal EvidenceBase GetHostEvidence(Type type) 4867public new Type GetType()
system\argiterator.cs (1)
129return new RuntimeTypeHandle(Type.GetTypeFromHandleUnsafe((IntPtr)_GetNextArgType()));
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\boolean.cs (1)
306Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\byte.cs (1)
259Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\char.cs (1)
504Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\collections\arraylist.cs (6)
770public virtual Array ToArray(Type type) { 1128public override Array ToArray(Type type) 1472public override Array ToArray(Type type) { 1836public override Array ToArray(Type type) { 2090public override Array ToArray(Type type) { 2525public override Array ToArray(Type type) {
system\Collections\Concurrent\ConcurrentDictionary.cs (2)
138Type valueType = typeof(TValue); 150switch (Type.GetTypeCode(valueType))
system\collections\generic\arraysorthelper.cs (2)
117defaultArraySortHelper = (IArraySortHelper<T>)RuntimeTypeHandle.Allocate(typeof(GenericArraySortHelper<string>).TypeHandle.Instantiate(new Type[] { typeof(T) })); 895defaultArraySortHelper = (IArraySortHelper<TKey, TValue>)RuntimeTypeHandle.Allocate(typeof(GenericArraySortHelper<string, string>).TypeHandle.Instantiate(new Type[] { typeof(TKey), typeof(TValue) }));
system\collections\generic\equalitycomparer.cs (2)
62TypeCode underlyingTypeCode = Type.GetTypeCode(Enum.GetUnderlyingType(t)); 407if (Type.GetTypeCode(Enum.GetUnderlyingType(typeof(T))) != TypeCode.Int32) {
system\collections\objectmodel\collection.cs (2)
206Type targetType = array.GetType().GetElementType(); 207Type sourceType = typeof(T);
system\collections\objectmodel\readonlycollection.cs (2)
151Type targetType = array.GetType().GetElementType(); 152Type sourceType = typeof(T);
system\collections\objectmodel\readonlydictionary.cs (2)
598Type targetType = array.GetType().GetElementType(); 599Type sourceType = typeof(T);
system\convert.cs (3)
261internal static Object DefaultToType(IConvertible value, Type targetType, IFormatProvider provider) { 321public static Object ChangeType(Object value, Type conversionType) { 325public static Object ChangeType(Object value, Type conversionType, IFormatProvider provider) {
system\datetime.cs (1)
1649Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\dbnull.cs (1)
118Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\decimal.cs (1)
1272Object IConvertible.ToType(Type type, IFormatProvider provider) {
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\delegateserializationholder.cs (2)
23SerializationInfo info, Type delegateType, Object target, MethodInfo method, int targetIndex) 34Type c = delegateType.BaseType;
system\deployment\isolationinterop.cs (2)
2511System.Type t = o.GetType(); 2980internal static Guid GetGuidOfType(Type type)
system\diagnostics\contracts\contracts.cs (6)
70private Type _typeWithContracts; 72public ContractClassAttribute(Type typeContainingContracts) 77public Type TypeContainingContracts { 89private Type _typeIAmAContractFor; 91public ContractClassForAttribute(Type typeContractsAreFor) 96public Type TypeContractsAreFor {
system\diagnostics\debuggerattributes.cs (12)
166private Type target; 168public DebuggerTypeProxyAttribute(Type type) 187public Type Target 227private Type target; 258public Type Target 293private Type target; 304public DebuggerVisualizerAttribute(string visualizerTypeName, Type visualizerObjectSource) 313public DebuggerVisualizerAttribute(Type visualizer) 321public DebuggerVisualizerAttribute(Type visualizer, Type visualizerObjectSource) 333public DebuggerVisualizerAttribute(Type visualizer, string visualizerObjectSourceTypeName) 357public Type Target
system\diagnostics\eventing\eventprovider.cs (1)
841Type underlyingType = Enum.GetUnderlyingType(data.GetType());
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\diagnostics\eventing\StubEnvironment.cs (8)
203public static bool IsEnum(this Type type) { return type.IsEnum; } 204public static bool IsAbstract(this Type type) { return type.IsAbstract; } 205public static bool IsSealed(this Type type) { return type.IsSealed; } 206public static Type BaseType(this Type type) { return type.BaseType; } 207public static Assembly Assembly(this Type type) { return type.Assembly; } 208public static TypeCode GetTypeCode(this Type type) { return Type.GetTypeCode(type); }
System\Diagnostics\Eventing\TraceLogging\PropertyAccessor.cs (1)
29var retType = property.getterInfo.ReturnType;
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (2)
980public KeyValuePairTypeInfo(List<Type> recursionCheck) 1026public NullableTypeInfo(List<Type> recursionCheck)
System\Diagnostics\Eventing\TraceLogging\Statics.cs (23)
359public static object CreateInstance(Type type, params object[] parameters) 364public static bool IsValueType(Type type) 375public static bool IsEnum(Type type) 386public static IEnumerable<PropertyInfo> GetProperties(Type type) 408public static MethodInfo GetDeclaredStaticMethod(Type declaringType, string name) 423Type attributeType) 457public static AttributeType GetCustomAttribute<AttributeType>(Type type) 477public static Type[] GetGenericArguments(Type type) 486public static Type FindEnumerableElementType(Type type) 488Type elementType = null; 502foreach (var ifaceType in ifaceTypes) 525public static bool IsGenericMatch(Type type, object openType) 533return isGeneric && type.GetGenericTypeDefinition() == (Type)openType; 536public static Delegate CreateDelegate(Type delegateType, MethodInfo methodInfo) 550public static TraceLoggingTypeInfo GetTypeInfoInstance(Type dataType, List<Type> recursionCheck) 579List<Type> recursionCheck) 582var dataType = typeof(DataType); 600var elementType = dataType.GetElementType(); 670var underlyingType = Enum.GetUnderlyingType(dataType); 809var elementType = FindEnumerableElementType(dataType);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventTypes.cs (4)
53params Type[] types) 216var recursionCheck = new List<Type>(paramInfos.Length); 226private static TraceLoggingTypeInfo[] MakeArray(Type[] types) 235var recursionCheck = new List<Type>(types.Length);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingTypeInfo.cs (4)
27private readonly Type dataType; 29internal TraceLoggingTypeInfo(Type dataType) 43Type dataType, 118internal Type DataType
System\Diagnostics\Eventing\TraceLogging\TraceLoggingTypeInfo_T.cs (2)
140internal static TraceLoggingTypeInfo<DataType> GetInstance(List<Type> recursionCheck) 155return GetInstance(new List<Type>());
System\Diagnostics\Eventing\TraceLogging\TypeAnalysis.cs (3)
25Type dataType, 27List<Type> recursionCheck) 56var propertyType = propertyInfo.PropertyType;
system\diagnostics\stackframe.cs (1)
258Type[] typars = ((MethodInfo)method).GetGenericArguments();
system\diagnostics\stacktrace.cs (7)
140Type symbolsType = Type.GetType( 150new Type[] { typeof(string), 167new Type[] { typeof(string), 499Type t = mb.DeclaringType; 666Type t = mb.DeclaringType; 678Type[] typars = ((MethodInfo)mb).GetGenericArguments();
system\double.cs (1)
373Object IConvertible.ToType(Type type, IFormatProvider provider) {
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\exception.cs (3)
483Type t = rci.ReflectedType; 499Type t = rmi.DeclaringType; 944public new Type GetType()
system\globalization\cultureinfo.cs (1)
1365public virtual Object GetFormat(Type formatType) {
system\globalization\datetimeformatinfo.cs (1)
556public Object GetFormat(Type formatType)
system\globalization\numberformatinfo.cs (1)
794public Object GetFormat(Type formatType) {
system\iappdomain.cs (1)
59Type GetType ();
system\iconvertible.cs (1)
68Object ToType(Type conversionType, IFormatProvider provider);
system\iformatprovider.cs (1)
23Object GetFormat(Type formatType);
system\int16.cs (1)
272Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\int32.cs (1)
245Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\int64.cs (1)
224Object IConvertible.ToType(Type type, IFormatProvider provider) {
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\io\isolatedstorage\isolatedstoragefile.cs (5)
163Type domainEvidenceType, Type assemblyEvidenceType) 209Evidence domainEvidence, Type domainEvidenceType, 210Evidence assemblyEvidence, Type assemblyEvidenceType) 234Type applicationEvidenceType)
system\iserviceobjectprovider.cs (1)
15Object GetService(Type serviceType);
system\marshalbyrefobject.cs (4)
72internal bool IsInstanceOfType(Type T) 83Type t = GetType(); 186public virtual ObjRef CreateObjRef(Type requestedType) 202Type castType = SoapServices.GetInteropTypeFromXmlType(xmlTypeName, xmlTypeNamespace);
system\multicastdelegate.cs (1)
38protected MulticastDelegate(Type target, String method) : base(target, method)
system\nullable.cs (4)
132public static Type GetUnderlyingType(Type nullableType) { 137Type result = null; 140Type genericType = nullableType.GetGenericTypeDefinition();
system\object.cs (2)
105public extern Type GetType(); 184Type t = GetType();
system\oleautbinder.cs (2)
25public override Object ChangeType(Object value, Type type, CultureInfo cultureInfo) 53Type srcType = value.GetType();
system\reflection\__filters.cs (2)
31public virtual bool FilterTypeName(Type cls,Object filterCriteria) 51public virtual bool FilterTypeNameIgnoreCase(Type cls, Object filterCriteria)
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\binder.cs (4)
41Type[] types,ParameterModifier[] modifiers); 46Type returnType,Type[] indexes,ParameterModifier[] modifiers); 51public abstract Object ChangeType(Object value,Type type,CultureInfo culture);
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\ConstructorInfo.cs (10)
82internal virtual Type GetReturnType() { throw new NotImplementedException(); } 111Type _ConstructorInfo.GetType() 219Type declaringType = DeclaringType; 401public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 416public override bool IsDefined(Type attributeType, bool inherit) 446public override Type DeclaringType 454public override Type ReflectedType 480internal override Type GetReturnType() { return Signature.ReturnType; } 513Type declaringType = DeclaringType; 536internal static void CheckCanCreateInstance(Type declaringType, bool isVarArg)
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\aqnbuilder.cs (9)
103internal static string ToString(Type type, Format format) 132private void AddElementType(Type elementType) 151private void ConstructAssemblyQualifiedNameWorker(Type type, Format format) 153Type rootType = type; 159List<Type> nestings = new List<Type>(); 160for (Type t = rootType; t != null; t = t.IsGenericParameter ? null : t.DeclaringType) 165Type enclosingType = nestings[i]; 177Type[] genericArguments = rootType.GetGenericArguments();
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\assemblybuilderdata.cs (6)
146Type conType = m_CABuilders[i].m_con.DeclaringType; 420internal void AddPublicComType(Type type) 456m_publicComTypeList = new Type[m_iInitialSize]; 460Type[] tempTypeList = new Type[m_iPublicComTypeCount * 2]; 472internal Type[] m_publicComTypeList;
system\reflection\emit\constructorbuilder.cs (11)
38Type[] parameterTypes, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers, ModuleBuilder mod, TypeBuilder type) 56Type[] parameterTypes, ModuleBuilder mod, TypeBuilder type) : 64internal override Type[] GetParameterTypes() 99public override Type ReflectedType 104public override Type DeclaringType 160public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 165public override bool IsDefined (Type attributeType, bool inherit) 271public Type ReturnType 277internal override Type GetReturnType()
system\reflection\emit\customattributebuilder.cs (24)
73private bool ValidateType(Type t) 75if (t.IsPrimitive || t == typeof(String) || t == typeof(Type)) 79switch (Type.GetTypeCode(Enum.GetUnderlyingType(t))) 137Type[] paramTypes; 157TypeCode paramTC = Type.GetTypeCode(paramTypes[i]); 158if (paramTC != Type.GetTypeCode(constructorArgs[i].GetType())) 185Type propType = namedProperties[i].PropertyType; 221Type.GetTypeCode(propertyValues[i].GetType()) != Type.GetTypeCode(propType)) 241Type fldType = namedFields[i].FieldType; 273Type.GetTypeCode(fieldValues[i].GetType()) != Type.GetTypeCode(fldType)) 289private void EmitType(BinaryWriter writer, Type type) 293switch (Type.GetTypeCode(type)) 345else if (type == typeof(Type)) 385private void EmitValue(BinaryWriter writer, Type type, Object value) 389switch (Type.GetTypeCode(Enum.GetUnderlyingType(type))) 427else if (type == typeof(Type)) 433String typeName = TypeNameBuilder.ToString((Type)value, TypeNameBuilder.Format.AssemblyQualifiedName); 447Type et = type.GetElementType(); 455switch (Type.GetTypeCode(type)) 504Type ot = value == null ? typeof(String) : value is Type ? typeof(Type) : value.GetType();
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\fieldbuilder.cs (9)
30private Type m_fieldType; 35internal FieldBuilder(TypeBuilder typeBuilder, String fieldName, Type type, 36Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, FieldAttributes attributes) 99public override Type DeclaringType 110public override Type ReflectedType 124public override Type FieldType 166public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 172public override bool IsDefined(Type attributeType, bool inherit)
system\reflection\emit\fieldtoken.cs (1)
46internal FieldToken (int field, Type fieldClass) {
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\localbuilder.cs (4)
21private Type m_localType; 28internal LocalBuilder(int localIndex, Type localType, MethodInfo methodBuilder) 30internal LocalBuilder(int localIndex, Type localType, MethodInfo methodBuilder, bool isPinned) 52public override Type LocalType
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\methodbuilderinstantiation.cs (12)
20internal static MethodInfo MakeGenericMethod(MethodInfo method, Type[] inst) 33private Type[] m_inst; 37internal MethodBuilderInstantiation(MethodInfo method, Type[] inst) 44internal override Type[] GetParameterTypes() 52public override Type DeclaringType { get { return m_method.DeclaringType; } } 53public override Type ReflectedType { get { return m_method.ReflectedType; } } 55public override Object[] GetCustomAttributes(Type attributeType, bool inherit) { return m_method.GetCustomAttributes(attributeType, inherit); } 56public override bool IsDefined(Type attributeType, bool inherit) { return m_method.IsDefined(attributeType, inherit); } 58public new Type GetType() { return base.GetType(); } 72public override Type[] GetGenericArguments() { return m_inst; } 92public override MethodInfo MakeGenericMethod(params Type[] arguments) 102public override Type ReturnType
system\reflection\emit\methodrental.cs (1)
49Type cls, // [in] class containing the method
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\propertybuilder.cs (7)
47Type returnType, // return type of the property. 231public override Type PropertyType { 251public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 256public override bool IsDefined (Type attributeType, bool inherit) 287public override Type DeclaringType { 291public override Type ReflectedType { 302private Type m_returnType; // property's return type
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\symbolmethod.cs (15)
21private Type m_containingType; 24private Type m_returnType; 26private Type[] m_parameterTypes; 32internal SymbolMethod(ModuleBuilder mod, MethodToken token, Type arrayClass, String methodName, 33CallingConventions callingConvention, Type returnType, Type[] parameterTypes) 48m_parameterTypes = new Type[parameterTypes.Length]; 53m_parameterTypes = EmptyArray<Type>.Value; 67internal override Type[] GetParameterTypes() 85public override Type ReflectedType 87get { return m_containingType as Type; } 95public override Type DeclaringType 131public override Type ReturnType 161public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 166public override bool IsDefined(Type attributeType, bool inherit)
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\eventinfo.cs (10)
159public virtual Type EventHandlerType 167Type del = typeof(Delegate); 171Type c = p[i].ParameterType; 191Type cl = EventHandlerType; 192Type mc = typeof(MulticastDelegate); 199Type _EventInfo.GetType() 309public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 324public override bool IsDefined(Type attributeType, bool inherit) 357public override Type DeclaringType { get { return m_declaringType; } } 358public override Type ReflectedType
system\reflection\fieldinfo.cs (21)
45Type declaringType = f.DeclaringType; 104public virtual Type[] GetRequiredCustomModifiers() 109public virtual Type[] GetOptionalCustomModifiers() 128public abstract Type FieldType { get; } 150SetValue(obj, value, BindingFlags.Default, Type.DefaultBinder, null); 195Type _FieldInfo.GetType() 297public override Type ReflectedType 305public override Type DeclaringType 332public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 347public override bool IsDefined(Type attributeType, bool inherit) 436Type declaringType = DeclaringType; 469Type fieldType = FieldType; 787Type declaringType = DeclaringType; 807public override Type FieldType 820public override Type[] GetRequiredCustomModifiers() 826public override Type[] GetOptionalCustomModifiers() 938public override Type FieldType 955public override Type[] GetRequiredCustomModifiers() 957return EmptyArray<Type>.Value; 960public override Type[] GetOptionalCustomModifiers() 962return EmptyArray<Type>.Value;
system\reflection\icustomattributeprovider.cs (2)
27Object[] GetCustomAttributes(Type attributeType, bool inherit); 35bool IsDefined (Type attributeType, bool inherit);
system\reflection\interfacemapping.cs (2)
23public Type TargetType; // The type implementing the interface 25public Type InterfaceType; // The type representing the interface
system\reflection\introspectionextensions.cs (1)
24 public static TypeInfo GetTypeInfo(this Type type){
system\reflection\ireflect.cs (4)
34Type[] types,ParameterModifier[] modifiers); 66Type returnType, 67Type[] types, 117Type UnderlyingSystemType {
system\reflection\memberinfo.cs (10)
43public abstract Type DeclaringType { get; } 45public abstract Type ReflectedType { get; } 56public abstract Object[] GetCustomAttributes(Type attributeType, bool inherit); 58public abstract bool IsDefined(Type attributeType, bool inherit); 71if (this is Type) 72return ((Type)this).Module; 91Type type1, type2; 97if ((type1 = left as Type) != null && (type2 = right as Type) != null) 129Type _MemberInfo.GetType()
system\reflection\memberinfoserializationholder.cs (5)
33Type[] genericArguments) 49info.AddValue("GenericArguments", genericArguments, typeof(Type[])); 207Type[] genericArguments = m_info.GetValueNoThrow("GenericArguments", typeof(Type[])) as Type[];
system\reflection\methodbase.cs (9)
69Type declaringType = m.DeclaringType; 184public virtual Type[] GetGenericArguments() { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 264internal static string ConstructParameters(Type[] parameterTypes, CallingConventions callingConvention, bool serialization) 271Type t = parameterTypes[i]; 326internal virtual Type[] GetParameterTypes() 330Type[] parameterTypes = new Type[paramInfo.Length]; 350if (arg == Type.Missing) 367Type _MethodBase.GetType() { return base.GetType(); }
system\reflection\methodbody.cs (4)
64public virtual Type CatchType 71Type type = null; 75Type declaringType = m_methodBody.m_methodBase.DeclaringType; 165public virtual Type LocalType { get { Contract.Assert(m_type != null, "type must be set!"); return m_type; } }
system\reflection\methodinfo.cs (29)
79public virtual Type ReturnType { get { throw new NotImplementedException(); } } 88public override Type[] GetGenericArguments() { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 93public virtual MethodInfo MakeGenericMethod(params Type[] typeArguments) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 95public virtual Delegate CreateDelegate(Type delegateType) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 96public virtual Delegate CreateDelegate(Type delegateType, Object target) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SubclassOverride")); } 100Type _MethodInfo.GetType() 166foreach (Type t in GetGenericArguments()) 194Type declaringType = DeclaringType; 222Type[] genericArguments = GetGenericArguments(); 454Type[] lhs = GetGenericArguments(); 455Type[] rhs = mi.GetGenericArguments(); 484public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 498public override bool IsDefined(Type attributeType, bool inherit) 531public override Type DeclaringType 542public override Type ReflectedType 620Type declaringType = DeclaringType; 672Type declaringType = DeclaringType; 804public override Type ReturnType 853public override Delegate CreateDelegate(Type delegateType) 873public override Delegate CreateDelegate(Type delegateType, Object target) 890private Delegate CreateDelegateInternal(Type delegateType, Object firstArgument, DelegateBindingFlags bindingFlags, ref StackCrawlMark stackMark) 917public override MethodInfo MakeGenericMethod(params Type[] methodInstantiation) 931Type methodInstantiationElem = methodInstantiation[i]; 940Type[] methodInstantiationCopy = new Type[methodInstantiation.Length]; 975public override Type[] GetGenericArguments() 977Type[] types = RuntimeMethodHandle.GetMethodInstantiationPublic(this); 981types = EmptyArray<Type>.Value; 1015Type[] pis = GetGenericArguments();
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\parameterinfo.cs (18)
32protected Type ClassImpl; 75public virtual Type ParameterType 130public virtual Type[] GetRequiredCustomModifiers() 132return EmptyArray<Type>.Value; 135public virtual Type[] GetOptionalCustomModifiers() 137return EmptyArray<Type>.Value; 161public virtual Object[] GetCustomAttributes(Type attributeType, bool inherit) 170public virtual bool IsDefined(Type attributeType, bool inherit) 371private static readonly Type s_DecimalConstantAttributeType = typeof(DecimalConstantAttribute); 372private static readonly Type s_CustomConstantAttributeType = typeof(CustomConstantAttribute); 492internal RuntimeParameterInfo(MethodInfo owner, String name, Type parameterType, int position) 507public override Type ParameterType 591defaultValue = Type.Missing; 651Type attrType = attr.Constructor.DeclaringType; 716public override Type[] GetRequiredCustomModifiers() 721public override Type[] GetOptionalCustomModifiers() 737public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 755public override bool IsDefined(Type attributeType, bool inherit)
system\reflection\pointer.cs (1)
43public static unsafe Object Box(void *ptr,Type type) {
system\reflection\propertyinfo.cs (13)
82public abstract Type PropertyType { get; } 132public virtual Type[] GetRequiredCustomModifiers() { return EmptyArray<Type>.Value; } 134public virtual Type[] GetOptionalCustomModifiers() { return EmptyArray<Type>.Value; } 162Type _PropertyInfo.GetType() 378public override Object[] GetCustomAttributes(Type attributeType, bool inherit) 393public override bool IsDefined(Type attributeType, bool inherit) 426public override Type DeclaringType 434public override Type ReflectedType 460public override Type[] GetRequiredCustomModifiers() 465public override Type[] GetOptionalCustomModifiers() 507public override Type PropertyType
system\reflection\reflectiontypeloadexception.cs (7)
29private Type[] _classes; 43public ReflectionTypeLoadException(Type[] classes, Exception[] exceptions) : base(null) 50public ReflectionTypeLoadException(Type[] classes, Exception[] exceptions, String message) : base(message) 58_classes = (Type[])(info.GetValue("Types", typeof(Type[]))); 62public Type[] Types { 77info.AddValue("Types", _classes, typeof(Type[]));
system\reflection\RuntimeReflectionExtensions.cs (11)
10private static void CheckAndThrow(Type t) 22public static IEnumerable<PropertyInfo> GetRuntimeProperties(this Type type) 27public static IEnumerable<EventInfo> GetRuntimeEvents(this Type type) 33public static IEnumerable<MethodInfo> GetRuntimeMethods(this Type type) 39public static IEnumerable<FieldInfo> GetRuntimeFields(this Type type) 45public static PropertyInfo GetRuntimeProperty(this Type type, string name) 50public static EventInfo GetRuntimeEvent(this Type type, string name) 55public static MethodInfo GetRuntimeMethod(this Type type, string name, Type[] parameters) 60public static FieldInfo GetRuntimeField(this Type type, string name) 70public static InterfaceMapping GetRuntimeInterfaceMap(this TypeInfo typeInfo, Type interfaceType)
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\reflection\typefilter.cs (1)
22public delegate bool TypeFilter(Type m, Object filterCriteria);
system\reflection\typeinfo.cs (21)
37public virtual Type AsType(){ 38return (Type)this; 41public virtual Type[] GenericTypeParameters{ 47return Type.EmptyTypes; 72Type[] constraints = GetGenericParameterConstraints(); 87return GetEvent(name, Type.DeclaredOnlyLookup); 91return GetField(name, Type.DeclaredOnlyLookup); 95return GetMethod(name, Type.DeclaredOnlyLookup); 100foreach (MethodInfo method in GetMethods(Type.DeclaredOnlyLookup)) 108var nt=GetNestedType(name, Type.DeclaredOnlyLookup); 117return GetProperty(name, Type.DeclaredOnlyLookup); 130return GetConstructors(Type.DeclaredOnlyLookup); 138return GetEvents(Type.DeclaredOnlyLookup); 146return GetFields(Type.DeclaredOnlyLookup); 154return GetMembers(Type.DeclaredOnlyLookup); 162return GetMethods(Type.DeclaredOnlyLookup); 169foreach (var t in GetNestedTypes(Type.DeclaredOnlyLookup)){ 179return GetProperties(Type.DeclaredOnlyLookup); 184public virtual IEnumerable<Type> ImplementedInterfaces
system\resources\manifestbasedresourcegroveler.cs (7)
185resName = _mediator.LocationInfo.Namespace + Type.Delimiter + defaultResName; 348Type readerType = Type.GetType(readerTypeName, true); 363Type resSetType; 367resSetType = Type.GetType(resSetTypeName, true, false); 468sb.Append(Type.Delimiter); 685resName = _mediator.LocationInfo.Namespace + Type.Delimiter;
system\resources\resourcemanager.cs (13)
194private Type _locationInfo; // For Assembly or type-based directory layout 195private Type _userResourceSet; // Which ResourceSet instance to create 259private static readonly Type _minResourceSet = typeof(ResourceSet); 309private ResourceManager(String baseName, String resourceDir, Type usingResourceSet) { 384public ResourceManager(String baseName, Assembly assembly, Type usingResourceSet) 420public ResourceManager(Type resourceSource) 529outputResName = _locationInfo.Namespace + Type.Delimiter + defaultResName; 555public virtual Type ResourceSetType { 618public static ResourceManager CreateFileBasedResourceManager(String baseName, String resourceDir, Type usingResourceSet) 1016Type WinRTResourceManagerType = Type.GetType("System.Resources.WindowsRuntimeResourceManager, " + AssemblyRef.SystemRuntimeWindowsRuntime, true); 1626internal Type LocationInfo 1631internal Type UserResourceSet
system\resources\resourcereader.cs (4)
1088_typeTable[typeIndex] = (RuntimeType)Type.GetType(typeName, true); 1132RuntimeType resourceType = (RuntimeType)Type.GetType(typeName, false); 1300public override Type BindToType(string assemblyName, string typeName) 1316Type t = ObjectReader.FastBindToType(assemblyName, typeName);
system\resources\resourceset.cs (2)
184public virtual Type GetDefaultReader() 193public virtual Type GetDefaultWriter()
system\resources\resourcewriter.cs (3)
49private Func<Type, String> typeConverter; 52public Func<Type, String> TypeNameConverter 530Type type = value.GetType();
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\compilerservices\AsyncStateMachineAttribute.cs (1)
14public AsyncStateMachineAttribute(Type stateMachineType)
system\runtime\compilerservices\fixedbufferattribute.cs (3)
24private Type elementType; 27public FixedBufferAttribute(Type elementType, int length) 33public Type ElementType {
system\runtime\compilerservices\IteratorStateMachineAttribute.cs (1)
14public IteratorStateMachineAttribute(Type stateMachineType)
system\runtime\compilerservices\requiredattributeattribute.cs (3)
16private Type requiredContract; 18public RequiredAttributeAttribute (Type requiredContract) 22public Type RequiredContract
system\runtime\compilerservices\StateMachineAttribute.cs (2)
14public Type StateMachineType { get; private set; } 16public StateMachineAttribute(Type stateMachineType)
system\runtime\compilerservices\TypeForwardedToAttribute.cs (4)
16private Type _destination; 18public TypeForwardedToAttribute(Type destination) 23public Type Destination 33Type[] types = null;
system\runtime\designerservices\windowsruntimedesignercontext.cs (1)
154public Type GetType(String typeName)
system\runtime\interopservices\attributes.cs (28)
103internal Type _val; 105public ComDefaultInterfaceAttribute(Type defaultInterface) 110public Type Value { get { return _val; } } 156public TypeLibImportClassAttribute(Type importClass) 253public ComSourceInterfacesAttribute(Type sourceInterface) 257public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2) 261public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2, Type sourceInterface3) 265public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2, Type sourceInterface3, Type sourceInterface4) 618public Type SafeArrayUserDefinedSubType; 633public Type MarshalTypeRef; // Type of marshaler class 1015internal Type _CoClass; 1017public CoClassAttribute(Type coClass) 1022public Type CoClass { get { return _CoClass; } } 1029internal Type _SourceInterface; 1030internal Type _EventProvider; 1032public ComEventInterfaceAttribute(Type SourceInterface, Type EventProvider) 1038public Type SourceInterface { get {return _SourceInterface;} } 1039public Type EventProvider { get {return _EventProvider;} } 1125internal Type _classType; 1128public ManagedToNativeComInteropStubAttribute(Type classType, String methodName) 1134public Type ClassType { get { return _classType; } }
system\Runtime\InteropServices\ComEventsMethod.cs (3)
42private Type[] _cachedTargetTypes; 77Type[] enumTypes = new Type[_expectedParamsCount];
system\runtime\interopservices\ComTypes\ireflect.cs (4)
29Type[] types,ParameterModifier[] modifiers); 51Type returnType, 52Type[] types, 75Type UnderlyingSystemType
system\runtime\interopservices\icustomfactory.cs (1)
15MarshalByRefObject CreateInstance(Type serverType);
system\runtime\interopservices\iexception.cs (1)
36Type GetType ();
system\runtime\interopservices\iregistrationservices.cs (5)
43Type[] GetRegistrableTypesInAssembly(Assembly assembly); 46String GetProgIdForType(Type type); 49void RegisterTypeForComClients(Type type, ref Guid g); 54bool TypeRequiresRegistration(Type type); 56bool TypeRepresentsComType(Type type);
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\eventitfinfo.cs (4)
27public Type GetEventItfType() 29Type t = m_asmImport.GetType(m_strEventItfName, true, false); 35public Type GetSrcItfType() 37Type t = m_asmSrcItf.GetType(m_strSrcItfName, true, false);
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\tceadaptergen\tceadaptergenerator.cs (11)
29Type EventItfType = CurrEventItf.GetEventItfType(); 30Type SrcItfType = CurrEventItf.GetSrcItfType(); 34Type SinkHelperType = new EventSinkHelperWriter( m_Module, SrcItfType, EventItfType ).Perform(); 46Type []aConsParams = new Type[1]; 59internal static TypeBuilder DefineUniqueType(String strInitFullName, TypeAttributes attrs, Type BaseType, Type[] aInterfaceTypes, ModuleBuilder mb) 76Type []aConsParams = new Type[1]; 88internal static MethodInfo[] GetNonPropertyMethods(Type type) 114internal static MethodInfo[] GetPropertyMethods(Type type)
system\runtime\interopservices\typelibconverter.cs (10)
262ConstructorInfo securityRulesCtor = typeof(SecurityRulesAttribute).GetConstructor(new Type[] { typeof(SecurityRuleSet) }); 359Type[] aTypes = modBldr.GetTypes(); 370Type []aConsParams = new Type[1] {typeof(String)}; 385Type []aConsParams = new Type[1] {typeof(String)}; 402Type []aConsParams = new Type[2] {typeof(int), typeof(int)}; 449Type []aConsParams = new Type[2] {typeof(int), typeof(int)};
system\runtime\interopservices\ucomireflect.cs (4)
30Type[] types,ParameterModifier[] modifiers); 52Type returnType, 53Type[] types, 76Type UnderlyingSystemType {
system\runtime\interopservices\windowsruntime\attributes.cs (6)
19private Type m_defaultInterface; 21public DefaultInterfaceAttribute(Type defaultInterface) 26public Type DefaultInterface 52public InterfaceImplementedInVersionAttribute(Type interfaceType, byte majorVersion, byte minorVersion, byte buildVersion, byte revisionVersion) 61public Type InterfaceType 86private Type m_interfaceType;
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\clrireferenceimpl.cs (19)
54ICustomProperty ICustomPropertyProvider.GetIndexedProperty(string name, Type indexParameterType) 67Type ICustomPropertyProvider.Type 138ICustomProperty ICustomPropertyProvider.GetIndexedProperty(string name, Type indexParameterType) 151Type ICustomPropertyProvider.Type 286internal static readonly Type s_pointType = Type.GetType("Windows.Foundation.Point, " + AssemblyRef.SystemRuntimeWindowsRuntime); 287internal static readonly Type s_rectType = Type.GetType("Windows.Foundation.Rect, " + AssemblyRef.SystemRuntimeWindowsRuntime); 288internal static readonly Type s_sizeType = Type.GetType("Windows.Foundation.Size, " + AssemblyRef.SystemRuntimeWindowsRuntime); 296Type type = obj.GetType(); 335return new CLRIReferenceImpl<Type>(PropertyType.Other, (Type)obj); 359Type specificType = typeof(CLRIReferenceImpl<>).MakeGenericType(type); 374Type type = obj.GetType().GetElementType(); 408if (type == typeof(Type)) 410return new CLRIReferenceArrayImpl<Type>(PropertyType.OtherArray, (Type[])obj); 454Type specificType = typeof(CLRIReferenceArrayImpl<>).MakeGenericType(type);
system\runtime\interopservices\windowsruntime\custompropertyimpl.cs (1)
132public Type Type
system\runtime\interopservices\windowsruntime\icustomproperty.cs (1)
19Type Type
system\runtime\interopservices\windowsruntime\icustompropertyprovider.cs (7)
30ICustomProperty GetIndexedProperty(string name, Type indexParameterType); 35Type Type 77Type indexedParamType = null; 83static internal ICustomProperty CreateIndexedProperty(object target, string propertyName, Type indexedParamType) 94new Type[] { indexedParamType }, // indexed parameter type 209ICustomProperty ICustomPropertyProvider.GetIndexedProperty(string name, Type indexParameterType) 219Type ICustomPropertyProvider.Type
system\runtime\interopservices\windowsruntime\managedactivationfactory.cs (2)
38private Type m_type; 41internal ManagedActivationFactory(Type type)
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (3)
1208internal static IntPtr GetActivationFactoryForType(Type type) 1215internal static ManagedActivationFactory GetManagedActivationFactory(Type type) 1276public static IActivationFactory GetActivationFactory(Type type)
system\runtime\interopservices\windowsruntime\winrtclassactivator.cs (3)
50private Type LoadWinRTType(string acid) 52Type winrtType = Type.GetType(acid + ", Windows, ContentType=WindowsRuntime");
system\runtime\remoting\activationservices.cs (15)
43private static readonly Type proxyAttributeType = typeof(System.Runtime.Remoting.Proxies.ProxyAttribute); 395internal static ProxyAttribute GetProxyAttribute(Type serverType) 761Type serverType = reqMsg.ActivationType; 809Type serverType, IMessage msg, ServerIdentity srvIdToBind, 967internal static IContextAttribute[] GetContextAttributesForType(Type serverType) 975Type currType = serverType; 990Type attrType = attr.GetType(); 1080internal static void PushActivationAttributes(Type serverType, Object[] attributes) 1090internal static Object[] PeekActivationAttributes(Type serverType) 1101internal static void PopActivationAttributes(Type serverType) 1334Type activationType = ctorMsg.ActivationType; 1489Type activationType = ctorMsg.ActivationType; 1738internal void Push(Type typ, Object[] attr) 1759internal Object[] Peek(Type typ) 1772internal void Pop(Type typ)
system\runtime\remoting\callcontext.cs (1)
280private static Type s_callContextType = typeof(LogicalCallContext);
system\runtime\remoting\channelservices.cs (1)
633foreach (Type t in mi.GetGenericArguments())
system\runtime\remoting\configuration.cs (11)
456Type type = RemotingConfigInfo.LoadType(entry.TypeName, entry.AssemblyName); 593Type type = RemotingConfigInfo.LoadType(entry.TypeName, entry.AssemblyName); 867internal static Type GetServerTypeForUri(String URI) 969Type type = assembly.GetType(entry.UrtTypeName); 980Type type = assembly.GetType(entry.UrtTypeName); 993Type type = assembly.GetType(entry.TypeName); 1496internal Type GetServerTypeForUri(String URI) 1500Type serverType = null; 1557Type serverType = LoadType(svrTypeName, asmName); 1692internal static Type LoadType(String typeName, String assemblyName) 1715Type type = asm.GetType(typeName, false, false);
system\runtime\remoting\iactivator.cs (1)
79Type ActivationType
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\messagesmuggler.cs (4)
117Type elementType = array.GetType().GetElementType(); 313Type[] inst = mcm.MethodBase.GetGenericArguments(); 389internal Type[] GetInstantiation(ArrayList deserializedArgs) 392return (Type[])deserializedArgs[_instantiation.Index];
system\runtime\remoting\objref.cs (12)
54bool CanCastTo(Type fromType, Object o); 110public virtual bool CanCastTo(Type castType, Object o) 215Type[] interfaces = typeOfObj.GetInterfaces(); 253private bool CompareTypes(Type type1, String type2) 255Type type = RemotingServices.InternalGetTypeFromQualifiedTypeName(type2); 261private bool CanCastTo(Type castType, String[] types) 293public override bool CanCastTo(Type castType, Object o) 430private static Type orType = typeof(ObjRef); 449public ObjRef(MarshalByRefObject o, Type requestedType) 553Type typeOfTypeInfo = null; 557Type typeOfChannelInfo = null; 798Type serverType = asm.GetType(typeName, false, false);
system\runtime\remoting\proxyattribute.cs (3)
39public virtual MarshalByRefObject CreateInstance(Type serverType) 73Type serverType, 95Type t = serverType;
system\runtime\remoting\realproxy.cs (7)
108protected RealProxy(Type classToProxy) : this(classToProxy, (IntPtr)0, null) 113protected RealProxy(Type classToProxy, IntPtr stub, Object stubData) 182Type svrType = GetProxiedType(); 388public extern Type GetProxiedType(); 395public virtual ObjRef CreateObjRef(Type requestedType) 527Type returnType = cache.ReturnType; 537private static void ValidateReturnArg(Object arg, Type paramType)
system\runtime\remoting\redirectionproxy.cs (4)
22private Type _serverType; 26internal RedirectionProxy(MarshalByRefObject proxy, Type serverType) 104private Type _serverType; 106internal ComRedirectionProxy(MarshalByRefObject comObject, Type serverType)
system\runtime\remoting\remotingattributes.cs (7)
256private Type _returnType = null; // null if return type is void or .ctor 485internal Type ReturnType 494Type returnType = mi.ReturnType; 590_XmlElementName = GetTypeName((Type)ReflectInfo); 626_XmlTypeName = GetTypeName((Type)ReflectInfo); 672private static string GetTypeName(Type t) { 801Type declaringType = ((MemberInfo)ReflectInfo).DeclaringType;
system\runtime\remoting\remotingconfigparser.cs (1)
390Type type = asm.GetType(typeName, false, false);
system\runtime\remoting\remotingconfiguration.cs (15)
124public static void RegisterActivatedServiceType(Type type) 150Type type, String objectUri, WellKnownObjectMode mode) 169public static void RegisterActivatedClientType(Type type, String appUrl) 193public static void RegisterWellKnownClientType(Type type, String objectUrl) 246public static ActivatedClientTypeEntry IsRemotelyActivatedClientType(Type svrType) 273public static WellKnownClientTypeEntry IsWellKnownClientType(Type svrType) 299public static bool IsActivationAllowed(Type svrType) 362public ActivatedClientTypeEntry(Type type, String appUrl) 381public Type ObjectType 423public ActivatedServiceTypeEntry(Type type) 437public Type ObjectType 485public WellKnownClientTypeEntry(Type type, String objectUrl) 504public Type ObjectType 556public WellKnownServiceTypeEntry(Type type, String objectUri, WellKnownObjectMode mode) 577public Type ObjectType
system\runtime\remoting\remotingproxy.cs (4)
45public RemotingProxy(Type serverType) 269Type t = GetProxiedType(); 639public bool CanCastTo(Type castType, Object o) 702bool CanCastToWK(Type castType)
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\remotingsurrogateselector.cs (17)
34private static Type s_IMethodCallMessageType = typeof(IMethodCallMessage); 35private static Type s_IMethodReturnMessageType = typeof(IMethodReturnMessage); 36private static Type s_ObjRefType = typeof(ObjRef); 84public virtual ISerializationSurrogate GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector ssout) 213private static Type _voidType = typeof(void); 214private static Type _soapFaultType = typeof(SoapFault); 301Type retType = ((MethodInfo)mb).ReturnType; 308Type[] types = mapper.ArgTypes; 373Type[] sig = (Type[])mcm.MethodSignature; 393Type argType = null; 416private static Type _constructionCallType = typeof(ConstructionCall); 417private static Type _methodCallType = typeof(MethodCall); 418private static Type _constructionResponseType = typeof(ConstructionResponse); 419private static Type _methodResponseType = typeof(MethodResponse); 420private static Type _exceptionType = typeof(Exception); 421private static Type _objectType = typeof(Object);
system\runtime\remoting\serveridentity.cs (7)
33public Type type; 47internal Type _srvType; // type of server object 54internal Type GetLastCalledType(String newTypeName) 61Type t = lastType.type; 72internal void SetLastCalledType(String newTypeName, Type newType) 278Activator.CreateInstance((Type)_srvType, true); 340internal Type ServerType
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\remoting\soapinteroptypes.cs (30)
113internal static Type typeofSoapTime = typeof(SoapTime); 114internal static Type typeofSoapDate = typeof(SoapDate); 115internal static Type typeofSoapYearMonth = typeof(SoapYearMonth); 116internal static Type typeofSoapYear = typeof(SoapYear); 117internal static Type typeofSoapMonthDay = typeof(SoapMonthDay); 118internal static Type typeofSoapDay = typeof(SoapDay); 119internal static Type typeofSoapMonth = typeof(SoapMonth); 120internal static Type typeofSoapHexBinary = typeof(SoapHexBinary); 121internal static Type typeofSoapBase64Binary = typeof(SoapBase64Binary); 122internal static Type typeofSoapInteger = typeof(SoapInteger); 123internal static Type typeofSoapPositiveInteger = typeof(SoapPositiveInteger); 124internal static Type typeofSoapNonPositiveInteger = typeof(SoapNonPositiveInteger); 125internal static Type typeofSoapNonNegativeInteger = typeof(SoapNonNegativeInteger); 126internal static Type typeofSoapNegativeInteger = typeof(SoapNegativeInteger); 127internal static Type typeofSoapAnyUri = typeof(SoapAnyUri); 128internal static Type typeofSoapQName = typeof(SoapQName); 129internal static Type typeofSoapNotation = typeof(SoapNotation); 130internal static Type typeofSoapNormalizedString = typeof(SoapNormalizedString); 131internal static Type typeofSoapToken = typeof(SoapToken); 132internal static Type typeofSoapLanguage = typeof(SoapLanguage); 133internal static Type typeofSoapName = typeof(SoapName); 134internal static Type typeofSoapIdrefs = typeof(SoapIdrefs); 135internal static Type typeofSoapEntities = typeof(SoapEntities); 136internal static Type typeofSoapNmtoken = typeof(SoapNmtoken); 137internal static Type typeofSoapNmtokens = typeof(SoapNmtokens); 138internal static Type typeofSoapNcName = typeof(SoapNcName); 139internal static Type typeofSoapId = typeof(SoapId); 140internal static Type typeofSoapIdref = typeof(SoapIdref); 141internal static Type typeofSoapEntity = typeof(SoapEntity); 142internal static Type typeofISoapXsd = typeof(ISoapXsd);
system\runtime\remoting\stackbuildersink.cs (1)
378Type srvType = srvId.ServerType;
system\runtime\serialization\formatter.cs (4)
92protected abstract void WriteArray(Object obj, String name, Type memberType); 124protected abstract void WriteObjectRef(Object obj, String name, Type memberType); 137Type varType = data.GetType(); 205protected abstract void WriteValueType(Object obj, String name, Type memberType);
system\runtime\serialization\formatterconverter.cs (1)
28public Object Convert(Object value, 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\binaryconverter.cs (52)
40internal static InternalPrimitiveTypeE ToCode(Type type) 57code = ToPrimitiveTypeEnum(Type.GetTypeCode(type)); 137internal static InternalNameSpaceE GetNameSpaceEnum(InternalPrimitiveTypeE code, Type type, WriteObjectInfo objectInfo, out String typeName) 203internal static Type ToArrayType(InternalPrimitiveTypeE code) 213private static volatile Type[] typeA; 217Type[] typeATemp = new Type[primitiveTypeEnumLength]; 238private static volatile Type[] arrayTypeA; 242Type[] arrayTypeATemp = new Type[primitiveTypeEnumLength]; 265internal static Type ToType(InternalPrimitiveTypeE code) 331internal static bool IsPrimitiveArray(Type type, out Object typeInformation) 489internal static Type typeofISerializable = typeof(ISerializable); 490internal static Type typeofString = typeof(String); 491internal static Type typeofConverter = typeof(Converter); 492internal static Type typeofBoolean = typeof(Boolean); 493internal static Type typeofByte = typeof(Byte); 494internal static Type typeofChar = typeof(Char); 495internal static Type typeofDecimal = typeof(Decimal); 496internal static Type typeofDouble = typeof(Double); 497internal static Type typeofInt16 = typeof(Int16); 498internal static Type typeofInt32 = typeof(Int32); 499internal static Type typeofInt64 = typeof(Int64); 500internal static Type typeofSByte = typeof(SByte); 501internal static Type typeofSingle = typeof(Single); 502internal static Type typeofTimeSpan = typeof(TimeSpan); 503internal static Type typeofDateTime = typeof(DateTime); 504internal static Type typeofUInt16 = typeof(UInt16); 505internal static Type typeofUInt32 = typeof(UInt32); 506internal static Type typeofUInt64 = typeof(UInt64); 507internal static Type typeofObject = typeof(Object); 509internal static Type typeofSystemVoid = typeof(void); 514internal static Type typeofTypeArray = typeof(System.Type[]); 515internal static Type typeofObjectArray = typeof(System.Object[]); 516internal static Type typeofStringArray = typeof(System.String[]); 517internal static Type typeofBooleanArray = typeof(Boolean[]); 518internal static Type typeofByteArray = typeof(Byte[]); 519internal static Type typeofCharArray = typeof(Char[]); 520internal static Type typeofDecimalArray = typeof(Decimal[]); 521internal static Type typeofDoubleArray = typeof(Double[]); 522internal static Type typeofInt16Array = typeof(Int16[]); 523internal static Type typeofInt32Array = typeof(Int32[]); 524internal static Type typeofInt64Array = typeof(Int64[]); 525internal static Type typeofSByteArray = typeof(SByte[]); 526internal static Type typeofSingleArray = typeof(Single[]); 527internal static Type typeofTimeSpanArray = typeof(TimeSpan[]); 528internal static Type typeofDateTimeArray = typeof(DateTime[]); 529internal static Type typeofUInt16Array = typeof(UInt16[]); 530internal static Type typeofUInt32Array = typeof(UInt32[]); 531internal static Type typeofUInt64Array = typeof(UInt64[]); 532internal static Type typeofMarshalByRefObject = typeof(System.MarshalByRefObject);
system\runtime\serialization\formatters\binary\binaryformatter.cs (6)
53private static Dictionary<Type, TypeInformation> typeNameCache = new Dictionary<Type, TypeInformation>(); 54private static Lazy<ConcurrentDictionary<Type, TypeInformation>> concurrentTypeNameCache = new Lazy<ConcurrentDictionary<Type, TypeInformation>>(() => new ConcurrentDictionary<Type, TypeInformation>()); 239internal static TypeInformation GetTypeInformation(Type type)
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\binarymethodmessage.cs (3)
23Type[] _instArgs = null; 31internal BinaryMethodCallMessage(String uri, String methodName, String typeName, Type[] instArgs, Object[] args, Object methodSignature, LogicalCallContext callContext, Object[] properties) 63public Type[] InstantiationArgs
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\formatters\binary\binaryparser.cs (1)
584Type objectType = objectReader.GetType(assemblyInfo, record.name);
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (4)
66internal Type PRdtType; 84internal Type PRarrayElementType; 698Type type = typeof(Header); 758internal Type NItype;
system\runtime\serialization\formatters\ifieldinfo.cs (1)
34Type[] FieldTypes
system\runtime\serialization\formatters\isoapmessage.cs (1)
36Type[] ParamTypes {get; set;}
system\runtime\serialization\formatters\soapmessage.cs (2)
30internal Type[] paramTypes; 49public Type[] ParamTypes
system\runtime\serialization\formatterservices.cs (15)
178public static MemberInfo[] GetSerializableMembers(Type type) { 186public static MemberInfo[] GetSerializableMembers(Type type, StreamingContext context) { 205static readonly Type[] advancedTypes = new Type[]{ 214public static void CheckTypeSecurity(Type t, TypeFilterLevel securityLevel) { 232public static Object GetUninitializedObject(Type type) { 246public static Object GetSafeUninitializedObject(Type type) { 297private static Binder s_binder = Type.DefaultBinder; 440public static Type GetTypeFromAssembly(Assembly assem, String name) { 477internal static string GetClrAssemblyName(Type type, out bool hasTypeForwardedFrom) { 494internal static string GetClrTypeFullName(Type type) { 503static string GetClrTypeFullNameForArray(Type type) { 521static string GetClrTypeFullNameForNonArrayTypes(Type type) { 526Type[] genericArguments = type.GetGenericArguments(); 530foreach (Type genericArgument in genericArguments) {
system\runtime\serialization\iformatterconverter.cs (1)
24Object Convert(Object value, Type type);
system\runtime\serialization\isurrogateselector.cs (1)
31ISerializationSurrogate GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector selector);
system\runtime\serialization\memberholder.cs (2)
27internal Type memberType; 30internal MemberHolder(Type type, StreamingContext ctx) {
system\runtime\serialization\objectclonehelper.cs (1)
41Type objectType = null;
system\runtime\serialization\objectmanager.cs (1)
759Type selectorType=null;
system\runtime\serialization\serializationbinder.cs (2)
22public virtual void BindToName(Type serializedType, out String assemblyName, out String typeName) 28public abstract Type BindToType(String assemblyName, String typeName);
system\runtime\serialization\serializationeventscache.cs (5)
32private List<MethodInfo> GetMethodsWithAttribute(Type attribute, Type t) 35Type baseType = t; 79internal SerializationEvents(Type t) 187internal static SerializationEvents GetSerializationEventsForType(Type t)
system\runtime\serialization\serializationfieldinfo.cs (5)
59public override Type DeclaringType { 65public override Type ReflectedType { 75public override Object[] GetCustomAttributes(Type attributeType, bool inherit) { 79public override bool IsDefined(Type attributeType, bool inherit) { 86public override Type FieldType {
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\runtime\serialization\serializationinfoenumerator.cs (6)
27private Type m_type; 43public Type ObjectType { 49internal SerializationEntry(String entryName, Object entryValue, Type entryType) { 65Type[] m_types; 70internal SerializationInfoEnumerator(String[] members, Object[] info, Type[] types, int numItems) { 139public Type ObjectType {
system\runtime\serialization\surrogateselector.cs (5)
34public virtual void AddSurrogate(Type type, StreamingContext context, ISerializationSurrogate surrogate) { 175public virtual ISerializationSurrogate GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector selector) { 196public virtual void RemoveSurrogate(Type type, StreamingContext context) { 212internal Type m_type; 215internal SurrogateKey(Type type, StreamingContext context) {
system\runtime\versioning\multitargetinghelpers.cs (3)
30private static Func<Type, String> defaultConverter = (t) => t.AssemblyQualifiedName; 34internal static string GetAssemblyQualifiedName(Type type, Func<Type, String> converter)
system\runtime\versioning\resourceattributes.cs (1)
114public static String MakeVersionSafeName(String name, ResourceScope from, ResourceScope to, Type type)
system\runtimehandles.cs (14)
58internal unsafe static Type GetTypeHelper(Type typeStart, Type[] genericArgs, IntPtr pModifiers, int cModifiers) 60Type type = typeStart; 222internal static IntPtr[] CopyRuntimeTypeHandles(Type[] inHandles, out int length) 386internal extern static Type[] GetInterfaces(RuntimeType type); 395internal Type[] GetConstraints() 397Type[] types = null; 633internal static Type GetTypeByName(string name, ref StackCrawlMark stackMark) 672internal Type[] GetInstantiationPublic() 674Type[] types = null; 686internal RuntimeType Instantiate(Type[] inst) 1387internal static Type[] GetMethodInstantiationPublic(IRuntimeMethodInfo method) 2233internal extern Type[] GetCustomModifiers(int position, bool required);
system\sbyte.cs (1)
280Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\security\accesscontrol\commonobjectsecurity.cs (3)
43private AuthorizationRuleCollection GetRules( bool access, bool includeExplicit, bool includeInherited, System.Type targetType ) 678public AuthorizationRuleCollection GetAccessRules( bool includeExplicit, bool includeInherited, System.Type targetType ) 683public AuthorizationRuleCollection GetAuditRules( bool includeExplicit, bool includeInherited, System.Type targetType )
system\security\accesscontrol\cryptokeysecurity.cs (3)
218public override Type AccessRightType 223public override Type AccessRuleType 228public override Type AuditRuleType
system\security\accesscontrol\directoryobjectsecurity.cs (3)
43private AuthorizationRuleCollection GetRules(bool access, bool includeExplicit, bool includeInherited, System.Type targetType) 757public AuthorizationRuleCollection GetAccessRules(bool includeExplicit, bool includeInherited, System.Type targetType) 762public AuthorizationRuleCollection GetAuditRules(bool includeExplicit, bool includeInherited, System.Type targetType)
system\security\accesscontrol\eventwaithandlesecurity.cs (3)
262public override Type AccessRightType 267public override Type AccessRuleType 272public override Type AuditRuleType
system\security\accesscontrol\filesecurity.cs (3)
610public override Type AccessRightType 615public override Type AccessRuleType 620public override Type AuditRuleType
system\security\accesscontrol\mutexsecurity.cs (3)
258public override Type AccessRightType 263public override Type AccessRuleType 268public override Type AuditRuleType
system\security\accesscontrol\objectsecurity.cs (5)
357public IdentityReference GetOwner( System.Type targetType ) 401public IdentityReference GetGroup( System.Type targetType ) 682public abstract Type AccessRightType { get; } 683public abstract Type AccessRuleType { get; } 684public abstract Type AuditRuleType { get; }
system\security\accesscontrol\objectsecurityt.cs (3)
371public override Type AccessRightType { 375public override Type AccessRuleType { 379public override Type AuditRuleType {
system\security\accesscontrol\registrysecurity.cs (3)
314public override Type AccessRightType 319public override Type AccessRuleType 324public override Type AuditRuleType
system\security\cryptography\asymmetrickeyexchangeformatter.cs (1)
39abstract public byte[] CreateKeyExchange(byte[] data, Type symAlgType);
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\cryptography\rsaoaepkeyexchangedeformatter.cs (1)
64_rsaOverridesDecrypt = Utils.DoesRsaKeyOverride(_rsaKey, "Decrypt", new Type[] { typeof(byte[]), typeof(RSAEncryptionPadding) });
system\security\cryptography\rsaoaepkeyexchangeformatter.cs (2)
83public override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType) { 90_rsaOverridesEncrypt = Utils.DoesRsaKeyOverride(_rsaKey, "Encrypt", new Type[] { typeof(byte[]), typeof(RSAEncryptionPadding) });
system\security\cryptography\rsapkcs1keyexchangedeformatter.cs (1)
93_rsaOverridesDecrypt = Utils.DoesRsaKeyOverride(_rsaKey, "Decrypt", new Type[] { typeof(byte[]), typeof(RSAEncryptionPadding) });
system\security\cryptography\rsapkcs1keyexchangeformatter.cs (2)
98public override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType) { 105_rsaOverridesEncrypt = Utils.DoesRsaKeyOverride(_rsaKey, "Encrypt", new Type[] { typeof(byte[]), typeof(RSAEncryptionPadding) });
system\security\cryptography\rsapkcs1signaturedeformatter.cs (1)
97_rsaOverridesVerifyHash = Utils.DoesRsaKeyOverride(_rsaKey, "VerifyHash", new Type[] { typeof(byte[]), typeof(byte[]), typeof(HashAlgorithmName), typeof(RSASignaturePadding) });
system\security\cryptography\rsapkcs1signatureformatter.cs (1)
87_rsaOverridesSignHash = Utils.DoesRsaKeyOverride(_rsaKey, "SignHash", new Type[] { typeof(byte[]), typeof(HashAlgorithmName), typeof(RSASignaturePadding) });
system\security\cryptography\utils.cs (7)
589else if (hashAlg is Type) { 616else if (hashAlg is Type) { 1032internal static bool DoesRsaKeyOverride(RSA rsaKey, string methodName, Type[] parameterTypes) 1035Type t = rsaKey.GetType(); 1059private static bool DoesRsaKeyOverrideSlowPath(Type t, string methodName, Type[] parameterTypes) 1063Type declaringType = method.DeclaringType;
system\security\hostsecuritymanager.cs (4)
194public virtual Type[] GetHostSuppliedAppDomainEvidenceTypes() { 201public virtual Type[] GetHostSuppliedAssemblyEvidenceTypes(Assembly assembly) { 208public virtual EvidenceBase GenerateAppDomainEvidence(Type evidenceType) { 215public virtual EvidenceBase GenerateAssemblyEvidence(Type evidenceType, Assembly assembly) {
system\security\permissions\permissionattributes.cs (2)
110Type t = Type.GetType(typeName, false, false);
system\security\permissionset.cs (5)
404public IPermission GetPermission(Type permClass) 409protected virtual IPermission GetPermissionImpl(Type permClass) 469Type perm_type = perm.GetType(); 502public IPermission RemovePermission(Type permClass) 507protected virtual IPermission RemovePermissionImpl(Type permClass)
system\security\permissiontoken.cs (6)
151public static PermissionToken GetToken(Type cls) 225return FindToken( Type.GetType( typeStr ) ); 239public static PermissionToken FindToken( Type cls ) 359internal PermissionToken FindToken( Type cls ) 401internal PermissionToken GetToken(Type cls, IPermission perm) 509internal PermissionToken BuiltInGetToken( int index, IPermission perm, Type cls )
system\security\policy\appdomainevidencefactory.cs (1)
51public EvidenceBase GenerateEvidence(Type evidenceType)
system\security\policy\applicationsecuritymanager.cs (2)
172Type tmClass = Type.GetType(trustManagerName, false, false);
system\security\policy\assemblyevidencefactory.cs (1)
62public EvidenceBase GenerateEvidence(Type evidenceType)
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\evidencebase.cs (3)
77Type EvidenceType { get; } 103public Type EvidenceType 154public Type EvidenceType
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\security\policy\iruntimeevidencefactory.cs (1)
36EvidenceBase GenerateEvidence(Type evidenceType);
system\security\policy\pefileevidencefactory.cs (1)
212public EvidenceBase GenerateEvidence(Type evidenceType)
system\security\policy\policylevel.cs (2)
1300Type type = System.Type.GetType(className, false, false);
system\security\principal\identityreference.cs (2)
33public abstract bool IsValidTargetType( Type targetType ); 35public abstract IdentityReference Translate( Type targetType );
system\security\principal\ircollection.cs (5)
154public IdentityReferenceCollection Translate( Type targetType ) 161public IdentityReferenceCollection Translate( Type targetType, bool forceSuccess ) 197Type type = Identities[i].GetType(); 260Type type = id.GetType(); 357Type type = id.GetType();
system\security\principal\ntaccount.cs (4)
102public override bool IsValidTargetType( Type targetType ) 120public override IdentityReference Translate( Type targetType ) 175internal static IdentityReferenceCollection Translate( IdentityReferenceCollection sourceAccounts, Type targetType, bool forceSuccess) 202internal static IdentityReferenceCollection Translate( IdentityReferenceCollection sourceAccounts, Type targetType, out bool someFailed )
system\security\principal\sid.cs (5)
717internal static bool IsValidTargetTypeStatic( Type targetType ) 733public override bool IsValidTargetType( Type targetType ) 781public override IdentityReference Translate( Type targetType ) 1080internal static IdentityReferenceCollection Translate( IdentityReferenceCollection sourceSids, Type targetType, bool forceSuccess) 1108internal static IdentityReferenceCollection Translate( IdentityReferenceCollection sourceSids, Type targetType, out bool someFailed )
system\security\principal\windowsidentity.cs (1)
115new Type[] { typeof(SerializationInfo) },
system\security\readonlypermissionset.cs (2)
85protected override IPermission GetPermissionImpl(Type permClass) 116protected override IPermission RemovePermissionImpl(Type permClass)
system\security\securityexception.cs (4)
41[NonSerialized] private Type m_typeOfPermissionThatFailed; 176public SecurityException(String message, Type type ) 186public SecurityException(String message, Type type, String state ) 351public Type PermissionType
system\security\util\xmlutil.cs (8)
63AddClassAttribute( SecurityElement element, Type type, String typename ) 412Type permClass = null; 484Type groupClass = null; 618Type condClass = null; 633internal static Type 650return Type.GetType(className, false, false); 658return Type.GetType(className, true, false); 683public static String BitFieldEnumToString( Type type, Object value )
system\single.cs (1)
343Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\string.cs (1)
3435Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\stubhelpers.cs (10)
810internal static unsafe void ConvertContentsToNative_Type(ref System.Type[] managedArray, IntPtr pNativeHome) 884internal static unsafe void ConvertContentsToManaged_Type(ref System.Type[] managedArray, IntPtr pNativeHome) 1001private Type layoutType; 1028Type elementType = pManagedHome.GetType().GetElementType(); 1031switch (Type.GetTypeCode(elementType)) 1397internal static extern string ConvertToWinRTTypeName(System.Type managedType, out bool isPrimitive); 1400internal static extern System.Type GetTypeFromWinRTTypeName(string typeName, out bool isPrimitive); 1407internal static unsafe void ConvertToNative(System.Type managedType, TypeNameNative *pNativeType) 1451internal static unsafe void ConvertToManaged(TypeNameNative *pNativeType, ref System.Type managedType) 1467managedType = Type.GetType(typeName, /* throwOnError = */ true);
system\threading\synchronizationcontext.cs (8)
76static Type s_cachedPreparedType1; 77static Type s_cachedPreparedType2; 78static Type s_cachedPreparedType3; 79static Type s_cachedPreparedType4; 80static Type s_cachedPreparedType5; 98Type type = this.GetType(); 323Type factoryType = Type.GetType("System.Threading.WinRTSynchronizationContextFactory, " + AssemblyRef.SystemRuntimeWindowsRuntime, true);
system\threading\Tasks\TaskExceptionHolder.cs (1)
317var t = exceptions[i].SourceException.GetType();
system\throwhelper.cs (2)
59internal static void ThrowWrongKeyTypeArgumentException(object key, Type targetType) { 63internal static void ThrowWrongValueTypeArgumentException(object value, Type targetType) {
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\typedreference.cs (1)
113public static Type GetTargetType (TypedReference value)
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\uint16.cs (1)
247Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\uint32.cs (1)
229Object IConvertible.ToType(Type type, IFormatProvider provider) {
system\uint64.cs (1)
224Object IConvertible.ToType(Type type, IFormatProvider provider) {
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);
system\variant.cs (5)
90internal static readonly Type [] ClassTypes = { 117internal static readonly Variant Missing = new Variant(Variant.CV_MISSING, Type.Missing, 0, 0); 297if (obj == Type.Missing) { 353unsafe public Variant(void* voidPointer,Type pointerType) { 411return Type.Missing;
PresentationBuildTasks (400)
Base\System\Windows\Markup\TypeConverterHelper.cs (11)
104internal static Type GetConverterType(MemberInfo memberInfo) 108Type converterType = null; 121internal static Type GetConverterType(Type type) 125Type converterType = null; 138private static Type GetConverterTypeFromName(string converterName) 140Type converterType = null; 167internal static Type GetCoreConverterTypeFromCustomType(Type type) 169Type converterType = null; 245else if (typeof(Type).IsAssignableFrom(type))
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
72public override System.Type ValueType { get { return _reader.ValueType; } }
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (28)
1051Type eventTarget; 1729private CodeExpression GetPropertyValueExpression(ITypeDescriptorContext ctx, Type typeToConvertTo, Object value, string attributeValue) 1839private Type GetEventHandlerType(MemberInfo memberInfo) 1841Type eventHandlerType = null; 1874Type eventTarget = cc != null ? cc.ElementType : miEvent.DeclaringType; 1882Type eventHandlerType = GetEventHandlerType(miEvent); 1920private CodeStatement AddCLREvent(Type eventTarget, CodeContext cc, CodeExpression ce, MarkupEventInfo mei) 1983Type eventHandlerType = GetEventHandlerType(mei.mi); 2129Type resourceDictionary = KnownTypes.Types[(int)KnownElements.ResourceDictionary]; 2130Type iNameScope = KnownTypes.Types[(int)KnownElements.INameScope]; 2134Type t = ((CodeContext)contexts[i]).ElementType; 2204Type currTypeArg = parserContext.XamlTypeMapper.GetTypeArgsType(_typeArgsList[i].Trim(), 2246private static CodeTypeReference GenerateConstructedTypeReference(Type t, string [] typeArgsList, string genericName) 2291private static CodeTypeReference GenerateConstructedTypeReference(Type t, string [] typeArgsList, Type refType, string refTypeFullName, string eventName) 2298Type[] refTypeParams = null; 2300Type[] typeParams = t.GetGenericArguments(); 2317foreach (Type typeParam in typeParams) 2398private CodeTypeDeclaration GenerateClass(string className, ref string modifier, Type baseClass, string baseClassFullName) 2442private CodeContext GenerateSubClass(ref string className, ref string modifier, Type baseClass, string baseClassFullName) 2517CodeParameterDeclarationExpression param1 = new CodeParameterDeclarationExpression(typeof(Type), DELEGATETYPE); 2687CodeParameterDeclarationExpression param1 = new CodeParameterDeclarationExpression(typeof(Type), TYPE); 2786param1 = new CodeParameterDeclarationExpression(typeof(Type), DELEGATETYPE); 2891internal string StartElement(ref string className, string subClassFullName, ref string modifier, Type elementType, string baseClassFullName) 3262internal CodeContext(Type elementType, string [] typeArgsList, string localElementFullName) 3269internal Type ElementType 3311private Type _elementType = null; 3321Type elementType,
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (4)
108Type rootType = isRootPublic ? xamlObjectNode.ElementType : typeof(ParserExtension); 294Type ownerTagType = typeAndSerializer.ObjectType; 404ref Type baseType, 405ref Type serializerType)
Framework\System\Windows\Markup\AttributeData.cs (8)
75Type targetType, 77Type declaringType, 80Type serializerType, 101internal Type SerializerType; // Type of serializer (if any) 132Type targetType, 134Type declaringType, 153internal Type TargetType; // Target type 154internal Type DeclaringType; // Type where Attribute is declared
Framework\System\Windows\Markup\BamlMapTable.cs (28)
116internal static Type GetKnownTypeFromId(short id) 145Type probeType = KnownTypes.Types[probe]; 176internal static short GetKnownTypeIdFromType(Type type) 298internal Type GetKnownConverterTypeFromType(Type type) 319if (type == typeof(System.Type)) 344private static Type GetKnownConverterTypeFromPropName( 345Type propOwnerType, 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,
Framework\System\Windows\Markup\BamlRecords.cs (6)
482static internal bool TreatAsIAddChild(Type parentObjectType) 487static internal BamlRecordType GetPropertyStartRecordType(Type propertyType, bool propertyCanWrite) 2739internal Type ValueType 2754internal Type SerializerType 2768Type _valueType; 2771Type _serializerType;
Framework\System\Windows\Markup\BamlRecordWriter.cs (3)
992Type converterOrSerializerType; 1028Type ownerType = _xamlTypeMapper.GetDependencyPropertyOwnerAndName(xamlProperty.Value, 1093Type typeValue = _xamlTypeMapper.GetTypeFromBaseString(xamlPropertyNode.Value,
Framework\System\Windows\Markup\KnownTypes.cs (2)
4766private Type InitializeOneType(KnownElements knownElement) 4768Type t = null;
Framework\System\Windows\Markup\KnownTypesHelper.cs (4)
49_typeTable =new Type[size]; 52public System.Type this[int index] 56Type t = _typeTable[index]; 66private Type[] _typeTable;
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
Framework\System\Windows\Markup\ParserContext.cs (11)
209internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(Type type) 249_targetType = (Type) _langSpaceStack.Pop(); 325internal Type TargetType 728internal Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> MasterBracketCharacterCache 734_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 855private Type _targetType; 856private Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> _masterBracketCharacterCache; 876private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(Type extensionType) 880Type constructorArgumentType = null; 881Type markupExtensionBracketCharacterType = null; 891Type attributeType = attributeData.AttributeType;
Framework\System\Windows\Markup\StyleXamlParser.cs (4)
301Type ownerTagType = typeAndSerializer.ObjectType; 414Type targetType = null; 558Type propertyType = XamlTypeMapper.GetPropertyType(_setterOrTriggerPropertyInfo); 1589Type _styleTargetTypeType;
Framework\System\Windows\Markup\TemplateXamlParser.cs (17)
337Type ownerTagType = typeAndSerializer.ObjectType; 462Type targetType = null; 473targetType = _IDTypes[_setterTargetNameOrConditionSourceName] as Type; 580Type propertyType = XamlTypeMapper.GetPropertyType(_setterOrTriggerPropertyMemberInfo); 836private void CommonElementStartProcessing (XamlNode xamlNode, Type elementType, ref StyleMode mode) 930private Type TargetType 1369xamlClrEventNode.ListenerType = (Type) _elementTypeStack.Peek(); 1497_IDTypes[xamlPropertyNode.Value] = _elementTypeStack.Peek() as Type; 1546Type t = (Type)_elementTypeStack.Peek(); 1773private Type ItemContainerTemplateType 1785private Type ItemContainerTemplateKeyType 1825Type _templateTargetTypeType; 1828Type _defaultTargetType; 1863Type _templateKeyType; 1866private static Type _itemContainerTemplateType; 1869private static Type _itemContainerTemplateKeyType;
Framework\System\Windows\Markup\TypeContext.cs (1)
77virtual public object GetService(Type serviceType)
Framework\System\Windows\Markup\XamlNodes.cs (40)
381Type converterType) 399internal Type ConverterType 414Type _converterType = null; 490internal Type PropDeclaringType 507internal Type PropValidType 534Type _validType; 535Type _declaringType; 672internal Type DefaultTargetType 682Type _defaultTargetType; 770internal Type ValueDeclaringType 812internal Type ValuePropertyType 877internal Type DefaultTargetType 914Type _valueDeclaringType; 916Type _valuePropertyType; 921Type _defaultTargetType; 943Type valueElementType, // Actual type of the valueTypeFullname. 982internal Type ValueElementType 1007Type _valueElementType; 1101Type elementType, 1102Type serializerType) 1124Type elementType, 1125Type serializerType, 1162internal Type ElementType 1173internal Type SerializerType 1222Type _elementType; 1223Type _serializerType; 1279Type valueElementType) // Actual type of the valueTypeFullname. 1307internal Type ValueElementType 1314Type _valueElementType; 1704internal Type ListenerType 1781private Type _listenerType; 2091Type valueType) // Actual Type, if known. 2109internal Type ValueType 2115Type _valueType; 2176Type elementType, 2177Type serializerType) 2270internal Type PropDeclaringType 2287internal Type PropValidType 2301Type _declaringType; 2302Type _validType;
Framework\System\Windows\Markup\XAMLParseException.cs (1)
437Type objectType
Framework\System\Windows\Markup\XamlParser.cs (2)
1069ref Type baseType, 1070ref Type serializerType)
Framework\System\Windows\Markup\XamlReaderHelper.cs (117)
193ref Type baseType, 194ref Type serializerType) 248private static bool IsACollection(Type type) 261Type contentPropertyType = XamlTypeMapper.GetPropertyType(context.ContentPropertyInfo); 284Type t = ((Type)context.ContextData); 481ref Type baseType, 482ref Type serializerType) 631Type elementType, 632Type serializerType, 640typeof(IDictionary).IsAssignableFrom(ParentContext.ContextData as Type)); 675Type elementType = (Type) CurrentContext.ContextDataType; 683Type propertyDeclaringType; 700Type converterType, 802Type typeValue = XamlTypeMapper.GetTypeFromBaseString(value, 852Type valueElementType, // Actual type of the valueTypeFullname. 872Type declaringType, // Type that corresponds to declaringTypeFullName (where the property is declared) 880Type propType = XamlTypeMapper.GetPropertyType(propertyMember); 1083Type valueElementType) 1149ref Type baseType, // Type of the dynamicObject - PropertyInfo, MethodInfo or DependencyProperty 1151ref Type declaringType) // Actual type corresponding to typeFullName 1346bool GetTrimSurroundingWhitespace(Type type) 1442delegate bool ContentValidator(Type type); 1476public Type ContextDataType 1483return _contextData as Type; 1540internal Type ChildPropertyType 1651Type _childPropertyType; 1696Type elementBaseType, 1703out Type declaringType, // type of the object that the field is on 1774Type elementBaseType, 1782ref Type declaringType, // type of the object that the field is on 1890static string GetContentPropertyName(Type type) 1923Type baseType = type; 1924Type attrType = KnownTypes.Types[(int)KnownElements.ContentPropertyAttribute]; 1925Type DOType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1926Type FEType = KnownTypes.Types[(int)KnownElements.FrameworkElement]; 1927Type FCEType = KnownTypes.Types[(int)KnownElements.FrameworkContentElement]; 2203Type elementType, 2301Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 2766Type parentType, // Type of parent, if known 2831Type declaringType = null; 2987Type parentType, 3023parentType.GetConstructor(Type.EmptyTypes) == null || 3077Type valueElementType = null; 3078Type valueSerializerType = null; 3129Type pType = ParentContext.ContextData as Type; 3175Type parentType, 3185Type declaringType, 3247Type propType; 3298parentType.GetConstructor(Type.EmptyTypes) == null || 3306if (propType == typeof(Type)) 3337Type parentType = XamlTypeMapper.GetType(parentTypeNamespace, parentTypeName); 3343private string GetRuntimeNamePropertyName(Type objectType) 3417Type baseType = objectType; 3418Type attrType = KnownTypes.Types[(int)KnownElements.RuntimeNamePropertyAttribute]; 3419Type TimelineType = KnownTypes.Types[(int)KnownElements.Timeline]; 3420Type FEType = KnownTypes.Types[(int)KnownElements.FrameworkElement]; 3421Type FCEType = KnownTypes.Types[(int)KnownElements.FrameworkContentElement]; 3422Type BSBType = KnownTypes.Types[(int)KnownElements.BeginStoryboard]; 3488Type parentType, 3515private bool PropertyIsWriteable(object propertyMember, Type declaringType) 3577Type elementBaseType = null; 3581Type serializerType = null; 3678Type declaringType = null; 3701Type propertyType = XamlTypeMapper.GetPropertyType(dynamicObject); 3937Type propertyType, // Type of the property 3938Type serializerType, // Type of serializer for the property 3944Type declaringType, // Actual type that corresponds to typeFullName 4170Type propertyType, // Type of the property 4190Type propertyType, // Type of the property 4191Type serializerType, 4225Type propertyType, // Type of the property 4226Type serializerType, // Type of serializer for the property 4265Type propertyType, // Type of the property 4321Type serializerType, 4335Type currentObjectType = CurrentContext.ContextDataType; 4353FirstTagName = ((Type)GrandParentContext.ContextData).Name + "." + GrandParentContext.ChildTagLocalName; 4412ParentContext.ContextDataType.GetConstructor(Type.EmptyTypes) == null)) 4494Type parentElementType = CurrentContext.ContextDataType; 4513private void LoadContentPropertyInfo(Type elementType) 4529Type propertyDeclaringType; 4551Type elementType, 4555out Type propertyDeclaringType) 4563Type propertyBaseType = null; 4616Type propertyDeclaringType = XamlTypeMapper.GetDeclaringType(contentPropertyInfo); 4637Type parentType = ParentContext.ContextDataType; 4654Type arrayType = ParentContext.ContextDataType; 4655Type objectType = CurrentContext.ContextDataType; 4686Type elementType = CurrentContext.ContextDataType; 4701Type contentPropertyType = XamlTypeMapper.GetPropertyType(CurrentContext.ContentPropertyInfo); 4747Type converterType = XamlTypeMapper.GetTypeConverterType(elementType); 4765Type converterType = XamlTypeMapper.GetTypeConverterType(elementType); 4786internal static bool CanCollectionTypeAcceptStrings( Type collectionType ) 4806internal static bool CanCollectionTypeAcceptStringsHelper( Type propertyType ) 4813Type collectionItemType = GetCollectionItemType(propertyType); 4843internal static Type GetCollectionItemType( Type collectionType ) 4847Type iCollectionT = collectionType.GetInterface("System.Collections.Generic.ICollection`1"); 4879internal static bool CanWrapStringAsItemType( Type collectionType, Type collectionItemType ) 4881Type contentWrapper = null; //e.g. Run 4908contentWrapper = attributes[i].ConstructorArguments[0].Value as Type; 5650private bool IsWhitespaceSignificantAttributePresent(Type collectionType) 5663Type baseType = collectionType; 5664Type attrType = KnownTypes.Types[(int)KnownElements.WhitespaceSignificantCollectionAttribute]; 5692Type propertyType) 5697internal Type PropertyType 5724private Type _propertyType; 6411Type typeRightTag = elementNode.ElementType; 6726private bool IsAssignableToIXmlSerializable(Type type) 6786Type _definitionScopeType; 6801private Type _typeIXmlSerializable; 6809Type _ownerType; 6812public XamlPropertyFullName(Type ownerType, string name) 6819public Type OwnerType { get { return _ownerType; } }
Framework\System\Windows\Markup\XamlTypeMapper.cs (57)
126public Type GetType( 806Type propType, 861Type owner, 1024Type owner, 1048static private bool IsAllowedEventDelegateType(Type delegateType) 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]; 1936Type typeValue = null; 1993Type ownerType, 2111internal static Type GetPropertyType(object propertyMember) 2113Type propertyType; 2128out Type propertyType, 2209internal static Type GetDeclaringType(object propertyMember) 2211Type validType = null; 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) 2583private static bool IsInternalAllowedOnType(Type type) 2634Type objectType = GetObjectType(namespaceMap, localName, knownTypesOnly); 2684private Type GetObjectType( 2692Type type = null; 2761internal int GetCustomBamlSerializerIdForType(Type objectType) 2802internal Type GetXamlSerializerForType(Type objectType) 3068internal Type GetTypeFromBaseString( 3074Type keyObject = null; 3143internal Type GetTypeArgsType( 3149Type t = null; 3205private TypeInformationCacheData GetCachedInformationForType(Type type) 3325internal object CreateInstance(Type t) 3667internal Type GetTypeConverterType(Type type) 3671Type converterType = null; 3742internal Type GetPropertyConverterType(Type propType, object dpOrPiOrMi) 3745Type converterType = null; 3756converterType = (Type)ret; 3953internal bool GetCachedTrimSurroundingWhitespace(Type t) 3971private bool GetTrimSurroundingWhitespace(Type type) 4154internal TypeInformationCacheData(Type baseType) 4191internal Type TypeConverterType 4237Type ownerType, 4283Type converter) 4291Type _baseType; 4299Type _typeConverterType; 4309Type ot, 4322public Type OwnerType; 4423public Type ObjectType = null; 4424public Type SerializerType = null;
Framework\System\Windows\SystemResourceKey.cs (1)
364internal static short GetBamlIdBasedOnSystemResourceKeyId(Type targetType, string memberName)
Shared\System\Windows\Markup\ReflectionHelper.cs (29)
46internal static Type GetQualifiedType(string typeName) 51Type type = null; 55type = Type.GetType(nameFrags[0]); 104internal static bool IsNullableType(Type type) 109internal static bool IsInternalType(Type type) 111Type origType = type; 131internal static bool IsPublicType(Type type) 148internal static Type GetSystemType(Type type) 186internal static string GetTypeConverterAttributeData(Type type, out Type converterType) 192internal static string GetTypeConverterAttributeData(MemberInfo mi, out Type converterType) 200private static string GetCustomAttributeData(MemberInfo mi, Type attrType, out Type typeValue) 211internal static string GetCustomAttributeData(Type t, Type attrType, bool allowZeroArgs) 213Type typeValue = null; 223private static string GetCustomAttributeData(IList<CustomAttributeData> list, Type attrType, out Type typeValue, bool allowTypeAlso, bool allowZeroArgs) 244internal static string GetCustomAttributeData(Type t, 245Type attrType, 248out Type typeValue) 252Type currentType = t; 287Type attrType, 288out Type typeValue, 308if (attrValue == null && allowTypeAlso && tca.ArgumentType == typeof(Type)) 310typeValue = tca.Value as Type; 456Type typeValue = null; 474internal static bool IsInternalAllowedOnType(Type type)
PresentationCore (399)
Core\CSharp\MS\Internal\ConstrainedDataObject.cs (3)
115public object GetData(Type format) 129public bool GetDataPresent(Type format) 249public void SetData(Type format, object data)
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)
Core\CSharp\MS\Internal\Ink\ExtendedProperty.cs (6)
62Type type1 = this.Value.GetType(); 63Type type2 = that.Value.GetType(); 67Type elementType1 = type1.GetElementType(); 68Type elementType2 = type2.GetElementType(); 191Type type = _value.GetType(); 206Type elementType = type.GetElementType();
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
855Type valueType = value.GetType(); 873Type t = value.GetType();
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (3)
736public static readonly Type StylusTip = typeof(Int32); 737public static readonly Type IsHollow = typeof(bool); 738public static readonly Type StylusTipTransform = typeof(string);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (1)
211public static VarEnum ConvertToVarEnum(Type type, bool throwOnError)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (3)
440Type t = caughtException.GetType(); 447new Type[] { typeof(Exception) } 458new Type[] { typeof(string), typeof(Exception) }
Core\CSharp\System\Windows\CultureInfoConverter.cs (4)
53public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 67public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 128Type destinationType) 148new Type[] { typeof(string) },
Core\CSharp\System\Windows\DataObject.cs (11)
155public DataObject(Type format, object data) 280public object GetData(Type format) 294public bool GetDataPresent(Type format) 427public void SetData(Type format, object data) 2784public Object GetData(Type format) 2799public bool GetDataPresent(Type format) 2902public void SetData(Type format, Object data) 3741public override Type BindToType(string assemblyName, string typeName) 3793public Object GetData(Type format) 3808public bool GetDataPresent(Type format) 3947public void SetData(Type format, Object data)
Core\CSharp\System\Windows\Diagnostics\XamlSourceInfoHelper.cs (1)
79Type type = typeof(System.Xaml.XamlObjectEventArgs);
Core\CSharp\System\Windows\DurationConverter.cs (4)
27public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 46public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111Type destinationType) 123mi = typeof(Duration).GetConstructor(new Type[] { typeof(TimeSpan) });
Core\CSharp\System\Windows\EventManager.cs (6)
57Type handlerType, 58Type ownerType) 102Type classType, 158Type classType, 237public static RoutedEvent[] GetRoutedEventsForOwner(Type ownerType) 273internal static RoutedEvent GetRoutedEventFromName(string name, Type ownerType)
Core\CSharp\System\Windows\FontStretchConverter.cs (4)
38public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 56public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 117MethodInfo mi = typeof(FontStretch).GetMethod("FromOpenTypeStretch", new Type[]{typeof(int)});
Core\CSharp\System\Windows\FontStyleConverter.cs (4)
38public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 56public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 117ConstructorInfo ci = typeof(FontStyle).GetConstructor(new Type[]{typeof(int)});
Core\CSharp\System\Windows\FontWeightConverter.cs (4)
38public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 56public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 117MethodInfo mi = typeof(FontWeight).GetMethod("FromOpenTypeWeight", new Type[]{typeof(int)});
Core\CSharp\System\Windows\Generated\ContentElement.cs (1)
32static private readonly Type _typeofThis = typeof(ContentElement);
Core\CSharp\system\windows\generated\TextDecoration.cs (1)
291Type typeofThis = typeof(TextDecoration);
Core\CSharp\System\Windows\Generated\UIElement.cs (2)
32static private readonly Type _typeofThis = typeof(UIElement); 803internal static void RegisterEvents(Type type)
Core\CSharp\System\Windows\Generated\UIElement3D.cs (1)
32static private readonly Type _typeofThis = typeof(UIElement3D);
Core\CSharp\System\Windows\GlobalEventManager.cs (6)
20Type handlerType, 21Type ownerType) 51Type classType, 148internal static void AddOwner(RoutedEvent routedEvent, Type ownerType) 212internal static RoutedEvent[] GetRoutedEventsForOwner(Type ownerType) 245Type ownerType,
Core\CSharp\System\Windows\IDataObject.cs (3)
52object GetData(Type format); 94bool GetDataPresent(Type format); 180void SetData(Type format, object data);
Core\CSharp\System\Windows\Ink\DrawingAttributes.cs (1)
721Type t = propertyData.GetType();
Core\CSharp\System\Windows\Ink\StrokeCollectionConverter.cs (4)
46public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 131public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 156ConstructorInfo ci = typeof(StrokeCollection).GetConstructor(new Type[] { typeof(Stream) });
Core\CSharp\System\Windows\Input\Command\CanExecuteChangedEventManager.cs (1)
173Type managerType = typeof(CanExecuteChangedEventManager);
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (12)
242public static void RegisterClassInputBinding(Type type, InputBinding inputBinding) 277public static void RegisterClassCommandBinding(Type type, CommandBinding commandBinding) 393Type classType = targetElement.GetType(); 441Type classType = targetElement.GetType(); 660Tuple<Type, CommandBinding> tuple = null; // zero or one binding 661List<Tuple<Type, CommandBinding>> list = null; // more than one 666Type classType = sender.GetType(); 680tuple = new Tuple<Type, CommandBinding>(classType, commandBinding); 686list = new List<Tuple<Type, CommandBinding>>(); 689list.Add(new Tuple<Type, CommandBinding>(classType, commandBinding)); 716Type classType = list[i].Item1; 1016Type managerType = typeof(RequerySuggestedEventManager);
Core\CSharp\System\Windows\Input\Command\KeyGestureConverter.cs (3)
42public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 148public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Input\Command\MouseActionConverter.cs (3)
42public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 118public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Input\Command\MouseGestureConverter.cs (3)
41public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 123public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 150public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (5)
47public RoutedCommand(string name, Type ownerType) : this(name, ownerType, null) 57public RoutedCommand(string name, Type ownerType, InputGestureCollection inputGestures) 85internal RoutedCommand(string name, Type ownerType, byte commandId) : this(name, ownerType, null) 229public Type OwnerType 545private Type _ownerType;
Core\CSharp\System\Windows\Input\Command\RoutedUICommand.cs (3)
37public RoutedUICommand(string text, string name, Type ownerType) 49public RoutedUICommand(string text, string name, Type ownerType, InputGestureCollection inputGestures) 65internal RoutedUICommand(string name, Type ownerType, byte commandId):base(name, ownerType, commandId)
Core\CSharp\System\Windows\Input\Command\SecureUICommand.cs (1)
54internal SecureUICommand(PermissionSet userInitiated, string name, Type ownerType, byte commandId)
Core\CSharp\System\Windows\Input\CursorConverter.cs (3)
27public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 42public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 214public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Input\InputScopeConverter.cs (3)
44public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 68public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 151public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Input\InputScopeNameConverter.cs (3)
44public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 68public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 137public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Interop\HwndSource.cs (1)
475internal override IInputProvider GetInputProvider(Type inputDevice)
Core\CSharp\System\Windows\Markup\XmlLanguageConverter.cs (4)
46public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 60public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 121Type destinationType) 141new Type[] { typeof(string) },
Core\CSharp\System\Windows\Media\Animation\Animatable.cs (2)
125Type propertyType, 126Type ownerType,
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
1123private static IndependentAnimationStorage CreateIndependentAnimationStorageForType(Type type)
Core\CSharp\System\Windows\Media\Animation\AnimationTimeline.cs (1)
142public abstract Type TargetPropertyType { get; }
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimation.cs (2)
60Type typeofProp = typeof(Byte?); 61Type typeofThis = typeof(ByteAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimation.cs (2)
60Type typeofProp = typeof(Color?); 61Type typeofThis = typeof(ColorAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimation.cs (2)
60Type typeofProp = typeof(Decimal?); 61Type typeofThis = typeof(DecimalAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimation.cs (2)
60Type typeofProp = typeof(Double?); 61Type typeofThis = typeof(DoubleAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\Int16Animation.cs (2)
60Type typeofProp = typeof(Int16?); 61Type typeofThis = typeof(Int16Animation);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\Int32Animation.cs (2)
60Type typeofProp = typeof(Int32?); 61Type typeofThis = typeof(Int32Animation);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\Int64Animation.cs (2)
60Type typeofProp = typeof(Int64?); 61Type typeofThis = typeof(Int64Animation);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationBase.cs (1)
129public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimation.cs (2)
60Type typeofProp = typeof(Point3D?); 61Type typeofThis = typeof(Point3DAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimation.cs (2)
60Type typeofProp = typeof(Point?); 61Type typeofThis = typeof(PointAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (2)
60Type typeofProp = typeof(Quaternion?); 61Type typeofThis = typeof(QuaternionAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimation.cs (2)
60Type typeofProp = typeof(Rect?); 61Type typeofThis = typeof(RectAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (2)
60Type typeofProp = typeof(Rotation3D); 61Type typeofThis = typeof(Rotation3DAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationBase.cs (1)
100public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimation.cs (2)
60Type typeofProp = typeof(Single?); 61Type typeofThis = typeof(SingleAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimation.cs (2)
60Type typeofProp = typeof(Size?); 61Type typeofThis = typeof(SizeAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationBase.cs (1)
100public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineGroup.cs (1)
210Type typeofThis = typeof(TimelineGroup);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (2)
60Type typeofProp = typeof(Vector3D?); 61Type typeofThis = typeof(Vector3DAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimation.cs (2)
60Type typeofProp = typeof(Vector?); 61Type typeofThis = typeof(VectorAnimation);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
Core\CSharp\System\Windows\Media\Animation\KeySplineConverter.cs (4)
36public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptor, Type destinationType) 55public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111Type destinationType) 119ConstructorInfo ci = typeof(KeySpline).GetConstructor(new Type[]
Core\CSharp\System\Windows\Media\Animation\KeyTimeConverter.cs (5)
35Type type) 55Type type) 145Type destinationType) 160mi = typeof(KeyTime).GetMethod("FromPercent", new Type[] { typeof(double) }); 166mi = typeof(KeyTime).GetMethod("FromTimeSpan", new Type[] { typeof(TimeSpan) });
Core\CSharp\System\Windows\Media\Animation\RepeatBehaviorConverter.cs (5)
33public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 52public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 121Type destinationType) 140mi = typeof(RepeatBehavior).GetConstructor(new Type[] { typeof(double) }); 146mi = typeof(RepeatBehavior).GetConstructor(new Type[] { typeof(TimeSpan) });
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (1)
394private static void StaticInitialize(Type typeofThis)
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (1)
224Type elementType = array.GetType().GetElementType();
Core\CSharp\System\Windows\Media\ColorConverter.cs (4)
33public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 51public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 115public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 121MethodInfo mi = typeof(Color).GetMethod("FromArgb", new Type[]{typeof(byte), typeof(byte), typeof(byte), typeof(byte)});
Core\CSharp\System\Windows\Media\CultureSpecificStringDictionary.cs (1)
190Type elementType = array.GetType().GetElementType();
Core\CSharp\System\Windows\Media\Effects\Generated\BevelBitmapEffect.cs (1)
321Type typeofThis = typeof(BevelBitmapEffect);
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectGroup.cs (1)
229Type typeofThis = typeof(BitmapEffectGroup);
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectInput.cs (1)
262Type typeofThis = typeof(BitmapEffectInput);
Core\CSharp\System\Windows\Media\Effects\Generated\BlurBitmapEffect.cs (1)
240Type typeofThis = typeof(BlurBitmapEffect);
Core\CSharp\System\Windows\Media\Effects\Generated\BlurEffect.cs (1)
352Type typeofThis = typeof(BlurEffect);
Core\CSharp\System\Windows\Media\Effects\Generated\DropShadowBitmapEffect.cs (1)
355Type typeofThis = typeof(DropShadowBitmapEffect);
Core\CSharp\System\Windows\Media\Effects\Generated\DropShadowEffect.cs (1)
456Type typeofThis = typeof(DropShadowEffect);
Core\CSharp\System\Windows\Media\Effects\Generated\EmbossBitmapEffect.cs (1)
247Type typeofThis = typeof(EmbossBitmapEffect);
Core\CSharp\System\Windows\Media\Effects\Generated\OuterGlowBitmapEffect.cs (1)
301Type typeofThis = typeof(OuterGlowBitmapEffect);
Core\CSharp\System\Windows\Media\Effects\Generated\PixelShader.cs (1)
319Type typeofThis = typeof(PixelShader);
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
318Type typeofThis = typeof(ShaderEffect);
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (8)
328Type ownerType, 339Type ownerType, 359Type t = DetermineShaderConstantType(dp.PropertyType, PixelShader); 858internal static Type DetermineShaderConstantType(Type type, PixelShader pixelShader) 860Type result = null; 903Type t = value.GetType(); 987Type t = value.GetType();
Core\CSharp\System\Windows\Media\FamilyMapCollection.cs (1)
111Type elementType = array.GetType().GetElementType();
Core\CSharp\System\Windows\Media\FamilyTypefaceCollection.cs (1)
392Type elementType = array.GetType().GetElementType();
Core\CSharp\System\Windows\Media\FontFamilyConverter.cs (3)
42public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 56public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 137public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\ArcSegment.cs (1)
296Type typeofThis = typeof(ArcSegment);
Core\CSharp\System\Windows\Media\Generated\BezierSegment.cs (1)
271Type typeofThis = typeof(BezierSegment);
Core\CSharp\System\Windows\Media\Generated\BitmapCache.cs (1)
354Type typeofThis = typeof(BitmapCache);
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (1)
559Type typeofThis = typeof(BitmapCacheBrush);
Core\CSharp\System\Windows\Media\Generated\Brush.cs (1)
470Type typeofThis = typeof(Brush);
Core\CSharp\System\Windows\Media\Generated\BrushConverter.cs (3)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 145public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\CacheModeConverter.cs (3)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 145public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\CombinedGeometry.cs (1)
481Type typeofThis = typeof(CombinedGeometry);
Core\CSharp\System\Windows\Media\Generated\DashStyle.cs (1)
372Type typeofThis = typeof(DashStyle);
Core\CSharp\System\Windows\Media\Generated\DoubleCollectionConverter.cs (3)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 130public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\DrawingBrush.cs (1)
416Type typeofThis = typeof(DrawingBrush);
Core\CSharp\System\Windows\Media\Generated\DrawingGroup.cs (1)
915Type typeofThis = typeof(DrawingGroup);
Core\CSharp\System\Windows\Media\Generated\DrawingImage.cs (1)
353Type typeofThis = typeof(DrawingImage);
Core\CSharp\System\Windows\Media\Generated\EllipseGeometry.cs (1)
398Type typeofThis = typeof(EllipseGeometry);
Core\CSharp\System\Windows\Media\Generated\GeneralTransformGroup.cs (1)
218Type typeofThis = typeof(GeneralTransformGroup);
Core\CSharp\System\Windows\Media\Generated\Geometry.cs (1)
383Type typeofThis = typeof(Geometry);
Core\CSharp\System\Windows\Media\Generated\GeometryConverter.cs (3)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 145public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\GeometryDrawing.cs (1)
488Type typeofThis = typeof(GeometryDrawing);
Core\CSharp\System\Windows\Media\Generated\GeometryGroup.cs (1)
530Type typeofThis = typeof(GeometryGroup);
Core\CSharp\System\Windows\Media\Generated\GlyphRunDrawing.cs (1)
395Type typeofThis = typeof(GlyphRunDrawing);
Core\CSharp\System\Windows\Media\Generated\GradientBrush.cs (1)
315Type typeofThis = typeof(GradientBrush);
Core\CSharp\System\Windows\Media\Generated\GuidelineSet.cs (1)
401Type typeofThis = typeof(GuidelineSet);
Core\CSharp\System\Windows\Media\Generated\ImageBrush.cs (1)
416Type typeofThis = typeof(ImageBrush);
Core\CSharp\System\Windows\Media\Generated\ImageDrawing.cs (1)
374Type typeofThis = typeof(ImageDrawing);
Core\CSharp\System\Windows\Media\Generated\Int32CollectionConverter.cs (3)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 130public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\LinearGradientBrush.cs (1)
320Type typeofThis = typeof(LinearGradientBrush);
Core\CSharp\System\Windows\Media\Generated\LineGeometry.cs (1)
350Type typeofThis = typeof(LineGeometry);
Core\CSharp\System\Windows\Media\Generated\LineSegment.cs (1)
229Type typeofThis = typeof(LineSegment);
Core\CSharp\System\Windows\Media\Generated\MatrixTransform.cs (1)
311Type typeofThis = typeof(MatrixTransform);
Core\CSharp\System\Windows\Media\Generated\MediaTimeline.cs (1)
229Type typeofThis = typeof(MediaTimeline);
Core\CSharp\System\Windows\Media\Generated\PathFigure.cs (1)
293Type typeofThis = typeof(PathFigure);
Core\CSharp\System\Windows\Media\Generated\PathFigureCollectionConverter.cs (3)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 145public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\PathGeometry.cs (1)
322Type typeofThis = typeof(PathGeometry);
Core\CSharp\System\Windows\Media\Generated\PathSegment.cs (1)
229Type typeofThis = typeof(PathSegment);
Core\CSharp\System\Windows\Media\Generated\Pen.cs (1)
598Type typeofThis = typeof(Pen);
Core\CSharp\System\Windows\Media\Generated\PointCollectionConverter.cs (3)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 130public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\PolyBezierSegment.cs (1)
231Type typeofThis = typeof(PolyBezierSegment);
Core\CSharp\System\Windows\Media\Generated\PolyLineSegment.cs (1)
231Type typeofThis = typeof(PolyLineSegment);
Core\CSharp\System\Windows\Media\Generated\PolyQuadraticBezierSegment.cs (1)
231Type typeofThis = typeof(PolyQuadraticBezierSegment);
Core\CSharp\System\Windows\Media\Generated\QuadraticBezierSegment.cs (1)
236Type typeofThis = typeof(QuadraticBezierSegment);
Core\CSharp\System\Windows\Media\Generated\RadialGradientBrush.cs (1)
372Type typeofThis = typeof(RadialGradientBrush);
Core\CSharp\System\Windows\Media\Generated\RectangleGeometry.cs (1)
396Type typeofThis = typeof(RectangleGeometry);
Core\CSharp\System\Windows\Media\Generated\RotateTransform.cs (1)
364Type typeofThis = typeof(RotateTransform);
Core\CSharp\System\Windows\Media\Generated\ScaleTransform.cs (1)
397Type typeofThis = typeof(ScaleTransform);
Core\CSharp\System\Windows\Media\Generated\SkewTransform.cs (1)
397Type typeofThis = typeof(SkewTransform);
Core\CSharp\System\Windows\Media\Generated\SolidColorBrush.cs (1)
353Type typeofThis = typeof(SolidColorBrush);
Core\CSharp\System\Windows\Media\Generated\StreamGeometry.cs (1)
222Type typeofThis = typeof(StreamGeometry);
Core\CSharp\System\Windows\Media\Generated\TextEffect.cs (1)
317Type typeofThis = typeof(TextEffect);
Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (1)
441Type typeofThis = typeof(TileBrush);
Core\CSharp\System\Windows\Media\Generated\TransformConverter.cs (3)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 145public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\TransformGroup.cs (1)
485Type typeofThis = typeof(TransformGroup);
Core\CSharp\System\Windows\Media\Generated\TranslateTransform.cs (1)
331Type typeofThis = typeof(TranslateTransform);
Core\CSharp\System\Windows\Media\Generated\VectorCollectionConverter.cs (3)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 130public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Generated\VideoDrawing.cs (1)
355Type typeofThis = typeof(VideoDrawing);
Core\CSharp\System\Windows\Media\Generated\VisualBrush.cs (1)
450Type typeofThis = typeof(VisualBrush);
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (3)
48public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 66public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 214public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media\Imaging\Generated\BitmapImage.cs (1)
513Type typeofThis = typeof(BitmapImage);
Core\CSharp\System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (1)
387Type typeofThis = typeof(ColorConvertedBitmap);
Core\CSharp\System\Windows\Media\Imaging\Generated\CroppedBitmap.cs (1)
329Type typeofThis = typeof(CroppedBitmap);
Core\CSharp\System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (1)
387Type typeofThis = typeof(FormatConvertedBitmap);
Core\CSharp\System\Windows\Media\Imaging\Generated\TransformedBitmap.cs (1)
352Type typeofThis = typeof(TransformedBitmap);
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (4)
150internal void InitVector(Array array, Type type, VarEnum varEnum) 160internal void Init(Array array, Type type, VarEnum vt) 281Type type = value.GetType(); 368Type type = value.GetType();
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (3)
447Type elementType; 569Type elementType; 1264out Type elementType)
Core\CSharp\System\Windows\Media\PixelFormatConverter.cs (4)
40public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 58public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 108public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 127ConstructorInfo ci = typeof(PixelFormat).GetConstructor(new Type[]{typeof(string)});
Core\CSharp\System\Windows\Media\RequestCachePolicyConverter.cs (5)
34public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 54public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 120Type destinationType) 136ConstructorInfo ci = typeof(HttpRequestCachePolicy).GetConstructor(new Type[] { typeof(HttpRequestCachePolicy) }); 151ConstructorInfo ci = typeof(RequestCachePolicy).GetConstructor(new Type[] { typeof(RequestCachePolicy) });
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (1)
236internal static bool IsAncestorOf(DependencyObject ancestor, DependencyObject descendant, Type stopType)
Core\CSharp\System\Windows\Media3D\Generated\AxisAngleRotation3D.cs (1)
331Type typeofThis = typeof(AxisAngleRotation3D);
Core\CSharp\System\Windows\Media3D\Generated\Camera.cs (1)
366Type typeofThis = typeof(Camera);
Core\CSharp\System\Windows\Media3D\Generated\DiffuseMaterial.cs (1)
407Type typeofThis = typeof(DiffuseMaterial);
Core\CSharp\System\Windows\Media3D\Generated\DirectionalLight.cs (1)
319Type typeofThis = typeof(DirectionalLight);
Core\CSharp\System\Windows\Media3D\Generated\EmissiveMaterial.cs (1)
379Type typeofThis = typeof(EmissiveMaterial);
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DGroup.cs (1)
214Type typeofThis = typeof(GeneralTransform3DGroup);
Core\CSharp\System\Windows\Media3D\Generated\GeometryModel3D.cs (1)
505Type typeofThis = typeof(GeometryModel3D);
Core\CSharp\System\Windows\Media3D\Generated\Light.cs (1)
224Type typeofThis = typeof(Light);
Core\CSharp\System\Windows\Media3D\Generated\MaterialGroup.cs (1)
481Type typeofThis = typeof(MaterialGroup);
Core\CSharp\System\Windows\Media3D\Generated\Matrix3DConverter.cs (3)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 126public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media3D\Generated\MatrixCamera.cs (1)
334Type typeofThis = typeof(MatrixCamera);
Core\CSharp\System\Windows\Media3D\Generated\MatrixTransform3D.cs (1)
300Type typeofThis = typeof(MatrixTransform3D);
Core\CSharp\System\Windows\Media3D\Generated\MeshGeometry3D.cs (1)
476Type typeofThis = typeof(MeshGeometry3D);
Core\CSharp\System\Windows\Media3D\Generated\Model3D.cs (1)
366Type typeofThis = typeof(Model3D);
Core\CSharp\System\Windows\Media3D\Generated\Model3DGroup.cs (1)
498Type typeofThis = typeof(Model3DGroup);
Core\CSharp\System\Windows\Media3D\Generated\OrthographicCamera.cs (1)
343Type typeofThis = typeof(OrthographicCamera);
Core\CSharp\System\Windows\Media3D\Generated\PerspectiveCamera.cs (1)
343Type typeofThis = typeof(PerspectiveCamera);
Core\CSharp\System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (3)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 126public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media3D\Generated\Point3DConverter.cs (3)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 126public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media3D\Generated\Point4DConverter.cs (3)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 126public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media3D\Generated\PointLightBase.cs (1)
319Type typeofThis = typeof(PointLightBase);
Core\CSharp\System\Windows\Media3D\Generated\ProjectionCamera.cs (1)
319Type typeofThis = typeof(ProjectionCamera);
Core\CSharp\System\Windows\Media3D\Generated\QuaternionConverter.cs (3)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 126public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media3D\Generated\QuaternionRotation3D.cs (1)
310Type typeofThis = typeof(QuaternionRotation3D);
Core\CSharp\System\Windows\Media3D\Generated\Rect3DConverter.cs (3)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 126public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media3D\Generated\RotateTransform3D.cs (1)
454Type typeofThis = typeof(RotateTransform3D);
Core\CSharp\System\Windows\Media3D\Generated\ScaleTransform3D.cs (1)
482Type typeofThis = typeof(ScaleTransform3D);
Core\CSharp\System\Windows\Media3D\Generated\Size3DConverter.cs (3)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 126public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media3D\Generated\SpecularMaterial.cs (1)
407Type typeofThis = typeof(SpecularMaterial);
Core\CSharp\System\Windows\Media3D\Generated\SpotLight.cs (1)
415Type typeofThis = typeof(SpotLight);
Core\CSharp\System\Windows\Media3D\Generated\Transform3DGroup.cs (1)
481Type typeofThis = typeof(Transform3DGroup);
Core\CSharp\System\Windows\Media3D\Generated\TranslateTransform3D.cs (1)
371Type typeofThis = typeof(TranslateTransform3D);
Core\CSharp\System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (3)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 126public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\Media3D\Generated\Vector3DConverter.cs (3)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 126public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Core\CSharp\System\Windows\PresentationSource.cs (1)
83internal virtual IInputProvider GetInputProvider(Type inputDevice)
Core\CSharp\System\Windows\RoutedEvent.cs (8)
37public RoutedEvent AddOwner(Type ownerType) 74public Type HandlerType 85Type handlerType = handler.GetType(); 98public Type OwnerType 121Type handlerType, 122Type ownerType) 145private Type _handlerType; 146private Type _ownerType;
Core\CSharp\system\windows\TextDecorationCollectionConverter.cs (4)
39public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 188public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 193new Type[]{typeof(IEnumerable<TextDecoration>)}
Shared\MS\Internal\Commands\CommandLibraryHelper.cs (1)
28internal static RoutedUICommand CreateUICommand(string name, Type ownerType, byte commandId, PermissionSet ps)
Shared\MS\Internal\HashHelper.cs (2)
35Type[] types = new Type[] {
Shared\MS\Utility\PerfService.cs (1)
51Type type = key.GetType();
PresentationFramework (1610)
parent\InternalApis\Clr\inc\LocalAppContext.cs (2)
86Type appContextType = typeof(object).Assembly.GetType("System.AppContext"); 94new Type[] { typeof(string), typeof(bool).MakeByRefType() },
src\Framework\Microsoft\Win32\OpenFileDialog.cs (1)
473return (IFileDialog)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.FileOpenDialog)));
src\Framework\Microsoft\Win32\SaveFileDialog.cs (1)
415return (IFileDialog)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.FileSaveDialog)));
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
209public void RegisterSelectionProcessor(SelectionProcessor processor, Type selectionType) 244public SelectionProcessor GetSelectionProcessor(Type selectionType)
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
112internal static void SetTypeZLevel(Type type, int level) 523Type type = component.GetType();
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (4)
315internal override Type OwnerType 591internal override Type OwnerType 1018Type elementType = cursor.GetElementType(LogicalDirection.Forward); 1044Type elementType = cursor.ParentType;
src\Framework\MS\Internal\Annotations\Serializer.cs (2)
47public Serializer(Type type) 63_ctor = type.GetConstructor(new Type[0]);
src\Framework\MS\Internal\AppModel\Journaling.cs (2)
725Type pfType = Type.GetType(this._typeName.Value);
src\Framework\MS\Internal\AppModel\ReturnEventSaver.cs (1)
154Type.GetType(_returnList[i]._delegateTypeName),
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\Controls\ConnectionPointCookie.cs (1)
33internal ConnectionPointCookie(object source, object sink, Type eventInterface)
src\Framework\MS\Internal\Data\AccessorTable.cs (6)
31internal AccessorInfo(object accessor, Type propertyType, object[] args) 39internal Type PropertyType { get { return _propertyType; } } 45Type _propertyType; // type of the property 58internal AccessorInfo this[SourceValueType sourceValueType, Type type, string name] 195public AccessorTableKey(SourceValueType sourceValueType, Type type, string name) 230Type _type;
src\Framework\MS\Internal\Data\BindingWorker.cs (2)
51internal virtual Type SourcePropertyType { get { return null; } } 54internal Type TargetPropertyType { get { return TargetProperty.PropertyType; } }
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (5)
69Type targetType = targetDP.PropertyType; 124internal override Type SourcePropertyType 388internal void SetupDefaultValueConverter(Type type) 488Type type = PW.GetType(k); 503Type type = PW.GetType(k);
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\DynamicObjectAccessor.cs (6)
20protected DynamicObjectAccessor(Type ownerType, string propertyName) 26public Type OwnerType { get { return _ownerType; } } 29public Type PropertyType { get { return typeof(object); } } 36Type _ownerType; 46protected DynamicPropertyAccessor(Type ownerType, string propertyName) 62protected DynamicIndexerAccessor(Type ownerType, string propertyName)
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\IndexedEnumerable.cs (4)
500Type srcType = collection.GetType(); 502MethodInfo mi = srcType.GetMethod("IndexOf", new Type[] {typeof(object)}); 683bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 691protected virtual bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
src\Framework\MS\Internal\Data\IndexerPropertyInfo.cs (5)
74public override Type PropertyType 84public override Type DeclaringType 89public override object[] GetCustomAttributes(Type attributeType, bool inherit) 99public override bool IsDefined(Type attributeType, bool inherit) 109public override Type ReflectedType
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
560private DependencyObject FindAncestorOfType(Type type, int level, DependencyObject d, bool isTracing)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (13)
195internal Type GetType(int level) 706Type declaringType = (oldPI != null) ? oldPI.DeclaringType 876Type declaringType = (newPI != null) ? newPI.DeclaringType 1036Type oldType = ReflectionHelper.GetReflectionType(oldItem); 1037Type newType = ReflectionHelper.GetReflectionType(item); 1038Type sourceType = null; 1321private MemberInfo[] GetIndexers(Type type, int k) 1365Type paramType = (aryPI != null) ? aryPI[i].ParameterType : typeof(Object); 1463Type type = pi.DeclaringType; 1774bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 1895public Type type; // Type of the value (useful for Arrays) 1909static readonly IList<Type> IListIndexerWhitelist = new Type[]
src\Framework\MS\Internal\Data\StaticPropertyChangedEventManager.cs (10)
49public static void AddHandler(Type type, EventHandler<PropertyChangedEventArgs> handler, string propertyName) 62public static void RemoveHandler(Type type, EventHandler<PropertyChangedEventArgs> handler, string propertyName) 134Type managerType = typeof(StaticPropertyChangedEventManager); 161private void PrivateAddHandler(Type type, EventHandler<PropertyChangedEventArgs> handler, string propertyName) 186private void PrivateRemoveHandler(Type type, EventHandler<PropertyChangedEventArgs> handler, string propertyName) 263public TypeRecord(Type type, StaticPropertyChangedEventManager manager) 270public Type Type { get { return _type; } } 575Type _type; // the type whose static property-changes we're listening to 611public void StartListening(Type type) 622public void StopListening(Type type)
src\Framework\MS\Internal\Data\ValueChangedEventManager.cs (1)
284Type managerType = typeof(ValueChangedEventManager);
src\Framework\MS\Internal\Data\ValueTable.cs (1)
202bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
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\MS\Internal\Data\XmlBindingWorker.cs (1)
409bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs args)
src\Framework\MS\Internal\Data\XmlNodeChangedEventManager.cs (1)
142Type managerType = typeof(XmlNodeChangedEventManager);
src\Framework\MS\Internal\Documents\FixedDocumentPaginator.cs (1)
204object IServiceProvider.GetService(Type serviceType)
src\Framework\MS\Internal\Documents\FixedDocumentSequencePaginator.cs (1)
204object IServiceProvider.GetService(Type serviceType)
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (1)
1088object IServiceProvider.GetService(Type serviceType)
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
746object IServiceProvider.GetService(Type serviceType)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
63object IServiceProvider.GetService(Type serviceType)
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (1)
832Type type = assm.GetType(fullTypeName);
src\Framework\MS\Internal\Helper.cs (5)
607Type targetType = targetObject.GetType(); 668Type memberType; 744static EventHandler<System.Windows.Markup.XamlSetMarkupExtensionEventArgs> LookupSetMarkupExtensionHandler(Type type) 1549static readonly Type NullableType = Type.GetType("System.Nullable`1");
src\Framework\MS\Internal\Interop\InternalDispatchObject.cs (4)
104MethodInfo IReflect.GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers) 120PropertyInfo IReflect.GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) 152Type IReflect.UnderlyingSystemType
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (2)
290Type filterType = Type.GetTypeFromCLSID(clsid);
src\Framework\MS\Internal\LayoutDump.cs (9)
156internal static void AddUIElementDumpHandler(Type type, DumpCustomUIElement dumper) 164internal static void AddDocumentPageDumpHandler(Type type, DumpCustomDocumentPage dumper) 269Type t = element.GetType(); 318Type t = page.GetType(); 906Type paragraphResultType = paragraph.GetType(); 909Type paraClientType = paraClient.GetType(); 934Type type = typeof(Table); 951Type paragraphResultType = paragraph.GetType(); 966Type typeOfCell = cell.GetType();
src\Framework\MS\Internal\Navigation\BindStream.cs (1)
231Type requestedType
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
1177object IServiceProvider.GetService(Type serviceType)
src\Framework\MS\Internal\SystemCoreHelper.cs (1)
25internal static object NewDynamicPropertyAccessor(Type ownerType, string propertyName)
src\Framework\MS\Internal\SystemDataHelper.cs (2)
42internal static bool IsSqlNullableType(Type type) 72internal static object NullValueForSqlNullableType(Type type)
src\Framework\MS\Internal\TraceData.cs (2)
255Type type = o.GetType(); 275static public string IdentifyWeakEvent(Type type)
src\Framework\MS\Internal\WeakHashtable.cs (1)
240public static IWeakHashtable FromKeyType(Type tKey)
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\AlternateWordForm.cs (3)
34s_WinRTType = Type.GetType(s_TypeName); 90public static Type WinRTType 99private static Type s_WinRTType = null;
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\TextSegment.cs (3)
23s_WinRTType = Type.GetType(s_TypeName); 65public static Type WinRTType 73private static Type s_WinRTType;
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\WordSegment.cs (3)
29s_WinRTType = Type.GetType(s_TypeName); 97public static Type WinRTType 111private static Type s_WinRTType = null;
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (4)
45s_WinRTType = Type.GetType(s_TypeName); 48constructor = s_WinRTType.GetConstructor(new Type[] { typeof(string) }); 206public static Type WinRTType 272private static Type s_WinRTType;
src\Framework\System\Windows\Application.cs (1)
285internal object GetService(Type serviceType)
src\Framework\System\Windows\AttachedPropertyBrowsableForChildrenAttribute.cs (1)
102Type ownerType = dp.OwnerType;
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
300internal static Visual FindVisualByType(Visual parent, Type type)
src\Framework\System\Windows\ComponentResourceKey.cs (3)
26public ComponentResourceKey(Type typeInTargetAssembly, object resourceId) 47public Type TypeInTargetAssembly 142private Type _typeInTargetAssembly;
src\Framework\System\Windows\ComponentResourceKeyConverter.cs (3)
32public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 54public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 103public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
src\Framework\System\Windows\Controls\AlternationConverter.cs (2)
39public object Convert (object o, Type targetType, object parameter, CultureInfo culture) 56public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture)
src\Framework\System\Windows\Controls\BooleanToSelectiveScrollingOrientationConverter.cs (2)
27public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 46public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
src\Framework\System\Windows\Controls\BooleanToVisibilityConverter.cs (2)
34public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 57public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (4)
37public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 43Type doubleType = typeof(double); 58Type paramType = parameter.GetType(); 144public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
src\Framework\System\Windows\Controls\ContentPresenter.cs (3)
215Type type; // unused 634internal static object DataTypeForItem(object item, DependencyObject target, out Type type) 1150object IServiceProvider.GetService(Type serviceType) { return null; }
src\Framework\System\Windows\Controls\DataGrid.cs (1)
42Type ownerType = typeof(DataGrid);
src\Framework\System\Windows\Controls\DataGridAutoGeneratingColumnEventArgs.cs (4)
29public DataGridAutoGeneratingColumnEventArgs(string propertyName, Type propertyType, DataGridColumn column) : 42Type propertyType, 85public Type PropertyType 142private Type _propertyType;
src\Framework\System\Windows\Controls\DataGridColumn.cs (1)
1168Type propertyType = itemProperty.PropertyType;
src\Framework\System\Windows\Controls\DataGridHeadersVisibilityToVisibilityConverter.cs (2)
28public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 66public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (5)
27public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 30TypeCode tc = Type.GetTypeCode(sourceType); 54public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 137Type destinationType) 155ConstructorInfo ci = typeof(DataGridLength).GetConstructor(new Type[] { typeof(double), typeof(DataGridLengthUnitType) });
src\Framework\System\Windows\Controls\DeferredRunTextReference.cs (1)
50internal override Type GetValueType()
src\Framework\System\Windows\Controls\DeferredSelectedIndexReference.cs (1)
50internal override Type GetValueType()
src\Framework\System\Windows\Controls\DeferredTextReference.cs (1)
58internal override Type GetValueType()
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1899object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1183Type headerType = (srcHeader != null ? srcHeader.GetType() : typeof(GridViewColumnHeader));
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
95Type oldType = (e.OldValue != null) ? e.OldValue.GetType() : null; 96Type newType = (e.NewValue != null) ? e.NewValue.GetType() : null; 702private Type _oldContentType;
src\Framework\System\Windows\Controls\Image.cs (3)
625Type managerType = typeof(DownloadCompletedEventManager); 751Type managerType = typeof(DownloadFailedEventManager); 877Type managerType = typeof(DecodeFailedEventManager);
src\Framework\System\Windows\Controls\InkCanvas.cs (4)
70Type ownerType = typeof(InkCanvas); 2596Type ownerType = typeof(InkCanvas); 3160public object Convert(object o, Type type, object parameter, System.Globalization.CultureInfo culture) 3175public object ConvertBack(object o, Type type, object parameter, System.Globalization.CultureInfo culture)
src\Framework\System\Windows\Controls\ItemCollection.cs (1)
1948bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (3)
1122Type sourceType = source.GetType(); 2366bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 2812private Type _containerType; // type of containers on the recycle queue
src\Framework\System\Windows\Controls\ItemsPanelTemplate.cs (3)
74internal override Type TargetTypeInternal 81internal override void SetTargetTypeInternal(Type targetType) 87static internal Type DefaultTargetType
src\Framework\System\Windows\Controls\ItemsPresenter.cs (1)
311Type type = null;
src\Framework\System\Windows\Controls\MenuScrollingVisibilityConverter.cs (4)
45public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 51Type doubleType = typeof(double); 67Type paramType = parameter.GetType(); 122public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (2)
249Type ITextPointer.GetElementType(LogicalDirection direction) 608Type ITextPointer.ParentType
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
38Type ownerType = typeof(DataGridColumnHeadersPresenter);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (2)
512protected object GetService(Type serviceType) 1037object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1787object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
326bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs args) 478Type managerType = typeof(InternalCollectionChangedEventManager);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (3)
620Type selectedType = (value != null) ? value.GetType() : null; 642private bool VerifyEqual(object knownValue, Type knownType, object itemValue, DynamicValueConverter converter) 648Type itemType = itemValue.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\Controls\TextBlock.cs (3)
154Type parentType = _complexContent.TextContainer.Parent.GetType(); 156Type valueType = value.GetType(); 290object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Controls\ToolBar.cs (1)
486Type feType = fe.GetType();
src\Framework\System\Windows\Controls\VirtualizationCacheLengthConverter.cs (5)
42public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 45TypeCode tc = Type.GetTypeCode(sourceType); 73public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 144public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType) 163ConstructorInfo ci = typeof(VirtualizationCacheLength).GetConstructor(new Type[] { typeof(double), typeof(VirtualizationCacheLengthUnit) });
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
12102for (Type t = o.GetType(); !isWPFControl && t != null; t = t.BaseType)
src\Framework\System\Windows\Controls\WebBrowser.cs (2)
602Type t = value.GetType(); 1466return Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.WebBrowser)));
src\Framework\System\Windows\ControlTemplate.cs (7)
46public ControlTemplate(Type targetType) 92public Type TargetType 135private void ValidateTargetType(Type targetType, string argName) 157internal override Type TargetTypeInternal 172internal override void SetTargetTypeInternal(Type targetType) 190private Type _targetType; 194internal static readonly Type DefaultTargetType = typeof(Control);
src\Framework\System\Windows\CornerRadiusConverter.cs (5)
44public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 47TypeCode tc = Type.GetTypeCode(sourceType); 75public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 140public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType) 162ConstructorInfo ci = typeof(CornerRadius).GetConstructor(new Type[] { typeof(double), typeof(double), typeof(double), typeof(double) });
src\Framework\System\Windows\Data\Binding.cs (1)
690internal override ValidationRule LookupValidationRule(Type type)
src\Framework\System\Windows\Data\BindingBase.cs (3)
432internal ValidationRule GetValidationRule(Type type) 446internal virtual ValidationRule LookupValidationRule(Type type) 451internal static ValidationRule LookupValidationRule(Type type, Collection<ValidationRule> collection)
src\Framework\System\Windows\Data\BindingExpression.cs (9)
364internal Type ConverterSourceType 430internal void SetupDefaultValueConverter(Type type) 1267Type targetType = GetEffectiveTargetType(); 1617private object ConvertHelper(IValueConverter converter, object value, Type targetType, object parameter, CultureInfo culture) 1688Type sourceType, 1844Type sourceType = Worker.SourcePropertyType; 2177private bool IsValidValueForUpdate(object value, Type sourceType) 2537bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 2734Type _sourceType;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (9)
148Type type = parent.GetType(); 506bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 1604internal object NullValueForType(Type type) 1622internal ValidationRule LookupValidationRule(Type type) 1919internal virtual bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 2570internal Type GetEffectiveTargetType() 2572Type targetType = TargetProperty.PropertyType; 2593Type targetType = TargetProperty.PropertyType; 2671Type targetType = TargetProperty.PropertyType;
src\Framework\System\Windows\Data\BindingListCollectionView.cs (1)
2208Type itemType;
src\Framework\System\Windows\Data\CollectionContainer.cs (2)
289bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 297protected virtual bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
src\Framework\System\Windows\Data\CollectionView.cs (7)
1468Type itemType; 1524internal Type GetItemType(bool useRepresentativeItem) 1526Type collectionType = SourceCollection.GetType(); 1527Type[] interfaces = collectionType.GetInterfaces(); 1535Type interfaceType = interfaces[i]; 1540Type[] typeParameters = interfaceType.GetGenericArguments(); 1543Type type = typeParameters[0];
src\Framework\System\Windows\Data\CollectionViewSource.cs (15)
161typeof(Type), 164(Type)null, 174public Type CollectionViewType 176get { return (Type) GetValue(CollectionViewTypeProperty); } 184Type oldCollectionViewType = (Type) e.OldValue; 185Type newCollectionViewType = (Type) e.NewValue; 199protected virtual void OnCollectionViewTypeChanged(Type oldCollectionViewType, Type newCollectionViewType) 205Type type = (Type)o; 733bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 741protected virtual bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 915void EnsureView(object source, Type collectionViewType)
src\Framework\System\Windows\Data\CompositeCollection.cs (2)
432bool IWeakEventListener.ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 440protected virtual bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
src\Framework\System\Windows\Data\DataChangedEventManager.cs (1)
137Type managerType = typeof(DataChangedEventManager);
src\Framework\System\Windows\Data\IMultiValueConverter.cs (2)
58object Convert(object[] values, Type targetType, object parameter, CultureInfo culture); 98object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture);
src\Framework\System\Windows\Data\IValueConverter.cs (2)
68object Convert(object value, Type targetType, object parameter, CultureInfo culture); 95object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture);
src\Framework\System\Windows\Data\ListCollectionView.cs (2)
704Type itemType = GetItemType(true); 707_itemConstructor = itemType.GetConstructor(Type.EmptyTypes);
src\Framework\System\Windows\Data\MultiBinding.cs (1)
362internal override ValidationRule LookupValidationRule(Type type)
src\Framework\System\Windows\Data\MultiBindingExpression.cs (3)
57_tempTypes = new Type[count]; 1091internal override bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e) 1436Type[] _tempTypes;
src\Framework\System\Windows\Data\ObjectDataProvider.cs (3)
98public Type ObjectType 371private bool SetObjectType(Type newType) 670Type _objectType;
src\Framework\System\Windows\Data\RelativeSource.cs (3)
71public RelativeSource(RelativeSourceMode mode, Type ancestorType, int ancestorLevel) 169public Type AncestorType 303private Type _ancestorType;
src\Framework\System\Windows\Data\ValueConversionAttribute.cs (8)
56public ValueConversionAttribute(Type sourceType, Type targetType) 69public Type SourceType 77public Type TargetType 85public Type ParameterType 120private Type _sourceType; 121private Type _targetType; 122private Type _parameterType;
src\Framework\System\Windows\DataTemplate.cs (3)
135internal override Type TargetTypeInternal 142internal override void SetTargetTypeInternal(Type targetType) 166static internal Type DefaultTargetType
src\Framework\System\Windows\DeferrableContentConverter.cs (1)
29public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
src\Framework\System\Windows\DialogResultConverter.cs (3)
39public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 51public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 75Type destinationType)
src\Framework\System\Windows\Documents\DocumentSequence.cs (2)
75object IServiceProvider.GetService(Type serviceType) 1116object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Documents\DocumentSequenceHighlightLayer.cs (2)
104internal override Type OwnerType 165internal override Type OwnerType
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
888internal override object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (4)
134Type ITextPointer.GetElementType(LogicalDirection direction) 335Type ITextPointer.ParentType 708public static Type GetElementType(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 720public static Type GetElementType(DocumentSequenceTextPointer thisTp)
src\Framework\System\Windows\Documents\DPTypeDescriptorContext.cs (1)
186object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Documents\FixedDocument.cs (2)
108object IServiceProvider.GetService(Type serviceType) 1425object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Documents\FixedElement.cs (1)
374internal Type Type
src\Framework\System\Windows\Documents\FixedTextPointer.cs (2)
174Type ITextPointer.GetElementType(LogicalDirection direction) 553Type ITextPointer.ParentType
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
71static private readonly Type _typeofThis = typeof(FlowDocument); 1708object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Documents\HighlightChangedEventArgs.cs (1)
33internal abstract Type OwnerType { get; }
src\Framework\System\Windows\Documents\HighlightLayer.cs (1)
86internal abstract Type OwnerType { get; }
src\Framework\System\Windows\Documents\Highlights.cs (5)
67internal virtual object GetHighlightValue(StaticTextPointer textPosition, LogicalDirection direction, Type highlightLayerOwnerType) 268internal HighlightLayer GetLayer(Type highlightLayerType) 416internal LayerHighlightChangedEventArgs(ReadOnlyCollection<TextSegment> ranges, Type ownerType) 432internal override Type OwnerType 444private readonly Type _ownerType;
src\Framework\System\Windows\Documents\ITextPointer.cs (2)
127Type GetElementType(LogicalDirection direction); 180Type ParentType { get; }
src\Framework\System\Windows\Documents\NullTextNavigator.cs (2)
124Type ITextPointer.GetElementType(LogicalDirection direction) 413Type ITextPointer.ParentType
src\Framework\System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
115Type factoryType = factoryInstance.GetType();
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (2)
105internal override Type OwnerType 222internal override Type OwnerType
src\Framework\System\windows\Documents\TextEditor.cs (4)
342internal static void RegisterCommandHandlers(Type controlType, bool acceptsRichContent, bool readOnly, bool registerEventListeners) 351if (((Type)_registeredEditingTypes[i]).IsAssignableFrom(controlType)) 359if (controlType.IsAssignableFrom((Type)_registeredEditingTypes[i])) 362SR.Get(SRID.TextEditorCanNotRegisterCommandHandler, ((Type)_registeredEditingTypes[i]).Name, controlType.Name));
src\Framework\System\windows\Documents\TextEditorCharacters.cs (1)
47internal static void _RegisterClassHandlers(Type controlType, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
38internal static void _RegisterClassHandlers(Type controlType, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (1)
57internal static void _RegisterClassHandlers(Type controlType, bool acceptsRichContent, bool readOnly, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
56internal static void _RegisterClassHandlers(Type controlType, bool readOnly, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorLists.cs (1)
46internal static void _RegisterClassHandlers(Type controlType, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
48internal static void _RegisterClassHandlers(Type controlType, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorParagraphs.cs (1)
47internal static void _RegisterClassHandlers(Type controlType, bool acceptsRichContent, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorSelection.cs (1)
55internal static void _RegisterClassHandlers(Type controlType, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
32internal static void _RegisterClassHandlers(Type controlType, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorTables.cs (1)
47internal static void _RegisterClassHandlers(Type controlType, bool registerEventListeners)
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
63internal static void _RegisterClassHandlers(Type controlType, bool registerEventListeners) 844Type parentType = position.ParentType;
src\Framework\System\Windows\Documents\TextElement.cs (1)
846Type valueType = value.GetType();
src\Framework\System\Windows\Documents\TextElementCollection.cs (1)
632Type elementType = array.GetType().GetElementType();
src\Framework\System\Windows\Documents\TextPointer.cs (3)
1439Type containerType = this.TextContainer.Parent.GetType(); 2434Type ITextPointer.GetElementType(LogicalDirection direction) 3640Type ITextPointer.ParentType
src\Framework\System\Windows\Documents\TextPointerBase.cs (10)
186Type forwardType = forwardPosition.GetElementType(LogicalDirection.Forward); 187Type backwardType = backwardPosition.GetElementType(LogicalDirection.Backward); 231Type parentType = position.ParentType; 284private static bool IsInAncestorScope(ITextPointer position, Type allowedParentType, Type limitingType) 287Type parentType = navigator.ParentType; 321Type elementType; 598Type elementType = position.GetElementType(direction); 1520private static bool IsNextToRichBreak(ITextPointer thisPosition, LogicalDirection direction, Type lineBreakType) 1528Type neighbor = thisPosition.GetElementType(direction);
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
690Type elementType;
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\Documents\TextSelectionHighlightLayer.cs (2)
271internal override Type OwnerType 371internal override Type OwnerType
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (2)
430internal ElementContentContainer(Type elementType, PropertyRecord[] localValues, ResourceDictionary resources, ContentContainer childContainer) 471private readonly Type _elementType;
src\Framework\System\Windows\Documents\TextTreeExtractElementUndoUnit.cs (1)
101private readonly Type _type;
src\Framework\System\Windows\Documents\Typography.cs (2)
38static private readonly Type _typeofThis = typeof(Typography); 39static private readonly Type _typeofBool = typeof(bool);
src\Framework\System\Windows\Documents\ZoomPercentageConverter.cs (2)
72public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 137public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
src\Framework\System\Windows\DynamicResourceExtensionConverter.cs (3)
33public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 50public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) 62return new InstanceDescriptor(typeof(DynamicResourceExtension).GetConstructor(new Type[] { typeof(object) }),
src\Framework\System\Windows\EventSetterHandlerConverter.cs (4)
18static Type s_ServiceProviderContextType; 23public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 39public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 97Type destinationType)
src\Framework\System\Windows\FigureLengthConverter.cs (5)
55Type sourceType) 58TypeCode tc = Type.GetTypeCode(sourceType); 89Type destinationType) 156Type destinationType) 175ConstructorInfo ci = typeof(FigureLength).GetConstructor(new Type[] { typeof(double), typeof(FigureUnitType) });
src\Framework\System\Windows\FontSizeConverter.cs (3)
47public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 61public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 115public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
src\Framework\System\Windows\FrameworkElement.cs (3)
111static private readonly Type _typeofThis = typeof(FrameworkElement); 1425internal static object FindTemplateResourceInternal(DependencyObject target, object item, Type templateType) 1433Type type;
src\Framework\System\Windows\FrameworkElementFactory.cs (7)
44public FrameworkElementFactory(Type type) : this(type, null) 63public FrameworkElementFactory(Type type, string name) 73public Type Type 1134internal static void AddNodeToLogicalTree( DependencyObject parent, Type type, 1208Type targetType = _frameworkTemplate.TargetTypeInternal; 1251Type targetType = _frameworkTemplate.TargetTypeInternal; 1301private Type _type;
src\Framework\System\Windows\FrameworkPropertyMetadata.cs (1)
636protected override void OnApply(DependencyProperty dp, Type targetType)
src\Framework\System\Windows\FrameworkTemplate.cs (5)
1350internal virtual Type TargetTypeInternal 1357internal abstract void SetTargetTypeInternal(Type targetType); 1520internal Dictionary<int, Type> ChildTypeFromChildIndex 1558private Dictionary<int, Type> _childTypeFromChildIndex = new Dictionary<int, Type>();
src\Framework\System\Windows\GridLengthConverter.cs (5)
58Type sourceType) 61TypeCode tc = Type.GetTypeCode(sourceType); 92Type destinationType) 176Type destinationType) 195ConstructorInfo ci = typeof(GridLength).GetConstructor(new Type[] { typeof(double), typeof(GridUnitType) });
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\Input\Command\CommandValueSerializer.cs (8)
27if (context == null || context.GetValueSerializerFor(typeof(Type)) == null) 45Type ownerType = command.OwnerType; 89typeSerializer = context.GetValueSerializerFor(typeof(Type)); 105public override IEnumerable<Type> TypeReferences(object value, IValueSerializerContext context) 114return new Type[] { command.OwnerType }; 127Type declaringType = null; 146ValueSerializer typeSerializer = context.GetValueSerializerFor(typeof(Type)); 154declaringType = typeSerializer.ConvertFromString(typeName, context) as Type;
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
308return Activator.CreateInstance(Type.GetTypeFromCLSID(clsid));
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
145object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Interop\DynamicScriptObject.cs (2)
417Type argType = args[i].GetType(); 696Type type = value.GetType();
src\Framework\System\Windows\LengthConverter.cs (5)
51public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 54TypeCode tc = Type.GetTypeCode(sourceType); 81public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 149Type destinationType) 169ConstructorInfo ci = typeof(double).GetConstructor(new Type[] { typeof(double) });
src\Framework\System\Windows\LostFocusEventManager.cs (1)
150Type managerType = typeof(LostFocusEventManager);
src\Framework\System\Windows\Markup\AttributeData.cs (8)
75Type targetType, 77Type declaringType, 80Type serializerType, 101internal Type SerializerType; // Type of serializer (if any) 132Type targetType, 134Type declaringType, 153internal Type TargetType; // Target type 154internal Type DeclaringType; // Type where Attribute is declared
src\Framework\System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (3)
13public KeyRecord(bool shared, bool sharedSet, int valuePosition, Type keyType) : 78public Type KeyType 80get { return _data as Type; }
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (4)
28private delegate Type LazyTypeOf(); 50public static Type GetAttachableTargetType(Int16 propertyId) 86public static Type GetKnownType(Int16 typeId) 2060public static Type GetTypeConverterForKnownProperty(Int16 propertyId)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (15)
33private Dictionary<Type, TypeConverter> _enumTypeConverterMap = new Dictionary<Type, TypeConverter>(); 410internal Type GetTypeOfFirstStartObject(KeyRecord record) 909Type memberType; 1015Type type = Baml2006SchemaContext.KnownTypes.GetKnownType(typeId); 1148Type rootType = _root.GetType(); 1390Type currentType = eventProperty.DeclaringType.UnderlyingType; 1563Type type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16()).UnderlyingType; 1603Type propertyType = property.Type.UnderlyingType; 1660Type typeExtensionType = null; 1661Type memberType = null; 1677Type ownerType = null; 1774Type ownerType = null; 1930Type memberType = null; 2642private string GetStaticExtensionValue(short valueId, out Type memberType, out object providedValue)
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (4)
61public override XamlType GetXamlType(Type type) 152internal Type GetClrType(Int16 typeId) 546private Type ResolveBamlTypeToType(BamlType bamlType) 563Type type = ResolveBamlTypeToType(bamlType);
src\Framework\System\Windows\Markup\Baml2006\Baml6ConstructorInfo.cs (3)
9public Baml6ConstructorInfo(List<Type> types, Func<Object[], object> ctor) 15List<Type> _types; 18public List<Type> Types { get { return _types; } }
src\Framework\System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
64object IServiceProvider.GetService(Type serviceType)
src\Framework\System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (1)
31object IServiceProvider.GetService(Type serviceType)
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\Baml2006\WpfKnownMember.cs (6)
27Type _deferringLoader; 28Type _typeConverterType; 29Type _type; 79Type type, 137public Type TypeConverterType 164public Type DeferringLoaderType
src\Framework\System\Windows\Markup\Baml2006\WpfKnownMemberInvoker.cs (3)
49Type declaringType = _member.UnderlyingMember.DeclaringType; 52Type[] args = new Type[] { typeof(DependencyObject) }; ;
src\Framework\System\Windows\Markup\Baml2006\WpfKnownType.cs (11)
29Type _underlyingType; 36Type _deferringLoader; 37Type _typeConverterType; 66Type underlyingType) 74Type underlyingType, 230public Type TypeConverterType 240public Type DeferringLoaderType 336foreach (Type type in info.Types) 362object[] ICustomAttributeProvider.GetCustomAttributes(Type attributeType, bool inherit) 384private bool TryGetCustomAttribute(Type attributeType, out Attribute result) 415bool ICustomAttributeProvider.IsDefined(Type attributeType, bool inherit)
src\Framework\System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (3)
69Type declaringType = _member.UnderlyingMember.DeclaringType; 72Type[] args = new Type[] { typeof(DependencyObject) }; ;
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (9)
40private Dictionary<Type, XamlType> _masterTypeTable; 63_masterTypeTable = new Dictionary<Type, XamlType>(256); 183public override XamlType GetXamlType(Type type) 199private XamlType GetUnknownXamlType(Type type) 215internal XamlType GetKnownXamlType(Type type) 257internal XamlValueConverter<XamlDeferringLoader> GetDeferringLoader(Type loaderType) 262internal XamlValueConverter<TypeConverter> GetTypeConverter(Type converterType) 284internal Type ResolvePrefixedNameWithAdditionalWpfSemantics(string prefixedName, DependencyObject element) 309Type result = System.Windows.Markup.XamlTypeMapper.GetTypeFromName(prefixedName, element);
src\Framework\System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (5)
23public override XamlType GetXamlType(Type type) 49internal static void RequireRuntimeType(Type type) 54Type runtimeType = typeof(object).GetType(); 67private Dictionary<Type, XamlType> _masterTypeTable = new Dictionary<Type, XamlType>();
src\Framework\System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
74public WpfXamlType(Type type, XamlSchemaContext schema, bool isBamlScenario, bool useV3Rules)
src\Framework\System\Windows\Markup\BamlCollectionHolder.cs (1)
82internal Type PropertyType
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\BamlReader.cs (3)
1053Type propertyType = attrInfo.GetPropertyType(); 1062Type declaringType = null; 2216Type converter = MapTable.GetTypeFromId(converterTypeId);
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\BamlRecords.cs (15)
482static internal bool TreatAsIAddChild(Type parentObjectType) 487static internal BamlRecordType GetPropertyStartRecordType(Type propertyType, bool propertyCanWrite) 2739internal Type ValueType 2754internal Type SerializerType 2768Type _valueType; 2771Type _serializerType; 2815internal object GetCustomValue(BinaryReader reader, Type propertyType, short serializerId, BamlRecordReader bamlRecordReader) 4621internal Type Type 4705Type _type; 4781internal Type SerializerType 4806Type _serializerType; 4910internal Type GetPropertyType() 4912Type validType = null; 5054internal Type OwnerType 5198Type _ownerType = null;
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (3)
992Type converterOrSerializerType; 1028Type ownerType = _xamlTypeMapper.GetDependencyPropertyOwnerAndName(xamlProperty.Value, 1093Type typeValue = _xamlTypeMapper.GetTypeFromBaseString(xamlPropertyNode.Value,
src\Framework\System\Windows\Markup\BamlWriter.cs (26)
109ref Type baseType, 110ref Type serializerType) 234Type elementType = GetType(assemblyName, typeFullName); 235Type serializerType = _xamlTypeMapper.GetXamlSerializerForType(elementType); 334Type declaringType; 362Type propType = XamlTypeMapper.GetPropertyType(dpOrPi); 365Type ownerType = null; 406Type typeValue = _xamlTypeMapper.GetTypeFromBaseString(data.Args, 462Type declaringType; 564Type valueElementType = null; 565Type valueSerializerType = null; 651Type ownerType; 652Type propertyType = null; 883Type typeConverter=null; 1114private Type GetType( 1123Type objectType = assembly.GetType(typeFullName); 1141Type ownerType, 1208out Type ownerType) 1225private MethodInfo GetMi(Type ownerType, string propName) 1257out Type ownerType) 1289private void Push(BamlRecordType recordType, Type elementType) 1312private Type PeekElementType() 1359Type elementType) : this(recordType) 1375public Type ElementType 1382Type _elementType; 1443sealed protected override bool AllowInternalType(Type type)
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (7)
42public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 61public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 105public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 115Type type = null; 228if (firstAmbientValue.Value is Type) 230type = (Type)firstAmbientValue.Value; 258private static Type GetTypeFromName(XamlSchemaContext schemaContext,
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
5540private Type InitializeOneType(KnownElements knownElement) 5542Type t = null;
src\Framework\System\Windows\Markup\KnownTypesHelper.cs (4)
49_typeTable =new Type[size]; 52public System.Type this[int index] 56Type t = _typeTable[index]; 66private Type[] _typeTable;
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\ParserContext.cs (11)
209internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(Type type) 249_targetType = (Type) _langSpaceStack.Pop(); 325internal Type TargetType 728internal Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> MasterBracketCharacterCache 734_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 855private Type _targetType; 856private Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> _masterBracketCharacterCache; 876private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(Type extensionType) 880Type constructorArgumentType = null; 881Type markupExtensionBracketCharacterType = null; 891Type attributeType = attributeData.AttributeType;
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\Primitives\ExtensionSimplifierMarkupObject.cs (4)
43public override Type ObjectType 95public override Type PropertyType 105public override IEnumerable<Type> TypeReferences 321ValueSerializer typeSerializer = _context.GetValueSerializerFor(typeof(Type));
src\Framework\System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (7)
53public override Type ObjectType 186public override Type PropertyType 218protected override Type GetObjectType() 276protected override Type GetObjectType() 286public override Type PropertyType 345protected override Type GetObjectType() 355public override Type PropertyType
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (27)
157internal static void VerifyTypeIsSerializable(Type type) 764List<Type> wrapperTypes = GetWrapperTypes(contentProperty.PropertyType); 1052Type tagType = property.Value.GetType(); 1100private List<Type> GetWrapperTypes(Type type) 1107List<Type> wrapperTypes = new List<Type>(); 1118private MarkupProperty GetWrappedProperty(List<Type> wrapperTypes, MarkupObject item) 1138private bool IsInTypes(Type type, List<Type> types) 1140foreach (Type t in types) 1166private bool IsCollectionType(Type type) 1193List<Type> wrapperTypes = GetWrapperTypes(contentProperty.PropertyType); 1416public void MakeAddressable(IEnumerable<Type> types) 1419foreach (Type type in types) 1423public string MakeAddressable(Type type) 1479if (descriptor.PropertyType == typeof(Type)) 1486public ValueSerializer GetValueSerializerFor(Type type) 1488if (type == typeof(Type)) 1518public object GetService(Type serviceType) 1544Type type = value as Type; 1555public override IEnumerable<Type> TypeReferences(object value, IValueSerializerContext context) 1557Type type = value as Type; 1559return new Type[] { type }; 1626public static string GetNamespaceUriFor(Type type)
src\Framework\System\Windows\Markup\ProvideValueServiceProvider.cs (2)
54Type IXamlTypeResolver.Resolve(string qualifiedTypeName) // E.g. foo:Class 100public object GetService(Type service)
src\Framework\System\Windows\Markup\ReaderContextStackData.cs (2)
30Type _expectedType; 87internal Type ExpectedType
src\Framework\System\Windows\Markup\RoutedEventConverter.cs (6)
20public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 36public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 59Type type = null; 98type = firstAmbientValue.Value as Type; 109Type currentType = type; 138Type destinationType)
src\Framework\System\Windows\Markup\RoutedEventValueSerializer.cs (11)
24return ValueSerializer.GetSerializerFor(typeof(Type), context) != null; 29return ValueSerializer.GetSerializerFor(typeof(Type), context) != null; 37ValueSerializer typeSerializer = ValueSerializer.GetSerializerFor(typeof(Type), context); 46static Dictionary<Type, Type> initializedTypes = new Dictionary<Type, Type>(); 48static void ForceTypeConstructors(Type currentType) 61ValueSerializer typeSerializer = ValueSerializer.GetSerializerFor(typeof(Type), context); 67Type type = typeSerializer.ConvertFromString(value.Substring(0, index), context) as Type;
src\Framework\System\Windows\Markup\SetterTriggerConditionValueConverter.cs (3)
41public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 60public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 86public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
src\Framework\System\Windows\Markup\TemplateKeyConverter.cs (3)
38public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 49public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 74public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
src\Framework\System\Windows\Markup\typecontext.cs (1)
77virtual public object GetService(Type serviceType)
src\Framework\System\Windows\Markup\xamlnodes.cs (35)
381Type converterType) 399internal Type ConverterType 414Type _converterType = null; 490internal Type PropDeclaringType 507internal Type PropValidType 534Type _validType; 535Type _declaringType; 672internal Type DefaultTargetType 682Type _defaultTargetType; 770internal Type ValueDeclaringType 812internal Type ValuePropertyType 877internal Type DefaultTargetType 914Type _valueDeclaringType; 916Type _valuePropertyType; 921Type _defaultTargetType; 943Type valueElementType, // Actual type of the valueTypeFullname. 982internal Type ValueElementType 1007Type _valueElementType; 1101Type elementType, 1102Type serializerType) 1124Type elementType, 1125Type serializerType, 1162internal Type ElementType 1173internal Type SerializerType 1222Type _elementType; 1223Type _serializerType; 2091Type valueType) // Actual Type, if known. 2109internal Type ValueType 2115Type _valueType; 2176Type elementType, 2177Type serializerType) 2270internal Type PropDeclaringType 2287internal Type PropValidType 2301Type _declaringType; 2302Type _validType;
src\Framework\System\Windows\Markup\XamlParseException.cs (2)
333Type objectType) 437Type objectType
src\Framework\System\Windows\Markup\XamlReader.cs (1)
1008Type internalTypeHelper = null;
src\Framework\System\Windows\Markup\XamlStyleSerializer.cs (1)
95Type styleTargetType = Style.DefaultTargetType;
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\Markup\XamlTypeMapperSchemaContext.cs (5)
26Dictionary<Type, XamlType> _allowedInternalTypes; 92public override XamlType GetXamlType(Type type) 305private XamlType GetInternalType(Type type, XamlType sharedSchemaXamlType) 311_allowedInternalTypes = new Dictionary<Type, XamlType>(); 413public VisibilityMaskingXamlType(Type underlyingType, XamlSchemaContext schemaContext)
src\Framework\System\Windows\Markup\XmlnsCache.cs (1)
289private Attribute[] GetAttributes(Assembly asm, Type attrType)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (2)
60Type typeofProp = typeof(Thickness?); 61Type typeofThis = typeof(ThicknessAnimation);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationBase.cs (1)
109public override sealed Type TargetPropertyType
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\Navigation\NavigationService.cs (1)
3528Type type = ccs.GetType();
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\Framework\System\Windows\PropertyPathConverter.cs (5)
55public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 76public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 144Type destinationType) 187typeSerializer = ValueSerializer.GetSerializerFor(typeof(Type), serializerContext); 224Type type; // the accessor's ownerType, or type of indexer parameter
src\Framework\System\Windows\ResourceDictionary.cs (5)
536internal Type GetValueType(object key, out bool found) 539Type valueType = null; 1378private Type GetTypeOfFirstObject(KeyRecord keyRecord) 1380Type rootType = _reader.GetTypeOfFirstStartObject(keyRecord); 2392HasImplicitStyles = ((key as Type) != null);
src\Framework\System\Windows\ResourceReferenceExpressionConverter.cs (3)
39public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 66public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 119public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
src\Framework\System\Windows\Shell\JumpList.cs (3)
578var destinationList = (ICustomDestinationList)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.DestinationList))); 934var shellObjectCollection = (IObjectCollection)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.EnumerableObjectCollection))); 1030var link = (IShellLinkW)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.ShellLink)));
src\Framework\System\Windows\Standard\ComGuids.cs (1)
68return (T)System.Activator.CreateInstance(System.Type.GetTypeFromCLSID(new System.Guid(clsid)));
src\Framework\System\Windows\Standard\Verify.cs (4)
265public static void TypeSupportsInterface(Type type, Type interfaceType, string parameterName) 290internal static void ImplementsInterface(object parameter, Type interfaceType, string parameterName) 297foreach (var ifaceType in parameter.GetType().GetInterfaces())
src\Framework\System\Windows\Style.cs (6)
60public Style(Type targetType) 72public Style(Type targetType, Style basedOn) 161public Type TargetType 493Type elementType = element.GetType(); 966internal static readonly Type DefaultTargetType = typeof(IFrameworkInputElement); 970private Type _targetType = DefaultTargetType;
src\Framework\System\Windows\StyleHelper.cs (8)
252Type themeStyleTypeKey = themeStyleKey as Type; 679Type valueType = deferredReference.GetValueType(); 2691Type sourceNodeType; 5895Type stateType = (state != null) ? state.GetType() : null; 5906Type cachedType = bindingValueCache.BindingValueType; 5987internal BindingValueCache(Type bindingValueType, object valueAsBindingValueType) 5993internal readonly Type BindingValueType;
src\Framework\System\Windows\StyleTypedPropertyAttribute.cs (2)
37public Type StyleTargetType 44private Type _styleTargetType;
src\Framework\System\Windows\SystemKeyConverter.cs (6)
40public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 115public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 149Type keyType = SystemKeyConverter.GetSystemClassType(keyId); 156ValueSerializer typeSerializer = valueSerializerContext.GetValueSerializerFor(typeof(Type)); 173internal static Type GetSystemClassType(SystemResourceKeyID id)
src\Framework\System\Windows\SystemResourceKey.cs (1)
364internal static short GetBamlIdBasedOnSystemResourceKeyId(Type targetType, string memberName)
src\Framework\System\Windows\SystemResources.cs (9)
120Type typeKey = null; 126typeKey = key as Type; 354Type typeKey, 819Type knownTypeHelper = assembly.GetType("Microsoft.Windows.Themes.KnownTypeHelper"); 1865internal override Type GetValueType() 1973internal override Type GetValueType() 2029if ((key is Type || key is ResourceKey) && _canCacheAsThemeResource && canCache) 2042internal override Type GetValueType() 2086internal override Type GetValueType()
src\Framework\System\Windows\TemplateBindingExpressionConverter.cs (2)
30public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 42public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
src\Framework\System\Windows\TemplateBindingExtensionConverter.cs (3)
36public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 53public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 65return new InstanceDescriptor(typeof(TemplateBindingExtension).GetConstructor(new Type[] { typeof(DependencyProperty) }),
src\Framework\System\Windows\TemplateContent.cs (9)
914Type typeofValue = xamlReader.Value.GetType(); 963Type typeofValue = xamlReader.Type.UnderlyingType; 1087private static bool CheckSpecialCasesShareable(Type typeofValue, DependencyProperty property) 1226private bool IsTypeShareable(Type type) 1232type == typeof(string) || type == typeof(Uri) || type == typeof(Type) 1278Type targetType, 1386Type targetType, 1503object IServiceProvider.GetService(Type serviceType) 1523Type IXamlTypeResolver.Resolve(string qualifiedTypeName)
src\Framework\System\Windows\TemplateKey.cs (5)
121Type type = DataType as Type; 136Type type = _dataType as Type; 167else if (!(dataType is Type) && !(dataType is String))
src\Framework\System\Windows\TemplatePartAttribute.cs (2)
37public Type Type 44private Type _type;
src\Framework\System\Windows\ThicknessConverter.cs (5)
44public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 47TypeCode tc = Type.GetTypeCode(sourceType); 75public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 138public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType) 160ConstructorInfo ci = typeof(Thickness).GetConstructor(new Type[] { typeof(double), typeof(double), typeof(double), typeof(double) });
src\Framework\System\Windows\Window.cs (1)
6759taskbarList = (ITaskbarList)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.TaskbarList)));
src\Shared\MS\Internal\HashHelper.cs (2)
35Type[] types = new Type[] {
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)
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (3)
31public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 36Type doubleType = typeof(double); 124public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
parent\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (2)
130Type type = typeof(Microsoft.Windows.Themes.ScrollChrome); 212public ThemesKnownType(XamlSchemaContext xsc, int bamlNumber, string name, Type type) :
PresentationFramework.Classic (5)
parent\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (2)
48Type type = typeof(Microsoft.Windows.Themes.ClassicBorderDecorator); 212public ThemesKnownType(XamlSchemaContext xsc, int bamlNumber, string name, Type type) :
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
39public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 44Type doubleType = typeof(double); 199public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
PresentationFramework.Luna (5)
parent\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (2)
130Type type = typeof(Microsoft.Windows.Themes.ScrollChrome); 212public ThemesKnownType(XamlSchemaContext xsc, int bamlNumber, string name, Type type) :
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
39public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 44Type doubleType = typeof(double); 199public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
PresentationFramework.Royale (5)
parent\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (2)
130Type type = typeof(Microsoft.Windows.Themes.ScrollChrome); 212public ThemesKnownType(XamlSchemaContext xsc, int bamlNumber, string name, Type type) :
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (3)
39public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 44Type doubleType = typeof(double); 199public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
SMSvcHost (1)
System\ServiceModel\Activation\SharingService.cs (1)
118Type contractType;
System (745)
compmod\microsoft\csharp\csharpcodeprovider.cs (3)
79public override TypeConverter GetConverter(Type type) { 4137public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 4169public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (3)
87public override TypeConverter GetConverter(Type type) { 3117public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 3149public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
compmod\microsoft\win32\SystemEvents.cs (5)
1091Type t = GetAppMainType(); 1141Type t = GetAppMainType(); 1202Type t = GetAppMainType(); 1230private static volatile Type mainType; 1231private static Type GetAppMainType() {
compmod\system\codedom\CodeArrayCreateExpression.cs (3)
62public CodeArrayCreateExpression(Type createType, params CodeExpression[] initializers) { 89public CodeArrayCreateExpression(Type createType, int size) { 116public CodeArrayCreateExpression(Type createType, CodeExpression size) {
compmod\system\codedom\CodeCastExpression.cs (1)
62public CodeCastExpression(Type targetType, CodeExpression expression) {
compmod\system\codedom\CodeMemberField.cs (1)
61public CodeMemberField(Type type, string name) {
compmod\system\codedom\CodeObjectCreateExpression.cs (1)
61public CodeObjectCreateExpression(Type createType, params CodeExpression[] parameters) {
compmod\system\codedom\CodeParameterDeclarationExpression.cs (1)
63public CodeParameterDeclarationExpression(Type type, string name) {
compmod\system\codedom\CodeTypeOfExpression.cs (1)
57public CodeTypeOfExpression(Type type) {
compmod\system\codedom\CodeTypeReference.cs (5)
58public CodeTypeReference(Type type) { 75public CodeTypeReference (Type type, CodeTypeReferenceOptions codeTypeReferenceOption) : this(type) { 94private void InitializeFromType(Type type) { 97Type currentType = type; 108Type[] genericArgs = type.GetGenericArguments();
compmod\system\codedom\CodeTypeReferenceCollection.cs (1)
83public void Add(Type value) {
compmod\system\codedom\CodeTypeReferenceExpression.cs (1)
57public CodeTypeReferenceExpression(Type type) {
compmod\system\codedom\CodeVariableDeclarationStatement.cs (2)
61public CodeVariableDeclarationStatement(Type type, string name) { 90public CodeVariableDeclarationStatement(Type type, string name, CodeExpression initExpression) {
compmod\system\codedom\compiler\CodeDOMProvider.cs (1)
151public virtual TypeConverter GetConverter(Type type) {
compmod\system\codedom\compiler\CompilerInfo.cs (7)
29private Type type; 41public Type CodeDomProviderType { 46type = Type.GetType(_codeDomProviderTypeName); 67Type type = Type.GetType(_codeDomProviderTypeName); 80ConstructorInfo ci = CodeDomProviderType.GetConstructor(new Type[] { typeof(IDictionary<string, string>) }); 94ConstructorInfo constructor = CodeDomProviderType.GetConstructor(new Type[] { typeof(IDictionary<string, string>) });
compmod\system\collections\generic\linkedlist.cs (2)
429Type targetType = array.GetType().GetElementType(); 430Type sourceType = typeof(T);
compmod\system\collections\generic\throwhelper.cs (2)
50internal static void ThrowWrongKeyTypeArgumentException(object key, Type targetType) { 54internal static void ThrowWrongValueTypeArgumentException(object value, Type targetType) {
compmod\system\collections\specialized\nameobjectcollectionbase.cs (1)
571protected object[] BaseGetAllValues(Type type) {
compmod\system\componentmodel\AmbientValueAttribute.cs (1)
36public AmbientValueAttribute(Type type, string value) {
compmod\system\componentmodel\ArrayConverter.cs (5)
30public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 58Type arrayType = value.GetType(); 59Type elementType = arrayType.GetElementType(); 80public ArrayPropertyDescriptor(Type arrayType, Type elementType, int index) : base(arrayType, "[" + index + "]", elementType, null) {
compmod\system\componentmodel\AttributeCollection.cs (7)
56public Type type; 194public virtual Attribute this[Type attributeType] 245Type aType = attribute.GetType(); 257Type aType = attribute.GetType(); 311protected Attribute GetDefaultAttribute(Type attributeType) 330Type reflect = TypeDescriptor.GetReflectionType(attributeType); 338ConstructorInfo ci = reflect.UnderlyingSystemType.GetConstructor(new Type[0]);
compmod\system\componentmodel\AttributeProviderAttribute.cs (1)
57public AttributeProviderAttribute(Type type)
compmod\system\componentmodel\basenumberconverter.cs (4)
39internal abstract Type TargetType { 74public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 117public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 137public override bool CanConvertTo(ITypeDescriptorContext context, Type t) {
compmod\system\componentmodel\BindingList.cs (3)
87Type itemType = typeof(T); 93if (itemType.GetConstructor(BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, new Type[0], null) != null) { 344Type type = typeof(T);
compmod\system\componentmodel\BooleanConverter.cs (1)
34public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
compmod\system\componentmodel\ByteConverter.cs (1)
30internal override Type TargetType {
compmod\system\componentmodel\CharConverter.cs (2)
32public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 42 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
compmod\system\componentmodel\CollectionConverter.cs (1)
33public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
compmod\system\componentmodel\Component.cs (1)
221protected virtual object GetService(Type service) {
compmod\system\componentmodel\ComponentConverter.cs (1)
32public ComponentConverter(Type type) : base(type) {
compmod\system\componentmodel\ComponentResourceManager.cs (2)
30public ComponentResourceManager(Type t) : base(t) { 167Type t = value.GetType();
compmod\system\componentmodel\Container.cs (2)
151protected virtual object GetService(Type service) { 286public Object GetService(Type service) {
compmod\system\componentmodel\CultureInfoConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 67public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 166public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 196ConstructorInfo ctor = typeof(CultureInfo).GetConstructor(new Type[] {typeof(string)});
compmod\system\componentmodel\CustomTypeDescriptor.cs (1)
138public virtual object GetEditor(Type editorBaseType)
compmod\system\componentmodel\DateTimeConverter.cs (5)
34public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 45public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 91public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 129ConstructorInfo ctr = typeof(DateTime).GetConstructor(new Type[] {typeof(Int64)}); 137ConstructorInfo ctor = typeof(DateTime).GetConstructor(new Type[] {
compmod\system\componentmodel\DateTimeOffsetConverter.cs (5)
38public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 49public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 95public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 145ConstructorInfo ctr = typeof(DateTimeOffset).GetConstructor(new Type[] {typeof(Int64)}); 153ConstructorInfo ctor = typeof(DateTimeOffset).GetConstructor(new Type[] {
compmod\system\componentmodel\DecimalConverter.cs (4)
41internal override Type TargetType { 51public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 65public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 73MemberInfo member = typeof(Decimal).GetConstructor(new Type[] {typeof(Int32[])});
compmod\system\componentmodel\DefaultValueAttribute.cs (1)
40public DefaultValueAttribute(Type type, string value) {
compmod\system\componentmodel\DelegatingTypeDescriptionProvider.cs (10)
23private Type _type; 29internal DelegatingTypeDescriptionProvider(Type type) 48public override object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args) 112public override Type GetReflectionType(Type objectType, object instance) 117public override Type GetRuntimeType(Type objectType) { 129public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 134public override bool IsSupportedType(Type type) {
compmod\system\componentmodel\design\DesignerOptionService.cs (5)
460public override Type ComponentType { 472public override Type PropertyType { 526public override object ConvertTo(ITypeDescriptorContext cxt, CultureInfo culture, object value, Type destinationType) { 541public override Type ComponentType { 553public override Type PropertyType {
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (3)
48public override string GetSavedLicenseKey(Type type, Assembly resourceAssembly) { 56public override void SetSavedLicenseKey(Type type, string key) { 81public override string GetSavedLicenseKey(Type type, Assembly resourceAssembly) {
compmod\system\componentmodel\design\HelpKeywordAttribute.cs (1)
80public HelpKeywordAttribute(Type t) {
compmod\system\componentmodel\design\IComponentDiscoveryService.cs (1)
23ICollection GetComponentTypes(IDesignerHost designerHost, Type baseType);
compmod\system\componentmodel\design\IDesignerHost.cs (3)
123IComponent CreateComponent(Type componentClass); 130IComponent CreateComponent(Type componentClass, string name); 175Type GetType(string typeName);
compmod\system\componentmodel\design\IReferenceService.cs (1)
54object[] GetReferences(Type baseType);
compmod\system\componentmodel\design\IServiceObjectContainer.cs (6)
23void AddService(Type serviceType, object serviceInstance); 28void AddService(Type serviceType, object serviceInstance, bool promote); 33void AddService(Type serviceType, ServiceCreatorCallback callback); 38void AddService(Type serviceType, ServiceCreatorCallback callback, bool promote); 43void RemoveService(Type serviceType); 48void RemoveService(Type serviceType, bool promote);
compmod\system\componentmodel\design\ITypeDiscoveryService.cs (1)
24ICollection GetTypes(Type baseType, bool excludeGlobalTypes);
compmod\system\componentmodel\design\ITypeResolutionService.cs (3)
33Type GetType(string name); 38Type GetType(string name, bool throwOnError); 43Type GetType(string name, bool throwOnError, bool ignoreCase);
compmod\system\componentmodel\design\PropertyTabAttribute.cs (10)
24private Type[] tabClasses; 44public PropertyTabAttribute(Type tabClass) : this(tabClass, PropertyTabScope.Component) { 62public PropertyTabAttribute(Type tabClass, PropertyTabScope tabScope) { 64this.tabClasses = new Type[]{ tabClass}; 90public Type[] TabClasses { 93tabClasses = new Type[tabClassNames.Length]; 108tabClasses[i] = Type.GetType(className, false); 200protected void InitializeArrays(Type[] tabClasses, PropertyTabScope[] tabScopes) { 205private void InitializeArrays(string[] tabClassNames, Type[] tabClasses, PropertyTabScope[] tabScopes) { 211this.tabClasses = (Type[])tabClasses.Clone();
compmod\system\componentmodel\design\serialization\ContextStack.cs (1)
68public object this[Type type] {
compmod\system\componentmodel\design\serialization\DefaultSerializationProviderAttribute.cs (1)
25public DefaultSerializationProviderAttribute(Type providerType) {
compmod\system\componentmodel\design\serialization\DesignerSerializerAttribute.cs (3)
23public DesignerSerializerAttribute(Type serializerType, Type baseSerializerType) { 31public DesignerSerializerAttribute(string serializerTypeName, Type baseSerializerType) {
compmod\system\componentmodel\design\serialization\IDesignerSerializationManager.cs (4)
79object CreateInstance(Type type, ICollection arguments, string name, bool addToContainer); 97object GetSerializer(Type objectType, Type serializerType); 102Type GetType(string typeName);
compmod\system\componentmodel\design\serialization\IDesignerSerializationProvider.cs (2)
35object GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType);
compmod\system\componentmodel\design\serialization\INameCreationService.cs (1)
28string CreateName(IContainer container, Type dataType);
compmod\system\componentmodel\design\serialization\RootDesignerSerializerAttribute.cs (3)
25public RootDesignerSerializerAttribute(Type serializerType, Type baseSerializerType, bool reloadable) { 34public RootDesignerSerializerAttribute(string serializerTypeName, Type baseSerializerType, bool reloadable) {
compmod\system\componentmodel\design\ServiceCreatorCallback.cs (1)
18public delegate object ServiceCreatorCallback(IServiceContainer container, Type serviceType);
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\design\ToolboxItemAttribute.cs (4)
25private Type toolboxItemType; 83public ToolboxItemAttribute(Type toolboxItemType) { 93public Type ToolboxItemType { 98toolboxItemType = Type.GetType(toolboxItemTypeName, true);
compmod\system\componentmodel\DesignerAttribute.cs (4)
45public DesignerAttribute(Type designerType) { 69public DesignerAttribute(string designerTypeName, Type designerBaseType) { 82public DesignerAttribute(Type designerType, Type designerBaseType) {
compmod\system\componentmodel\DoubleConverter.cs (1)
41internal override Type TargetType {
compmod\system\componentmodel\EditorAttribute.cs (3)
48public EditorAttribute(string typeName, Type baseType) { 59public EditorAttribute(Type type, Type baseType) {
compmod\system\componentmodel\EnumConverter.cs (11)
44private Type type; 52public EnumConverter(Type type) { 59protected Type EnumType { 83public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 94public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 153public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 162Type underlyingType = Enum.GetUnderlyingType(type); 181Type underlyingType = Enum.GetUnderlyingType(type); 185MethodInfo method = typeof(Enum).GetMethod("ToObject", new Type[] {typeof(Type), underlyingType}); 251Type reflectType = TypeDescriptor.GetReflectionType(type);
compmod\system\componentmodel\EventDescriptor.cs (2)
64public abstract Type ComponentType { get; } 72public abstract Type EventType { get; }
compmod\system\componentmodel\ExtendedPropertyDescriptor.cs (3)
35public ExtendedPropertyDescriptor(ReflectPropertyDescriptor extenderInfo, Type receiverType, IExtenderProvider provider, Attribute[] attributes) 81public override Type ComponentType { 99public override Type PropertyType {
compmod\system\componentmodel\ExtenderProvidedPropertyAttribute.cs (3)
27private Type receiverType; 32internal static ExtenderProvidedPropertyAttribute Create(PropertyDescriptor extenderProperty, Type receiverType, IExtenderProvider provider) { 67public Type ReceiverType {
compmod\system\componentmodel\GuidConverter.cs (4)
33public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 44public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 70public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 76ConstructorInfo ctor = typeof(Guid).GetConstructor(new Type[] {typeof(string)});
compmod\system\componentmodel\IComNativeDescriptorHandler.cs (1)
45object GetEditor(object component, Type baseEditorType);
compmod\system\componentmodel\ICustomTypeDescriptor.cs (1)
61object GetEditor(Type editorBaseType);
compmod\system\componentmodel\InstallerTypeAttribute.cs (3)
28public InstallerTypeAttribute(Type installerType) { 43public virtual Type InstallerType { 45return Type.GetType(_typeName);
compmod\system\componentmodel\InstanceCreationEditor.cs (1)
42public abstract object CreateInstance(ITypeDescriptorContext context, Type instanceType);
compmod\system\componentmodel\Int16Converter.cs (1)
28internal override Type TargetType {
compmod\system\componentmodel\Int32Converter.cs (1)
28internal override Type TargetType {
compmod\system\componentmodel\Int64Converter.cs (1)
29internal override Type TargetType {
compmod\system\componentmodel\InvalidEnumArgumentException.cs (1)
50public InvalidEnumArgumentException(string argumentName, int invalidValue, Type enumClass)
compmod\system\componentmodel\LicenseContext.cs (3)
35public virtual string GetSavedLicenseKey(Type type, Assembly resourceAssembly) { 42public virtual object GetService(Type type) { 49public virtual void SetSavedLicenseKey(Type type, string key) {
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\LicenseProvider.cs (1)
27public abstract License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions);
compmod\system\componentmodel\LicenseProviderAttribute.cs (5)
26private Type licenseProviderType = null; 52public LicenseProviderAttribute(Type type) { 59public Type LicenseProvider { 64licenseProviderType = Type.GetType(licenseProviderName); 96Type type = ((LicenseProviderAttribute)value).LicenseProvider;
compmod\system\componentmodel\LicFileLicenseProvider.cs (3)
30protected virtual bool IsKeyValid(string key, Type type) { 41protected virtual string GetKey(Type type) { 51public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions) {
compmod\system\componentmodel\MarshalByValueComponent.cs (1)
172public virtual object GetService(Type service) {
compmod\system\componentmodel\MaskedTextProvider.cs (2)
131static Type maskTextProviderType = typeof(MaskedTextProvider); 501Type providerType = this.GetType();
compmod\system\componentmodel\MemberDescriptor.cs (8)
422protected static MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType) { 431protected static MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType, bool publicOnly) { 460protected virtual object GetInvocationTarget(Type type, object instance) { 497protected static object GetInvokee(Type componentClass, object component) {
compmod\system\componentmodel\MultilineStringConverter.cs (1)
25public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
compmod\system\componentmodel\NestedContainer.cs (2)
93protected override object GetService(Type service) { 139public Object GetService(Type service) {
compmod\system\componentmodel\NullableConverter.cs (9)
23Type nullableType; 24Type simpleType; 30public NullableConverter(Type type) 45public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 79public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 97public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) { 106ConstructorInfo ci = nullableType.GetConstructor(new Type[] {simpleType}); 247public Type NullableType 258public Type UnderlyingType
compmod\system\componentmodel\PropertyDescriptor.cs (19)
35private Type[] editorTypes; 77public abstract Type ComponentType {get;} 93Type converterType = GetTypeFromName(attr.ConverterTypeName); 149public abstract Type PropertyType { get;} 215protected object CreateInstance(Type type) { 216Type[] typeArgs = new Type[] {typeof(Type)}; 282public virtual object GetEditor(Type editorBaseType) { 308Type editorType = GetTypeFromName(attr.EditorBaseTypeName); 311Type type = GetTypeFromName(attr.EditorTypeName); 329editorTypes = new Type[5]; 334Type[] newTypes = new Type[editorTypes.Length * 2]; 363protected override object GetInvocationTarget(Type type, object instance) { 376protected Type GetTypeFromName(string typeName) { 383Type typeFromGetType = Type.GetType(typeName); 389Type typeFromComponent = null;
compmod\system\componentmodel\ProvidePropertyAttribute.cs (1)
27public ProvidePropertyAttribute(string propertyName, Type receiverType) {
compmod\system\componentmodel\ReferenceConverter.cs (4)
28private Type type; 35public ReferenceConverter(Type type) { 44public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 93public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
compmod\system\componentmodel\ReflectEventDescriptor.cs (15)
71private static readonly Type[] argsNone = new Type[0]; 74private Type type; // the delegate type for the event 75private readonly Type componentClass; // the class of the component this info is for 85public ReflectEventDescriptor(Type componentClass, string name, Type type, 99public ReflectEventDescriptor(Type componentClass, EventInfo eventInfo) 113public ReflectEventDescriptor(Type componentType, EventDescriptor oldReflectEventDescriptor, Attribute[] attributes) 139public override Type ComponentType { 148public override Type EventType { 269Type currentReflectType = realEventInfo.ReflectedType; 332Type start = componentClass.BaseType; 364Type[] argsType = new Type[] {type}; 380Type currentReflectType = realMethodInfo.ReflectedType;
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\RefreshEventArgs.cs (3)
24private Type typeChanged; 45public RefreshEventArgs(Type typeChanged) { 67public Type TypeChanged {
compmod\system\componentmodel\RefreshEventHandler.cs (1)
12/// raised when a <see cref='System.Type'/> or component is changed during design time.</para>
compmod\system\componentmodel\SByteConverter.cs (1)
30internal override Type TargetType {
compmod\system\componentmodel\SingleConverter.cs (1)
40internal override Type TargetType {
compmod\system\componentmodel\StringConverter.cs (1)
29public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
compmod\system\componentmodel\TimeSpanConverter.cs (4)
35public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 46public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 78public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 84MethodInfo method = typeof(TimeSpan).GetMethod("Parse", new Type[] {typeof(string)});
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\TypeConverterAttribute.cs (2)
51public TypeConverterAttribute(Type type) { 66/// <para>Gets the fully qualified type name of the <see cref='System.Type'/>
compmod\system\componentmodel\TypeDescriptionProvider.cs (12)
59public virtual object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args) 158public Type GetReflectionType(Type objectType) 172public Type GetReflectionType(object instance) 191public virtual Type GetReflectionType(Type objectType, object instance) 207public virtual Type GetRuntimeType(Type reflectionType) 235public ICustomTypeDescriptor GetTypeDescriptor(Type objectType) 272public virtual ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 290public virtual bool IsSupportedType(Type type)
compmod\system\componentmodel\TypeDescriptionProviderAttribute.cs (1)
36public TypeDescriptionProviderAttribute(Type type)
compmod\system\componentmodel\TypeDescriptionProviderService.cs (1)
13public abstract TypeDescriptionProvider GetProvider(Type type);
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)
compmod\system\componentmodel\TypeListConverter.cs (11)
27private Type[] types; 34protected TypeListConverter(Type[] types) { 44public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 55public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 68foreach(Type t in types) { 82public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 92return((Type)value).FullName; 95if (destinationType == typeof(InstanceDescriptor) && value is Type) { 96MethodInfo method = typeof(Type).GetMethod("GetType", new Type[] {typeof(string)}); 98return new InstanceDescriptor(method, new object[] {((Type)value).AssemblyQualifiedName});
compmod\system\componentmodel\UInt16Converter.cs (1)
29internal override Type TargetType {
compmod\system\componentmodel\UInt32Converter.cs (1)
30internal override Type TargetType {
compmod\system\componentmodel\UInt64Converter.cs (1)
32internal override Type TargetType {
compmod\system\configuration\appsettingsreader.cs (4)
21static Type stringType = typeof(string); 22static Type[] paramsArray = new Type[] { stringType }; 39public object GetValue(string key, Type type) {
compmod\system\diagnostics\FilterElement.cs (1)
20if (Type.GetType(TypeName) != filter.GetType() || InitData != filter.initializeData) {
compmod\system\diagnostics\ListenerElementsCollection.cs (1)
345if (Type.GetType(className) != listener.GetType() || InitData != listener.initializeData) {
compmod\system\diagnostics\SwitchAttribute.cs (6)
16private Type type; 20 public SwitchAttribute (string switchName, Type switchType) { 37 public Type SwitchType { 60 Type[] types = assembly.GetTypes(); 69 static void GetAllRecursive(Type type, ArrayList switchAttribs) { 76if (!(members[i] is Type))
compmod\system\diagnostics\SwitchLevelAttribute.cs (3)
15private Type type; 17 public SwitchLevelAttribute (Type switchLevelType) { 21 public Type SwitchLevelType {
compmod\system\diagnostics\traceutils.cs (9)
20internal static object GetRuntimeObject(string className, Type baseType, string initializeData) { 22Type objectType = null; 28objectType = Type.GetType(className); 44ConstructorInfo ctorInfo = objectType.GetConstructor(new Type[] {}); 52ConstructorInfo ctorInfo = objectType.GetConstructor(new Type[] { typeof(string) }); 79Type paramtype = ctorparams[0].ParameterType; 114internal static bool IsOwnedTL(Type type) { 118internal static bool IsOwnedTextWriterTL(Type type) { 124private static object ConvertToBaseTypeOrEnum(string value, Type type) {
compmod\system\diagnostics\TypedElement.cs (2)
18private Type _baseType; 20public TypedElement(Type baseType) : base() {
compmod\system\security\permissions\ResourcePermissionBase.cs (3)
30private Type permissionAccessType; 98protected Type PermissionAccessType { 550Type type = this.GetType();
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\_UriSyntax.cs (1)
345Type type = this.GetType();
net\System\_UriTypeConverter.cs (4)
38public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 52public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 80public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 86ConstructorInfo ci = typeof(Uri).GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, new Type[]{typeof(string), typeof(UriKind)}, null);
net\System\Net\_AuthenticationManager2.cs (2)
313List<Type> authenticationModuleTypes = 328foreach (Type type in authenticationModuleTypes)
net\System\Net\_AuthenticationManagerDefault.cs (2)
95List<Type> authenticationModuleTypes = 109foreach (Type type in authenticationModuleTypes)
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\_AutoWebProxyScriptWrapper.cs (3)
477bool Load(Uri scriptLocation, string script, Type helperType); 498private static volatile Type s_ProxyScriptHelperType; 523s_ProxyScriptHelperType = Type.GetType("System.Net.VsaWebProxyScript, Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", true);
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\_SecureChannel.cs (1)
307Type t = certificate.GetType();
net\System\Net\_SSPIWrapper.cs (1)
523Type handleType = null;
net\System\Net\Configuration\AuthenticationModulesSection.cs (7)
79this.authenticationModules = new List<Type>(section.AuthenticationModules.Count); 82Type type = null; 86type = Type.GetType(authenticationModuleElement.Type, true, true); 106internal List<Type> AuthenticationModules 110List<Type> retval = this.authenticationModules; 113retval = new List<Type>(0); 144List<Type> authenticationModules = null;
net\System\Net\Configuration\DefaultProxySection.cs (2)
186Type theType = Type.GetType(section.Module.Type, true, true);
net\System\Net\Configuration\HttpListenerTimeoutsElement.cs (2)
97public override bool CanValidate(Type type) 120public override bool CanValidate(Type type)
net\System\Net\Configuration\IdnElement.cs (1)
47public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
net\System\Net\Configuration\SmtpSection.cs (2)
114public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 142public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
net\System\Net\Configuration\TimeoutValidationAttribute.cs (1)
21public override bool CanValidate( Type type ) {
net\System\Net\Configuration\WebProxyScriptElement.cs (1)
106public override bool CanValidate(Type type)
net\System\Net\Configuration\WebRequestModuleElement.cs (7)
30public WebRequestModuleElement(string prefix, Type type) : this() 53public Type Type 96this.type = Type.GetType(name, true, true); 100public TypeAndName(Type type) 115public readonly Type type; 120public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 135public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
net\System\Net\Configuration\WebUtilityElement.cs (1)
58public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
net\System\Net\HttpListener.cs (1)
284private static readonly Type ChannelBindingStatusType = typeof(UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_CHANNEL_BIND_STATUS);
net\System\Net\Internal.cs (2)
1607internal Type creatorType; 1636public WebRequestPrefixElement(string P, Type creatorType) {
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);
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
24private static readonly Type s_NetworkStreamType = typeof(NetworkStream);
parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (2)
86Type appContextType = typeof(object).Assembly.GetType("System.AppContext"); 94new Type[] { typeof(string), typeof(bool).MakeByRefType() },
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) {
security\system\security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (5)
18public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 28public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 36Type[] parameterTypes; 41parameterTypes = new Type[] { typeof(PolicyEnforcement) }; 46parameterTypes = new Type[] { typeof(PolicyEnforcement), typeof(ProtectionScenario), typeof(ICollection) };
services\monitoring\system\diagnosticts\AlphabeticalEnumConverter.cs (1)
24public AlphabeticalEnumConverter(Type type) : base(type) {
services\monitoring\system\diagnosticts\DiagnosticsConfigurationHandler.cs (4)
188Type t = Type.GetType(className); 198ConstructorInfo ctorInfo = t.GetConstructor(new Type[] {}); 205ConstructorInfo ctorInfo = t.GetConstructor(new Type[] { typeof(string) });
services\monitoring\system\diagnosticts\EventLog.cs (1)
248internal object ComponentGetService(Type service) {
sys\system\configuration\ApplicationSettingsBase.cs (6)
427Type providerType = Type.GetType(providerTypeName); 487Type type = this.GetType(); 553Type providerType = Type.GetType(providerTypeName); 649private SettingsSerializeAs GetSerializeAs(Type type) {
sys\system\configuration\SettingsAttributes.cs (1)
176public SettingsProviderAttribute(Type providerType) {
sys\system\configuration\SettingsProperty.cs (3)
26public virtual Type PropertyType { get { return _PropertyType; } set { _PropertyType = value; } } 41public SettingsProperty(string name, Type propertyType, SettingsProvider provider, 79private Type _PropertyType;
sys\system\configuration\SettingsPropertyValue.cs (4)
121Type type = Type.GetType(webBaseEventTypeName, true); 176private static object GetObjectFromString(Type type, SettingsSerializeAs serializeAs, string attValue) 235private static string ConvertObjectToString(object propValue, Type type, SettingsSerializeAs serializeAs, bool throwOnError)
sys\system\configuration\TypeUtil.cs (2)
17Type type = Type.GetType(typeString, true); // catch the errors and report them
sys\system\Reflection\ICustomTypeProvider.cs (1)
17Type GetCustomType();
sys\system\security\accesscontrol\semaphoresecurity.cs (3)
252public override Type AccessRightType 257public override Type AccessRuleType 262public override Type AuditRuleType
sys\system\windows\markup\ValueSerializerAttribute.cs (4)
36public ValueSerializerAttribute(Type valueSerializerType) 53public Type ValueSerializerType 58_valueSerializerType = Type.GetType(_valueSerializerTypeName); 77private Type _valueSerializerType;
System.Activities (565)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (31)
21static Type VisualBasicExpressionFactoryType = typeof(VisualBasicExpressionFactory<>); 39out Type returnType, 72out Type returnType, 103public static Activity CreatePrecompiledVisualBasicValue(Type targetType, string expressionText, IEnumerable<string> namespaces, IEnumerable<string> referencedAssemblies, 105out Type returnType, 157MethodInfo genericCompileMethod = typeof(VisualBasicHelper).GetMethod("Compile", new Type[] { typeof(LocationReferenceEnvironment) }); 158genericCompileMethod = genericCompileMethod.MakeGenericMethod(new Type[] { targetType }); 182HashSet<Type> typeReferences = new HashSet<Type>(); 184foreach (Type type in typeReferences) 197Type concreteHelperType = VisualBasicExpressionFactoryType.MakeGenericType(targetType); 206public static Activity CreatePrecompiledVisualBasicReference(Type targetType, string expressionText, IEnumerable<string> namespaces, IEnumerable<string> referencedAssemblies, 208out Type returnType, 272MethodInfo genericCompileMethod = typeof(VisualBasicHelper).GetMethod("Compile", new Type[] { typeof(LocationReferenceEnvironment) }); 273genericCompileMethod = genericCompileMethod.MakeGenericMethod(new Type[] { targetType }); 314HashSet<Type> typeReferences = new HashSet<Type>(); 316foreach (Type type in typeReferences) 329Type concreteHelperType = VisualBasicExpressionFactoryType.MakeGenericType(targetType); 336static void EnsureTypeReferenced(Type type, bool isDirectReference, HashSet<Type> typeReferences) 352Type[] typeArgs = type.GetGenericArguments(); 361static void EnsureTypeReferencedRecurse(Type type, bool isDirectReference, HashSet<Type> typeReferences) 375Type[] interfaces = type.GetInterfaces(); 382Type baseType = type.BaseType; 390static void FindTypeReferences(Expression expression, HashSet<Type> typeReferences) 435if (constantExpr.Value is Type) 437EnsureTypeReferenced((Type)constantExpr.Value, true, typeReferences); 538Type[] typeArgs = method.GetGenericArguments(); 650static void FindTypeReferences(MemberBinding binding, HashSet<Type> typeReferences)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (22)
430Type lambdaReturnType = typeof(T); 486HashSet<Type> allBaseTypes = null; 488foreach (Type baseType in allBaseTypes) 610delegate bool FindMatch(LocationReference reference, string targetName, Type targetType, out bool terminateSearch); 615static bool FindLocationReferenceMatchShortcut(LocationReference reference, string targetName, Type targetType, out bool terminateSearch) 630static bool FindFirstLocationReferenceMatch(LocationReference reference, string targetName, Type targetType, out bool terminateSearch) 641static bool FindAllLocationReferenceMatch(LocationReference reference, string targetName, Type targetType, out bool terminateSearch) 1403static void EnsureTypeReferenced(Type type, ref HashSet<Type> typeReferences) 1408HashSet<Type> alreadyVisited = (HashSet<Type>)typeReferenceCache.GetValue(typeReferenceCacheLock, type); 1425alreadyVisited = new HashSet<Type>(); 1448static void EnsureTypeReferencedRecurse(Type type, HashSet<Type> alreadyVisited) 1460Type[] interfaces = type.GetInterfaces(); 1467Type baseType = type.BaseType; 1477Type[] typeArgs = type.GetGenericArguments(); 1493static LocationReference FindLocationReferencesFromEnvironment(LocationReferenceEnvironment environment, FindMatch findMatch, string targetName, Type targetType, out bool foundMultiple) 1543Type returnType; 1549public RawTreeCacheKey(string expressionText, Type returnType, HashSet<Assembly> assemblies, HashSet<string> namespaces) 1620public Type FindVariable(string name) 1643public Type[] FindTypes(string typeName, string nsPrefix)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicSettingsConverter.cs (3)
22public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 32public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 68public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Activities\Activity.cs (19)
553internal bool GetActivityExtensionInformation(out Dictionary<Type, WorkflowInstanceExtensionProvider> activityExtensionProviders, out HashSet<Type> requiredActivityExtensionTypes) 779internal RuntimeArgument AddTempAutoGeneratedArgument(Type argumentType, ArgumentDirection direction) 1278internal void RequireExtension(Type extensionType) 1289Dictionary<Type, WorkflowInstanceExtensionProvider> activityExtensionProviders; 1290HashSet<Type> requiredExtensionTypes; 1356public bool GetActivityExtensionInformation(out Dictionary<Type, WorkflowInstanceExtensionProvider> activityExtensionProviders, out HashSet<Type> requiredActivityExtensionTypes) 1366Type key = typeof(T); 1369this.activityExtensionProviders = new Dictionary<Type, WorkflowInstanceExtensionProvider>(); 1388public void RequireExtension(Type extensionType) 1398this.requiredExtensionTypes = new HashSet<Type>(); 1446static Type DictionaryArgumentHelperType = typeof(DictionaryArgumentHelper<>); 1447static Type OverloadGroupAttributeType = typeof(OverloadGroupAttribute); 1464Type argumentType; 1503Type innerType; 1518Type concreteHelperType = DictionaryArgumentHelperType.MakeGenericType(innerType); 1831internal override Type InternalResultType 1889Type locationGenericType;
System\Activities\ActivityDelegate.cs (1)
120Type innerType;
System\Activities\ActivityMetadata.cs (1)
269public void RequireExtension(Type extensionType)
System\Activities\ActivityUtilities.cs (98)
23static Type activityType = typeof(Activity); 24static Type activityGenericType = typeof(Activity<>); 25static Type activityDelegateType = typeof(ActivityDelegate); 26static Type constraintType = typeof(Constraint); 27static Type variableType = typeof(Variable); 28static Type variableGenericType = typeof(Variable<>); 29static Type delegateInArgumentType = typeof(DelegateInArgument); 30static Type delegateOutArgumentType = typeof(DelegateOutArgument); 31static Type delegateInArgumentGenericType = typeof(DelegateInArgument<>); 32static Type delegateOutArgumentGenericType = typeof(DelegateOutArgument<>); 33static Type inArgumentType = typeof(InArgument); 34static Type inArgumentGenericType = typeof(InArgument<>); 35static Type inOutArgumentType = typeof(InOutArgument); 36static Type inOutArgumentGenericType = typeof(InOutArgument<>); 37static Type outArgumentType = typeof(OutArgument); 38static Type outArgumentGenericType = typeof(OutArgument<>); 39static Type argumentType = typeof(Argument); 40static Type argumentReferenceGenericType = typeof(ArgumentReference<>); 41static Type argumentValueGenericType = typeof(ArgumentValue<>); 42static Type runtimeArgumentType = typeof(RuntimeArgument); 43static Type locationGenericType = typeof(Location<>); 44static Type variableReferenceGenericType = typeof(VariableReference<>); 45static Type variableValueGenericType = typeof(VariableValue<>); 46static Type delegateArgumentValueGenericType = typeof(DelegateArgumentValue<>); 47static Type handleType = typeof(Handle); 48static Type iDictionaryGenericType = typeof(IDictionary<,>); 49static Type locationReferenceValueType = typeof(LocationReferenceValue<>); 50static Type environmentLocationValueType = typeof(EnvironmentLocationValue<>); 51static Type environmentLocationReferenceType = typeof(EnvironmentLocationReference<>); 52static IList<Type> collectionInterfaces; 53static Type inArgumentOfObjectType = typeof(InArgument<object>); 54static Type outArgumentOfObjectType = typeof(OutArgument<object>); 55static Type inOutArgumentOfObjectType = typeof(InOutArgument<object>); 81static IList<Type> CollectionInterfaces 87collectionInterfaces = new List<Type>(2) 115public static bool IsHandle(Type type) 125public static bool TryGetArgumentDirectionAndType(Type propertyType, out ArgumentDirection direction, out Type argumentType) 134Type genericType = propertyType.GetGenericTypeDefinition(); 176public static bool IsArgumentType(Type propertyType) 181public static bool IsRuntimeArgumentType(Type propertyType) 186public static bool IsArgumentDictionaryType(Type type, out Type innerType) 191Type dictionaryInterfaceType = null; 200foreach (Type interfaceType in type.GetInterfaces()) 214Type[] genericArguments = dictionaryInterfaceType.GetGenericArguments(); 228public static bool IsKnownCollectionType(Type type, out Type innerType) 234Type localInterface = type.GetGenericTypeDefinition(); 235foreach (Type knownInterface in CollectionInterfaces) 239Type[] genericArguments = type.GetGenericArguments(); 251Type[] interfaceTypes = type.GetInterfaces(); 252foreach (Type interfaceType in interfaceTypes) 256Type localInterface = interfaceType.GetGenericTypeDefinition(); 258foreach (Type knownInterface in CollectionInterfaces) 262Type[] genericArguments = interfaceType.GetGenericArguments(); 279public static bool IsActivityDelegateType(Type propertyType) 284public static bool IsActivityType(Type propertyType) 289public static bool IsActivityType(Type propertyType, bool includeConstraints) 300public static bool TryGetDelegateArgumentDirectionAndType(Type propertyType, out ArgumentDirection direction, out Type argumentType) 309Type genericType = propertyType.GetGenericTypeDefinition(); 339public static bool IsVariableType(Type propertyType, out Type innerType) 351public static bool IsVariableType(Type propertyType) 361public static bool IsLocationGenericType(Type type, out Type genericArgumentType) 375Type genericVariableReferenceType = variableReferenceGenericType.MakeGenericType(variable.Type); 386public static Argument CreateArgument(Type type, ArgumentDirection direction) 388Type argumentType = ArgumentTypeDefinitionsCache.GetArgumentType(type, direction); 415public static Type CreateLocation(Type locationType) 420public static Type CreateActivityWithResult(Type resultType) 425public static Argument CreateReferenceArgument(Type argumentType, ArgumentDirection direction, string referencedArgumentName) 446public static Variable CreateVariable(string name, Type type, VariableModifiers modifiers) 448Type variableType = variableGenericType.MakeGenericType(type); 485static string GetDisplayName(Type sourceType) 501Type[] genericArguments = sourceType.GetGenericArguments(); 1367public static Type GetArgumentType(Type type, ArgumentDirection direction) 1384Type argumentType = lookupTable[type] as Type; 1397static Type CreateArgumentType(Type type, ArgumentDirection direction) 1399Type argumentType = null; 1421static Dictionary<Type, ILocationReferenceExpression> locationReferenceValueTypeDefinitions = new Dictionary<Type, ILocationReferenceExpression>(); 1424static Dictionary<Type, ILocationReferenceExpression> environmentLocationReferenceTypeDefinitions = new Dictionary<Type, ILocationReferenceExpression>(); 1427static Dictionary<Type, ILocationReferenceExpression> environmentLocationValueTypeDefinitions = new Dictionary<Type, ILocationReferenceExpression>(); 1429public static ActivityWithResult CreateNewLocationAccessExpression(Type type, bool isReference, bool useLocationReferenceValue, LocationReference locationReference) 1431Dictionary<Type, ILocationReferenceExpression> lookupTable = null; 1450Type locationAccessExpressionType = CreateLocationAccessExpressionType(type, isReference, useLocationReferenceValue); 1466static Type CreateLocationAccessExpressionType(Type type, bool isReference, bool useLocationReferenceValue) 1468Type openType;
System\Activities\ActivityWithResult.cs (2)
16public Type ResultType 37internal abstract Type InternalResultType
System\Activities\Argument.cs (4)
32public Type ArgumentType 221public static Argument Create(Type type, ArgumentDirection direction) 294Type locationType; 298Type expectedType = ActivityUtilities.CreateActivityWithResult(ActivityUtilities.CreateLocation(this.ArgumentType));
System\Activities\CodeActivityMetadata.cs (1)
169public void RequireExtension(Type extensionType)
System\Activities\CodeActivityPublicEnvironmentAccessor.cs (2)
144void AddGeneratedArgument(Type argumentType, ArgumentDirection direction, ActivityWithResult expression) 164Type codeActivityOfTType = null;
System\Activities\Debugger\DebugInfo.cs (5)
116Type locationValueType, // Non null for Reference type (location) 123Type activityType; 141Type locationHelperType = typeof(LocationHelper<>).MakeGenericType(locationValueType); 320Type t = location.LocationType; 611public object GetService(Type serviceType)
System\Activities\Debugger\LocalsItemDescription.cs (2)
18public LocalsItemDescription(string name, Type type) 32public Type Type
System\Activities\Debugger\State.cs (2)
36Type type; 124internal void CacheMethodInfo(Type type, string methodName)
System\Activities\Debugger\StateManager.cs (8)
38static Type threadWorkerControllerType = typeof(ThreadWorkerController); 574internal MethodBuilder CreateMethodBuilder(TypeBuilder typeBuilder, Type typeIslandArguments, State state, bool withPriming) 592Type[] parameterTypes = new Type[numberOfBaseArguments + numberOfEarlyLocals]; 606Type returnType = typeof(void); 696Type.EmptyTypes); 705Type debuggableAttributeType = typeof(DebuggableAttribute); 706ConstructorInfo constructorInfo = debuggableAttributeType.GetConstructor(new Type[] { typeof(DebuggableAttribute.DebuggingModes) });
System\Activities\Debugger\Symbol\DebugSymbol.cs (1)
15static Type attachingTypeName = typeof(DebugSymbol);
System\Activities\Debugger\XamlDebuggerXmlReader.cs (2)
41private static readonly Type attachingType = typeof(XamlDebuggerXmlReader); 376Type targetType = target.GetType();
System\Activities\Debugger\XmlWrappingReader.cs (1)
99public override Type ValueType
System\Activities\DelegateInArgument.cs (1)
29protected override Type TypeCore
System\Activities\DelegateOutArgument.cs (1)
30protected override Type TypeCore
System\Activities\DynamicActivity.cs (2)
176object ICustomTypeDescriptor.GetEditor(Type editorBaseType) 364object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
System\Activities\DynamicActivityProperty.cs (1)
43public Type Type
System\Activities\DynamicActivityTypeDescriptor.cs (5)
72public object GetEditor(Type editorBaseType) 148Type componentType; 150public DynamicActivityPropertyDescriptor(DynamicActivityProperty activityProperty, Type componentType) 157public override Type ComponentType 191public override Type PropertyType
System\Activities\DynamicUpdate\ArgumentInfo.cs (15)
20private Type type; 47private Type Type 57this.type = Type.GetType(this.FullAssemblyQualifiedTypeName, false); 199static string GenerateVersionlessAssemblyQualifiedTypeName(Type type) 208static void BuildTypeSpec(StringBuilder sb, Type type) 220static void BuildReferenceTypeSpec(StringBuilder sb, Type type) 228static void BuildSimpleTypeSpec(StringBuilder sb, Type type) 244static void BuildPointerTypeSpec(StringBuilder sb, Type type) 252static void BuildArrayTypeSpec(StringBuilder sb, Type type) 270static void BuildTypeName(StringBuilder sb, Type type) 277static void BuildNamespaceTypeName(StringBuilder sb, Type type) 287static void BuildNestedTypeName(StringBuilder sb, Type type) 298static void BuildSimpleName(StringBuilder sb, Type type) 305Type[] genericArguments = type.GetGenericArguments(); 323static void BuildAssemblyNameSpec(StringBuilder sb, Type type)
System\Activities\Expressions\ExpressionServices.cs (23)
58Type operandType = unaryExpressionBody.Operand.Type; 59Type resultType = typeof(TResult); 65Type leftType = binaryExpressionBody.Left.Type; 66Type rightType = binaryExpressionBody.Right.Type; 76Type memberType = memberExpressionBody.Expression == null ? memberExpressionBody.Member.DeclaringType : memberExpressionBody.Expression.Type; 83Type declaringType = calledMethod.DeclaringType; 179Type memberType = memberExpressionBody.Expression == null ? memberExpressionBody.Member.DeclaringType : memberExpressionBody.Expression.Type; 185Type leftType = binaryExpressionBody.Left.Type; 186Type rightType = binaryExpressionBody.Right.Type; 195Type declaringType = methodCallExpressionBody.Method.DeclaringType; 433static string TryConvertArrayItemReference<TResult>(BinaryExpression binaryExpression, Type leftType, Type rightType, bool throwOnError, out Activity<Location<TResult>> result) 772static string TryConvertBinaryExpression<TResult>(BinaryExpression binaryExpressionBody, Type leftType, Type rightType, bool throwOnError, out Activity<TResult> result) 789static string TryConvertArrayItemValue<TResult>(BinaryExpression binaryExpression, Type leftType, Type rightType, bool throwOnError, out Activity<TResult> result) 956static string TryConvertUnaryExpression<TResult>(UnaryExpression unaryExpressionBody, Type operandType, bool throwOnError, out Activity<TResult> result) 1016static string TryConvertMemberExpression<TResult>(MemberExpression memberExpressionBody, Type operandType, bool throwOnError, out Activity<TResult> result) 1079static string TryConvertReferenceMemberExpression<TResult>(MemberExpression memberExpressionBody, Type operandType, bool throwOnError, out Activity<Location<TResult>> result) 1284foreach (Type type in methodInfo.GetGenericArguments()) 1447static string TryConvertArguments(ReadOnlyCollection<Expression> source, IList target, Type expressionType, int baseEvaluationOrder, ParameterInfo[] parameterInfoArray, bool throwOnError) 1503Type valueType = value.GetType(); 1561Type valueType = value.GetType();
System\Activities\Expressions\FieldReference.cs (1)
53Type operandType = typeof(TOperand);
System\Activities\Expressions\FieldValue.cs (1)
47Type operandType = typeof(TOperand);
System\Activities\Expressions\IndexerHelper.cs (4)
31Type[] getTypes = new Type[indices.Count]; 43Type[] setTypes = new Type[indices.Count + 1];
System\Activities\Expressions\InvokeMethod.cs (5)
22Collection<Type> genericTypeArguments; 32public Collection<Type> GenericTypeArguments 38this.genericTypeArguments = new ValidatingCollection<Type> 90public Type TargetType 107Type targetObjectType = TypeHelper.ObjectType;
System\Activities\Expressions\Literal.cs (5)
44Type literalType = typeof(T); 64Type typeArgument; 65Type valueType; 147Type typeArgument; 148Type valueType;
System\Activities\Expressions\MemberExpressionHelper.cs (1)
67Type declaringType = typeof(TOperand);
System\Activities\Expressions\MethodCallExpressionHelper.cs (6)
29Type parameterType = parameterInfos[i].ParameterType; 36Expression.Call(typeof(Convert).GetMethod("ChangeType", new Type[] { typeof(object), typeof(Type) }), Expression.ArrayIndex(objectArray, Expression.Constant(i)), Expression.Constant(variable.Type, typeof(Type))), 104Collection<Expression> assignVariablesBack, Type returnType, bool isConstructor, bool valueTypeReference) 146static Expression ComposeLinqExpression(MethodInfo methodInfo, ParameterExpression targetInstance, ParameterExpression objectArray, Type returnType, bool valueTypeReference)
System\Activities\Expressions\MultidimensionalArrayItemReference.cs (1)
82Type realItemType = items.GetType().GetElementType();
System\Activities\Expressions\New.cs (2)
64Type[] types = new Type[this.Arguments.Count];
System\Activities\Expressions\NewArray.cs (3)
55Type[] types = new Type[this.Bounds.Count]; 107bool isIntegralType(Type type)
System\Activities\Expressions\PropertyReference.cs (1)
59Type operandType = typeof(TOperand);
System\Activities\Expressions\PropertyValue.cs (1)
46Type operandType = typeof(TOperand);
System\Activities\ExpressionUtilities.cs (40)
28static Type inArgumentGenericType = typeof(InArgument<>); 29static Type outArgumentGenericType = typeof(OutArgument<>); 30static Type inOutArgumentGenericType = typeof(InOutArgument<>); 31static Type variableGenericType = typeof(Variable<>); 32static Type delegateInArgumentGenericType = typeof(DelegateInArgument<>); 33static Type delegateOutArgumentGenericType = typeof(DelegateOutArgument<>); 34static Type activityContextType = typeof(ActivityContext); 35static Type locationReferenceType = typeof(LocationReference); 36static Type runtimeArgumentType = typeof(RuntimeArgument); 37static Type argumentType = typeof(Argument); 38static Type variableType = typeof(Variable); 39static Type delegateArgumentType = typeof(DelegateArgument); 42static MethodInfo activityContextGetValueGenericMethod = typeof(ActivityContext).GetMethod("GetValue", new Type[] { typeof(LocationReference) }); 43static MethodInfo activityContextGetLocationGenericMethod = typeof(ActivityContext).GetMethod("GetLocation", new Type[] { typeof(LocationReference) }); 44static MethodInfo locationReferenceGetLocationMethod = typeof(LocationReference).GetMethod("GetLocation", new Type[] { typeof(ActivityContext) }); 45static MethodInfo argumentGetLocationMethod = typeof(Argument).GetMethod("GetLocation", new Type[] { typeof(ActivityContext) }); 46static MethodInfo variableGetMethod = typeof(Variable).GetMethod("Get", new Type[] { typeof(ActivityContext) }); 47static MethodInfo delegateArgumentGetMethod = typeof(DelegateArgument).GetMethod("Get", new Type[] { typeof(ActivityContext) }); 70public static bool IsLocation(LambdaExpression expression, Type targetType, out string extraErrorMessage) 124Type declaringType = method.DeclaringType; 139Type declaringTypeGenericDefinition = declaringType.GetGenericTypeDefinition(); 190Type declaringType = method.DeclaringType; 205Type declaringTypeGenericDefinition = declaringType.GetGenericTypeDefinition(); 238Type genericFuncType = linqAssembly.GetType("System.Func`" + (parameterCount + 1), true); 239Type[] delegateParameterTypes = new Type[parameterCount + 1]; 246Type funcType = genericFuncType.MakeGenericType(delegateParameterTypes); 506Type[] setItemParameterTypes = new Type[getItemParameters.Length + 1]; 1442static bool TryRewriteArgumentGetCall(MethodCallExpression originalExpression, Type returnType, out Expression newExpression, CodeActivityPublicEnvironmentAccessor publicAccessor, bool isLocationExpression) 1468static bool TryRewriteArgumentGetLocationCall(MethodCallExpression originalExpression, Type returnType, out Expression newExpression, CodeActivityPublicEnvironmentAccessor publicAccessor) 1502static bool TryRewriteLocationReferenceSubclassGetCall(MethodCallExpression originalExpression, Type returnType, out Expression newExpression, CodeActivityPublicEnvironmentAccessor publicAccessor, bool isLocationExpression) 1528static bool TryRewriteLocationReferenceSubclassGetLocationCall(MethodCallExpression originalExpression, Type returnType, out Expression newExpression, CodeActivityPublicEnvironmentAccessor publicAccessor) 1662static bool TryRewriteActivityContextGetValueCall(MethodCallExpression originalExpression, Type returnType, out Expression newExpression, CodeActivityPublicEnvironmentAccessor publicAccessor, bool isLocationExpression) 1704static bool TryRewriteActivityContextGetLocationCall(MethodCallExpression originalExpression, Type returnType, out Expression newExpression, CodeActivityPublicEnvironmentAccessor publicAccessor) 1819Type targetObjectType = targetMethod.DeclaringType; 1827Type targetObjectGenericType = targetObjectType.GetGenericTypeDefinition(); 1900Type returnType = TypeHelper.ObjectType; 1927Type returnType = TypeHelper.ObjectType; 1943Type returnType = TypeHelper.ObjectType;
System\Activities\Handle.cs (1)
69internal static string GetPropertyName(Type handleType)
System\Activities\HandleInitializationContext.cs (1)
73internal object CreateAndInitializeHandle(Type handleType)
System\Activities\Hosting\SymbolResolver.cs (10)
74public void Add(string key, Type type) 85public void Add(string key, object value, Type type) 103Type valueType = TypeHelper.ObjectType; 266Location GetLocation(string name, Type type) 338Type type; 340public ExternalLocationReference(string name, Type type, object value) 371protected override Type TypeCore 393Type type; 396public ExternalLocation(Type type, object value) 402public override Type LocationType
System\Activities\Hosting\WorkflowInstanceExtensionCollection.cs (19)
22Dictionary<Type, object> singleTypeCache; 27Type lastTypeCached; 53Dictionary<Type, WorkflowInstanceExtensionProvider> activityExtensionProviders; 54Dictionary<Type, WorkflowInstanceExtensionProvider> filteredActivityExtensionProviders = null; 55HashSet<Type> requiredActivityExtensionTypes; 60HashSet<Type> allExtensionTypes = new HashSet<Type>(); 68filteredActivityExtensionProviders = new Dictionary<Type, WorkflowInstanceExtensionProvider>(activityExtensionProviders.Count); 69foreach (KeyValuePair<Type, WorkflowInstanceExtensionProvider> keyedActivityExtensionProvider in activityExtensionProviders) 71Type newExtensionProviderType = keyedActivityExtensionProvider.Key; 75List<Type> typesToRemove = null; 77foreach (Type existingExtensionProviderType in filteredActivityExtensionProviders.Keys) 90typesToRemove = new List<Type>(); 122foreach (Type requiredType in requiredActivityExtensionTypes) 139List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>> extensionProviders = extensionManager.ExtensionProviders; 142KeyValuePair<Type, WorkflowInstanceExtensionProvider> extensionProvider = extensionProviders[i]; 444void CacheExtension(Type extensionType, object extension) 450this.singleTypeCache = new Dictionary<Type, object>(); 459bool TryGetCachedExtension(Type type, out object extension)
System\Activities\Hosting\WorkflowInstanceExtensionManager.cs (6)
18internal static List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>> EmptyExtensionProviders = new List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>>(0); 52internal List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>> ExtensionProviders 139this.ExtensionProviders = new List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>>(); 142this.ExtensionProviders.Add(new KeyValuePair<Type, WorkflowInstanceExtensionProvider>(typeof(T), new WorkflowInstanceExtensionProvider<T>(extensionCreationFunction))); 150internal void AddAllExtensionTypes(HashSet<Type> extensionTypes)
System\Activities\Hosting\WorkflowInstanceExtensionProvider.cs (1)
15public Type Type
System\Activities\InlinedLocationReference.cs (1)
43protected override Type TypeCore
System\Activities\Location.cs (3)
25public abstract Type LocationType 142public override Type LocationType 215public override Type LocationType
System\Activities\LocationReference.cs (2)
27public Type Type 44protected abstract Type TypeCore { get; }
System\Activities\NativeActivityMetadata.cs (1)
385public void RequireExtension(Type extensionType)
System\Activities\Runtime\ActivityCompletionCallbackWrapper.cs (3)
15static readonly Type completionCallbackType = typeof(CompletionCallback); 16static readonly Type[] completionCallbackParameters = new Type[] { typeof(NativeActivityContext), typeof(ActivityInstance) };
System\Activities\Runtime\ActivityExecutor.cs (3)
3814static readonly Type callbackType = typeof(Action<NativeActivityTransactionContext, object>); 3815static readonly Type[] transactionCallbackParameterTypes = new Type[] { typeof(NativeActivityTransactionContext), typeof(object) };
System\Activities\Runtime\BookmarkCallbackWrapper.cs (3)
15static readonly Type bookmarkCallbackType = typeof(BookmarkCallback); 16static readonly Type[] bookmarkCallbackParameters = new Type[] { typeof(NativeActivityContext), typeof(Bookmark), typeof(object) };
System\Activities\Runtime\CallbackWrapper.cs (22)
133protected void EnsureCallback(Type delegateType, Type[] parameterTypes, Type genericParameter) 146protected void ValidateCallbackResolution(Type delegateType, Type[] parameterTypes, Type genericParameter) 156MethodInfo FindMatchingGenericMethod(Type declaringType, Type[] parameterTypes, Type genericParameter) 167Type[] genericArguments = potentialMatch.GetGenericArguments(); 199Delegate GenerateCallback(Type delegateType, Type[] parameterTypes, Type genericParameter) 201Type declaringType; 220protected void EnsureCallback(Type delegateType, Type[] parameters) 225Type unusedDeclaringType; 234MethodInfo GetMatchingMethod(Type[] parameters, out Type declaringType) 268Delegate RecreateCallback(Type delegateType, MethodInfo callbackMethod) 311Type declaringType = method.DeclaringType; 312Type activityType = this.ActivityInstance.Activity.GetType();
System\Activities\Runtime\CompletionCallbackWrapper.cs (3)
20static Type completionCallbackType = typeof(CompletionCallback); 21static Type[] completionCallbackParameters = new Type[] { typeof(NativeActivityContext), typeof(ActivityInstance) };
System\Activities\Runtime\DelegateCompletionCallbackWrapper.cs (3)
16static readonly Type callbackType = typeof(DelegateCompletionCallback); 17static readonly Type[] callbackParameterTypes = new Type[] { typeof(NativeActivityContext), typeof(ActivityInstance), typeof(IDictionary<string, object>) };
System\Activities\Runtime\FaultCallbackWrapper.cs (3)
15static readonly Type faultCallbackType = typeof(FaultCallback); 16static readonly Type[] faultCallbackParameters = new Type[] { typeof(NativeActivityFaultContext), typeof(Exception), typeof(ActivityInstance) };
System\Activities\Runtime\FuncCompletionCallbackWrapper.cs (3)
17static readonly Type callbackType = typeof(CompletionCallback<T>); 18static readonly Type[] callbackParameterTypes = new Type[] { typeof(NativeActivityContext), typeof(ActivityInstance), typeof(T) };
System\Activities\RuntimeArgument.cs (9)
29Type type; 31public RuntimeArgument(string name, Type argumentType, ArgumentDirection direction) 36public RuntimeArgument(string name, Type argumentType, ArgumentDirection direction, List<string> overloadGroupNames) 41public RuntimeArgument(string name, Type argumentType, ArgumentDirection direction, bool isRequired) 46public RuntimeArgument(string name, Type argumentType, ArgumentDirection direction, bool isRequired, List<string> overloadGroupNames) 67internal RuntimeArgument(string name, Type argumentType, ArgumentDirection direction, bool isRequired, List<string> overloadGroups, PropertyDescriptor bindingProperty, object propertyOwner) 74internal RuntimeArgument(string name, Type argumentType, ArgumentDirection direction, bool isRequired, List<string> overloadGroups, Argument argument) 103protected override Type TypeCore 229Type argumentType;
System\Activities\RuntimeDelegateArgument.cs (2)
17public RuntimeDelegateArgument(string name, Type type, ArgumentDirection direction, DelegateArgument boundArgument) 53public Type Type
System\Activities\Statements\Assign.cs (2)
39Type valueType = TypeHelper.ObjectType; 49Type toType = TypeHelper.ObjectType;
System\Activities\Statements\Catch.cs (2)
23public abstract Type ExceptionType 42public override Type ExceptionType
System\Activities\Statements\InvokeMethod.cs (6)
22Collection<Type> genericTypeArguments; 33public Collection<Type> GenericTypeArguments 39this.genericTypeArguments = new ValidatingCollection<Type> 98public Type TargetType 116Type targetObjectType = TypeHelper.ObjectType; 127Type resultType = TypeHelper.ObjectType;
System\Activities\Statements\MethodExecutor.cs (2)
22Type targetType; 27public MethodExecutor(Activity invokingActivity, Type targetType, InArgument targetObject,
System\Activities\Statements\MethodResolver.cs (35)
34public Collection<Type> GenericTypeArguments { get; set; } 44public Type TargetType { get; set; } 53internal Type ResultType { get; set; } 194Type targetType = this.TargetType; 227Type[] parameterTypes = 231Type[] genericTypeArguments = this.GenericTypeArguments.ToArray(); 237Type resultType = this.ResultType; 242Type[] beginMethodParameterTypes = new Type[formalParamCount + 2]; 250Type[] endMethodParameterTypes = { typeof(IAsyncResult) }; 342MethodInfo Resolve(Type targetType, string methodName, BindingFlags bindingFlags, 343InheritanceAndParamArrayAwareBinder methodBinder, Type[] parameterTypes, Type[] genericTypeArguments, bool suppressAmbiguityException) 373static MethodInfo Instantiate(MethodInfo method, Type[] genericTypeArguments) 408Type[] genericTypeArguments; 410Type declaringType; // Methods declared directly on this type are preferred, followed by methods on its parents, etc. 417public InheritanceAndParamArrayAwareBinder(Type declaringType, Type[] genericTypeArguments, Activity parentActivity) 434public override object ChangeType(object value, Type type, CultureInfo culture) 444public override MethodBase SelectMethod(BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[] modifiers) 476Type declaringType = this.declaringType; 493MethodBase FindMatch(MethodBase[] methodCandidates, BindingFlags bindingAttr, Type[] types, ParameterModifier[] modifiers) 497MethodBase result = Type.DefaultBinder.SelectMethod(bindingAttr, methodCandidates, types, modifiers); 508Type elementType = formalParams[formalParams.Length - 1].ParameterType.GetElementType(); 528Type[] typeArray = new Type[formalParams.Length]; 536MethodBase newFound = Type.DefaultBinder.SelectMethod(bindingAttr, new MethodBase[] { methodInfo }, typeArray, modifiers); 554public override PropertyInfo SelectProperty(BindingFlags bindingAttr, PropertyInfo[] match, Type returnType, Type[] indexes, ParameterModifier[] modifiers) 567Type targetType, InArgument targetObject, Collection<Argument> parameters, 578public SyncMethodExecutor(SyncMethodExecutor copy, Type targetType, InArgument targetObject, Collection<Argument> parameters, 620Activity invokingActivity, Type targetType, InArgument targetObject, 633public AsyncPatternMethodExecutor(AsyncPatternMethodExecutor copy, Type targetType, InArgument targetObject, 683Type targetType, InArgument targetObject, Collection<Argument> parameters, 695public AsyncWaitCallbackMethodExecutor(AsyncWaitCallbackMethodExecutor copy, Type targetType, InArgument targetObject,
System\Activities\Statements\TransactionScope.cs (10)
177Condition = new Equal<Type, Type, bool> 183Right = new InArgument<Type>(context => typeof(TransactionScope)) 265Condition = new Equal<Type, Type, bool>() 271Right = new InArgument<Type>(context => typeof(CompensableActivity)) 415class ObtainType : CodeActivity<Type> 436RuntimeArgument resultArgument = new RuntimeArgument("Result", typeof(Type), ArgumentDirection.Out); 439this.Result = new OutArgument<Type>(); 451protected override Type Execute(CodeActivityContext context)
System\Activities\Statements\TryCatch.cs (2)
156internal static Catch FindCatchActivity(Type typeToMatch, IList<Catch> catches) 319Type exceptionType = exception.GetType();
System\Activities\Tracking\EtwTrackingParticipant.cs (1)
173Type valueType = item.Value.GetType();
System\Activities\Validation\ActivityValidationServices.cs (2)
513Type currentType = toValidate.GetType(); 525Type genericDefinitionType = currentType.GetGenericTypeDefinition();
System\Activities\Validation\ValidationSettings.cs (3)
15IDictionary<Type, IList<Constraint>> additionalConstraints; 61public IDictionary<Type, IList<Constraint>> AdditionalConstraints 67this.additionalConstraints = new Dictionary<Type, IList<Constraint>>();
System\Activities\Variable.cs (2)
127public static Variable Create(string name, Type type, VariableModifiers modifiers) 315protected override Type TypeCore
System\Activities\WorkflowDataContext.cs (2)
208public override Type ComponentType 223public override Type PropertyType
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (3)
85this.typeXamlType = this.SchemaContext.GetXamlType(typeof(Type)); 361Type activityType = xamlType.TypeArguments[0].UnderlyingType; 1188Type propertyReferenceType = typeof(PropertyReferenceExtension<>).MakeGenericType(targetProperty.Type.UnderlyingType ?? typeof(object));
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (5)
29public ActivityWithResultConverter(Type type) 70static XamlMember GetXamlMember(XamlSchemaContext schemaContext, Type type, string memberName) 84static Type LocationHelperType = typeof(LocationHelper<>); 87Type valueType; 103Type concreteHelperType = LocationHelperType.MakeGenericType(typeof(T), this.valueType);
System\Activities\XamlIntegration\ActivityXamlServices.cs (5)
270public static Func<object> CreateFactory(XamlReader reader, Type resultType) 329Type compiledExpressionRootType = results.ResultType; 403Type componentType, 500Type schemaContextType = assembly.GetType(helperClassName); 536static void InitializeComponentFromXamlResource(Type componentType, string resource, object componentInstance, XamlSchemaContext schemaContext)
System\Activities\XamlIntegration\AssemblyReferenceConverter.cs (3)
18public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 57public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 62public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Activities\XamlIntegration\CompiledLocation.cs (8)
136public IList<Tuple<string, Type>> locationReferenceCache 145List<Tuple<string, Type>> durableCache = new List<Tuple<string, Type>>(this.locationReferences.Count); 149durableCache.Add(new Tuple<string, Type>(reference.Name, reference.Type)); 163foreach (Tuple<string, Type> reference in value) 276Type type; 278public CompiledLocationReference(string name, Type type) 292protected override Type TypeCore
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (3)
94this.typeXamlType = this.schemaContext.GetXamlType(typeof(Type)); 399Type activityType = this.innerReader.Type.TypeArguments[0].UnderlyingType; 400Type activityReplacementGenericType;
System\Activities\XamlIntegration\DynamicUpdateMapConverter.cs (2)
15public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 20public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Activities\XamlIntegration\DynamicUpdateMapItemConverter.cs (3)
14public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 46public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 51public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Activities\XamlIntegration\FuncFactory.cs (4)
17public static Func<object> CreateFunc(XamlReader reader, Type returnType) 55Type propertyType = null; 73static FuncFactory CreateFactory(IXamlObjectWriterFactory objectWriterFactory, XamlReader xamlReader, params Type[] returnType) 75Type closedType = typeof(FuncFactory<>).MakeGenericType(returnType);
System\Activities\XamlIntegration\ImplementationVersionConverter.cs (3)
14public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 32public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 37public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Activities\XamlIntegration\InArgumentConverter.cs (1)
18public InArgumentConverter(Type type)
System\Activities\XamlIntegration\InOutArgumentConverter.cs (1)
18public InOutArgumentConverter(Type type)
System\Activities\XamlIntegration\OutArgumentConverter.cs (1)
18public OutArgumentConverter(Type type)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (9)
390void AddMember(string name, Type type, CompiledDataContextDescriptor contextDescriptor) 1384Type resultType = (activity is ActivityWithResult) ? ((ActivityWithResult)activity).ResultType : null; 1493Type returnType = typeof(Expression<>).MakeGenericType(typeof(Func<>).MakeGenericType(expressionDescriptor.ResultType)); 1532CodeMemberMethod GenerateGetMethod(Activity activity, Type resultType, string expressionText, int nextExpressionId) 1570CodeMemberMethod GenerateSetMethod(Activity activity, Type resultType, string expressionText, int nextExpressionId) 2042Type[] types; 2055foreach (Type type in types) 2761internal Type ResultType 2896public Type Type;
System\Activities\XamlIntegration\TextExpressionCompilerResults.cs (1)
20public Type ResultType
System\Activities\XamlIntegration\TypeConverterBase.cs (20)
19Lazy<ConcurrentDictionary<Type, TypeConverterHelper>> helpers = new Lazy<ConcurrentDictionary<Type, TypeConverterHelper>>( delegate() 21return new ConcurrentDictionary<Type, TypeConverterHelper>(); 26Type baseType; 27Type helperType; 29internal TypeConverterBase(Type baseType, Type helperType) 35internal TypeConverterBase(Type targetType, Type baseType, Type helperType) 40public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 68Type targetType = targetService.GetDestinationType(); 89public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 94TypeConverterHelper GetTypeConverterHelper(Type targetType, Type baseType, Type helperType) 96Type[] genericTypeArguments; 100genericTypeArguments = new Type[] { TypeHelper.ObjectType }; 118Type concreteHelperType = helperType.MakeGenericType(genericTypeArguments);
System\Activities\XamlIntegration\WorkflowIdentityConverter.cs (1)
15public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System.Activities.Core.Presentation (281)
System\Activities\Core\Presentation\ArgumentIdentifierTrimConverter.cs (2)
14public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 24public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System\Activities\Core\Presentation\AssignDesigner.xaml.cs (2)
60Type assignType = typeof(Assign); 111Type targetType = to == null ? typeof(object) : to.ArgumentType;
System\Activities\Core\Presentation\CancellationScopeDesigner.xaml.cs (1)
21Type type = typeof(CancellationScope);
System\Activities\Core\Presentation\CaseDesigner.xaml.cs (2)
66Type type = typeof(ModelItemKeyValuePair<,>); 76Type modelItemType = this.ModelItem.ItemType;
System\Activities\Core\Presentation\CaseKeyBox.ViewInterface.cs (1)
23Type ValueType { get; }
System\Activities\Core\Presentation\CaseKeyBox.ViewModel.cs (1)
349Type ValueType
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (3)
28DependencyProperty.Register("ValueType", typeof(Type), typeof(CaseKeyBox), new PropertyMetadata(OnValueTypeChanged)); 178public Type ValueType 180get { return (Type)GetValue(ValueTypeProperty); }
System\Activities\Core\Presentation\CaseKeyBoxIsEnabledConverter.cs (2)
14public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 29public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\CaseLabelVisibilityConverter.cs (2)
13public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 27public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\CatchDesigner.xaml.cs (3)
58Type type = typeof(Catch<>); 70this.exceptionTypeShortName = TypeNameHelper.GetDisplayName((Type)this.ModelItem.Properties["ExceptionType"].Value.GetCurrentValue(), false); 82this.exceptionTypeFullName = TypeNameHelper.GetDisplayName((Type)this.ModelItem.Properties["ExceptionType"].Value.GetCurrentValue(), true);
System\Activities\Core\Presentation\CompensableActivityDesigner.xaml.cs (1)
24Type type = typeof(CompensableActivity);
System\Activities\Core\Presentation\DisplayNameConverter.cs (2)
17public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 32public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\DoWhileDesigner.xaml.cs (1)
23Type type = typeof(DoWhile);
System\Activities\Core\Presentation\DynamicActivityPropertyToTooltipConverter.cs (2)
16public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 35public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\ExpandableItemShowExpandedMultiValueConverter.cs (2)
18public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 42public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\ExpressionToExpressionTextConverter.cs (2)
18public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 30public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (5)
260(p is Type && typeof(Activity).IsAssignableFrom((Type)p)) || 261(p is Type && typeof(FlowNode).IsAssignableFrom((Type)p))); 528Type flowElementType = flowElement.GetType();
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (1)
164void RemoveAdorner(UIElement adornedElement, Type adornerType)
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (2)
155Type genericType = e.ParentModelItem.ItemType.GetGenericArguments()[0]; 472Type genericType = currentMI.ItemType.GetGenericArguments()[0];
System\Activities\Core\Presentation\FlowchartDesigner.ModelChanges.cs (1)
234Type typeArgument = srcFlowElementMI.ItemType.GetGenericArguments()[0];
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (4)
254Type type = typeof(Flowchart); 2333List<Type> draggedTypes = DragDropHelper.GetDraggedTypes(e.Data); 2338Type draggedType = draggedTypes[0]; 2687private static bool IsActivityTemplateFactory(Type type)
System\Activities\Core\Presentation\FlowDecisionDesigner.xaml.cs (1)
110Type type = typeof(FlowDecision);
System\Activities\Core\Presentation\FlowSwitchCaseEditorDialog.cs (2)
32Type genericType; 35public FlowSwitchCaseEditorDialog(ModelItem activity, EditingContext context, DependencyObject owner, string title, Type genericType)
System\Activities\Core\Presentation\FlowSwitchDefaultLinkFeature.cs (1)
17public override void Initialize(EditingContext context, Type modelType)
System\Activities\Core\Presentation\FlowSwitchDesigner.xaml.cs (2)
115Type type = typeof(System.Activities.Statements.FlowSwitch<>); 142Type flowSwitchLinkType = typeof(FlowSwitchCaseLink<>);
System\Activities\Core\Presentation\FlowSwitchLink.cs (2)
140public Type GenericType 192Type typeArgument = typeof(T);
System\Activities\Core\Presentation\FlowSwitchLinkMultiValueConverter.cs (3)
14public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 25return GenericFlowSwitchHelper.GetString(values[0], (Type) parameter); 29public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\ForEachDesigner.xaml.cs (3)
34Type[] types = new Type[] 40foreach (Type type in types)
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\Core\Presentation\GenericTypeArgumentConverter.cs (6)
13public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 15Fx.Assert(targetType == typeof(Type), "GenericTypeArgumentConverter is expected to be a Type to Type converter with an integer parameter"); 16Fx.Assert(value is Type, "GenericTypeArgumentConverter is expected to be a Type to Type converter with an integer parameter"); 17Type source = value as Type; 21public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System\Activities\Core\Presentation\HintTextConverter.cs (2)
15public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) 31public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
System\Activities\Core\Presentation\HintTextMaxWidthConverter.cs (2)
16public object Convert(object o, Type targetType, object parameter, CultureInfo culture) 26public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\IfElseDesigner.xaml.cs (1)
30Type type = typeof(If);
System\Activities\Core\Presentation\InteropDesigner.xaml.cs (7)
19private static Func<Type, bool> filter; 27public static Func<Type, bool> Filter 37Type activityType = GetTypeByQualifiedName(typeName); 93Type activityType = GetTypeByQualifiedName(InteropDesigner.InteropTypeAssemblyQualifiedName); 117private static Type GetTypeByQualifiedName(string assemblyQualifiedName) 123Type type = Type.GetType(assemblyQualifiedName);
System\Activities\Core\Presentation\InvokeDelegateDesigner.xaml.cs (3)
146Type underlyingArgumentType = this.ModelItem.Properties[DelegateArgumentsPropertyName].Value.GetCurrentValue().GetType().GetGenericArguments()[1]; 156Type dictionaryEntryType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), underlyingArgumentType });
System\Activities\Core\Presentation\InvokeDelegateValidationFeature.cs (2)
27protected override Type ApplyTo 45public override void Initialize(EditingContext context, Type modelType)
System\Activities\Core\Presentation\InvokeMethodDesigner.xaml.cs (1)
29Type type = typeof(InvokeMethod);
System\Activities\Core\Presentation\IsLastSelectedItemConverter.cs (2)
18public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 31public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\IsStateRootDesignerConverter.cs (2)
20public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 32public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\MaxValueConverter.cs (2)
16public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 34public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\MorphHelpers.cs (12)
31Type expressionTypeArgument = newModelProperty.PropertyType.GetGenericArguments()[0]; 36internal static Argument MorphArgument(ModelItem originalValue, Type targetType) 44Type expressionType = originalExpression.GetType(); 45Type expressionGenericType = expressionType.IsGenericType ? expressionType.GetGenericTypeDefinition() : null; 68Type activityActionTypeArgument = newModelProperty.PropertyType.GetGenericArguments()[0]; 69Type activityActionType = typeof(ActivityAction<>).MakeGenericType(activityActionTypeArgument); 76Type variableType = typeof(DelegateInArgument<>).MakeGenericType(activityActionTypeArgument); 95Type activityFuncArgumentType = newModelProperty.PropertyType.GetGenericArguments()[0]; 96Type activityFuncResultType = newModelProperty.PropertyType.GetGenericArguments()[1]; 97Type activityFuncType = typeof(ActivityFunc<,>).MakeGenericType(activityFuncArgumentType, activityFuncResultType); 104Type argumentType = typeof(DelegateInArgument<>).MakeGenericType(activityFuncArgumentType); 113Type resultType = typeof(DelegateOutArgument<>).MakeGenericType(activityFuncResultType);
System\Activities\Core\Presentation\NoPersistScopeDesigner.xaml.cs (1)
23Type type = typeof(NoPersistScope);
System\Activities\Core\Presentation\NotConverter.cs (2)
25public object Convert(object o, Type targetType, object parameter, CultureInfo culture) 30public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\ParallelDesigner.xaml.cs (1)
25Type type = typeof(Parallel);
System\Activities\Core\Presentation\ParallelSeparator.xaml.cs (3)
16DependencyProperty.Register("AllowedItemType", typeof(Type), typeof(ParallelSeparator), new UIPropertyMetadata(typeof(object))); 32public Type AllowedItemType 34get { return (Type)GetValue(AllowedItemTypeProperty); }
System\Activities\Core\Presentation\PickBranchDesigner.xaml.cs (1)
26Type type = typeof(PickBranch);
System\Activities\Core\Presentation\PickDesigner.xaml.cs (1)
31Type type = typeof(System.Activities.Statements.Pick);
System\Activities\Core\Presentation\RegisterMetadataDelayedWorker.cs (8)
119public override object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args) 143public override Type GetReflectionType(Type objectType, object instance) 149public override Type GetRuntimeType(Type reflectionType) 155public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 161public override bool IsSupportedType(Type type)
System\Activities\Core\Presentation\SequenceDesigner.xaml.cs (1)
41Type type = typeof(Sequence);
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (3)
179Type type = (p is Type) ? (Type)p : p.GetType();
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
168static IEnumerable<Adorner> RemoveAdorner(UIElement adornedElement, Type adornerType)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (2)
2417List<Type> types = DragDropHelper.GetDraggedTypes(e.Data); 2603List<Type> draggedTypes = DragDropHelper.GetDraggedTypes(e.Data);
System\Activities\Core\Presentation\StateDesigner.xaml.cs (1)
60Type stateType = typeof(State);
System\Activities\Core\Presentation\StateLinkButtonToolTipConverter.cs (2)
18public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 29public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System\Activities\Core\Presentation\StateMachineDesigner.xaml.cs (1)
51Type stateMachineType = typeof(StateMachine);
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (13)
36typeof(Type), 90Type CaseType 92get { return (Type)GetValue(CaseTypeProperty); } 120static List<Type> defaultTypes; 121static List<Type> DefaultTypes 127defaultTypes = new List<Type> 165Type modelItemType = this.ModelItem.ItemType; 166Type[] types = modelItemType.GetGenericArguments(); 302Type type = typeof(Switch<>); 409Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { this.CaseType, typeof(Activity) }); 426Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { this.CaseType, typeof(Activity) });
System\Activities\Core\Presentation\TransactionScopeDesigner.xaml.cs (1)
21Type type = typeof(TransactionScope);
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
207Type transitionType = typeof(Transition);
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (12)
67static ObservableCollection<Type> mostRecentlyUsedTypes; 68static ObservableCollection<Type> MostRecentlyUsedTypes 74mostRecentlyUsedTypes = new ObservableCollection<Type> 140Type type = typeof(TryCatch); 329void CreateCatch(Type exceptionType) 333Type catchType = typeof(Catch<>).MakeGenericType(exceptionType); 336Type activityActionType = typeof(ActivityAction<>).MakeGenericType(exceptionType); 339Type argumentType = typeof(DelegateInArgument<>).MakeGenericType(exceptionType); 588Type type = this.typePresenter.Type; 599bool ExceptionTypeFilter(Type type) 619Type exceptionType = exceptionTypeProperty.ComputedValue as Type;
System\Activities\Core\Presentation\VerticalConnector.xaml.cs (3)
15DependencyProperty.Register("AllowedItemType", typeof(Type), typeof(VerticalConnector), new UIPropertyMetadata(typeof(object))); 27public Type AllowedItemType 29get { return (Type)GetValue(AllowedItemTypeProperty); }
System\Activities\Core\Presentation\WhileDesigner.xaml.cs (1)
25Type type = typeof(While);
System\Activities\Core\Presentation\WriteLineDesigner.xaml.cs (1)
21Type type = typeof(WriteLine);
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (20)
57typeof(Type), 69static readonly Type InArgumentType = typeof(InArgument); 70static readonly Type OutArgumentType = typeof(OutArgument); 71static readonly Type InOutArgumentType = typeof(InOutArgument); 72static readonly Type ArgumentType = typeof(Argument); 328internal Type UnderlyingArgumentType 332return (Type)GetValue(UnderlyingArgumentTypeProperty); 350Type currentArgumentType = this.UnderlyingArgumentType; 374internal static ObservableCollection<DynamicArgumentWrapperObject> ModelItemToWrapperCollection(ModelItem model, out bool isDictionary, out Type underlyingArgumentType) 389Type underlyingKeyType = model.GetCurrentValue().GetType().GetGenericArguments()[0]; 430internal static void WrapperCollectionToModelItem(ObservableCollection<DynamicArgumentWrapperObject> wrappers, ModelItem data, bool isDictionary, Type underlyingArgumentType) 438Type dictionaryEntryType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), underlyingArgumentType }); 504Type[] innerArgumentTypes = this.UnderlyingArgumentType.GetGenericArguments(); 507Type innerArgumentType = innerArgumentTypes[0]; 603internal Type GetDefaultType() 605Type[] genericArguments = this.UnderlyingArgumentType.GetGenericArguments(); 731typeof(Type), 766public Type Type 768get { return (Type)GetValue(ArgumentTypeProperty); }
System\Activities\Presentation\DynamicArgumentDialog.cs (1)
17Type underlyingArgumentType;
System\Activities\Presentation\TypeCollectionDesigner.xaml.cs (9)
50internal IEnumerable<Type> InitialTypeCollection 60public IEnumerable<Type> UpdatedTypeCollection 80public Func<Type, bool> Filter 86public Type DefaultType 105if (tw.Type != null && list.Any<TypeWrapper>(entry => Type.Equals(entry.Type, tw.Type))) 169DependencyProperty.Register("Type", typeof(Type), typeof(TypeWrapper)); 178public TypeWrapper(Type type) 183public Type Type 185get { return (Type)GetValue(TypeProperty); }
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\ServiceModel\Activities\Presentation\ActivityXRefConverter.cs (2)
16public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 48public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System\ServiceModel\Activities\Presentation\BindingEditor.xaml.cs (1)
96Type bindingType = null;
System\ServiceModel\Activities\Presentation\ContentButtonTitleConverter.cs (2)
15public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 45public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (13)
56static readonly Type[] PrimitiveTypesInXPath = new Type[] 71Type selectedType = null; 119public Type GetSelectedType() 154else if (item.Header is Type) 156var type = (Type)item.Header; 237internal static bool IsPrimitiveTypeInXPath(Type type) 277typeof(Type), 293public Type TypeToExpand 295get { return (Type)GetValue(TypeToExpandProperty); } 299public Type[] TypeToExpandSource 301get { return new Type[] { this.TypeToExpand }; }
System\ServiceModel\Activities\Presentation\ContentDialogViewModel.cs (5)
19Type declaredMessageType; 99public Type DeclaredMessageType 121public Type UnderlyingArgumentType 178this.declaredMessageType = (Type)contentModelItem.Properties["DeclaredMessageType"].ComputedValue; 191Type underlyingArgumentType;
System\ServiceModel\Activities\Presentation\CorrelationInitializerDesigner.xaml.cs (6)
175PropertyType = typeof(Type), 219internal Type GetCorrelationType() 226Type type = (Type)(value is ModelItem ? ((ModelItem)value).GetCurrentValue() : value); 240Type type = (Type)(value is ModelItem ? ((ModelItem)value).GetCurrentValue() : value);
System\ServiceModel\Activities\Presentation\CorrelationScopeDesigner.xaml.cs (1)
21Type type = typeof(CorrelationScope);
System\ServiceModel\Activities\Presentation\EndpointDesigner.cs (1)
17Type endpointType = typeof(Endpoint);
System\ServiceModel\Activities\Presentation\InitializeCorrelationDesigner.xaml.cs (1)
35Type type = typeof(InitializeCorrelation);
System\ServiceModel\Activities\Presentation\MessageQueryEditor.xaml.cs (4)
29typeof(IList<KeyValuePair<string, Type>>), 59public IList<KeyValuePair<string, Type>> TypeCollection 61get { return (IList<KeyValuePair<string, Type>>)GetValue(TypeCollectionProperty); } 132var type = contentCorrelationDesigner.GetSelectedType();
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (7)
75public IList<KeyValuePair<string, Type>> ActivityParameters 180IList<KeyValuePair<string, Type>> GetActivityParameters() 182var result = new List<KeyValuePair<string, Type>>(); 193result.Add(new KeyValuePair<string, Type>((string)this.FindResource("defaultParameterName"), (Type)type.GetCurrentValue())); 201result.Add(new KeyValuePair<string, Type>(entry.Key, entry.Value.ArgumentType)); 209result.Add(new KeyValuePair<string, Type>(entry.Key, entry.Value.ArgumentType));
System\ServiceModel\Activities\Presentation\ReceiveDesigner.xaml.cs (2)
47Type receiveType = typeof(Receive); 83Type receiveMessageContentType = typeof(ReceiveMessageContent);
System\ServiceModel\Activities\Presentation\ReceiveReplyDesigner.xaml.cs (2)
37Type receiveType = typeof(ReceiveReply); 61Type receiveMessageContentType = typeof(ReceiveMessageContent);
System\ServiceModel\Activities\Presentation\ReceiveReplyValidationFeature.cs (1)
20protected override Type ApplyTo
System\ServiceModel\Activities\Presentation\SendDesigner.xaml.cs (2)
48Type sendType = typeof(Send); 86Type sendMessageContentType = typeof(SendMessageContent);
System\ServiceModel\Activities\Presentation\SendReplyDesigner.xaml.cs (2)
36Type sendType = typeof(SendReply); 59Type sendMessageContentType = typeof(SendMessageContent);
System\ServiceModel\Activities\Presentation\SendReplyValidationFeature.cs (1)
20protected override Type ApplyTo
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (3)
43internal static Func<Type, bool> FilterFunction 58public static Type SelectContractType(AssemblyName localAssemblyName, IList<AssemblyName> referencedAssemblies, EditingContext editingContext) 78public static IEnumerable<ActivityTemplateFactoryBuilder> GenerateActivityTemplates(Type contractType)
System\ServiceModel\Activities\Presentation\TransactedReceiveScope.xaml.cs (1)
20Type type = typeof(TransactedReceiveScope);
System\ServiceModel\Activities\Presentation\TypeToTreeConverter.cs (6)
20object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture) 22Type type = null; 27if (value is Type) 29type = (Type)value; 85else if (type.GetConstructor(new Type[0] { }) != null) 98object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System\ServiceModel\Presentation\ServiceDesigner.xaml.cs (1)
40var serviceType = typeof(WorkflowService);
System.Activities.DurableInstancing (3)
System\Activities\DurableInstancing\XmlPropertyBag.cs (3)
135else if (value is Type) 200return Type.GetType(value); 284else if (value is Type)
System.Activities.Presentation (1109)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (3)
19public static string GetDisplayName(Type type, bool fullName) 70private Type[] generics = null; 74public GenericsMatchEvaluator(Type[] generics, bool fullName)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderReader.cs (2)
214Type underlyingType = this.underlyingReader.Type.UnderlyingType; 215Type targetType = underlyingType.IsGenericType ? underlyingType.GetGenericArguments()[0] : null;
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderXamlMembers.cs (1)
18internal static XamlMember ActivityTemplateFactoryImplementationMemberForReader(Type activityTemplateFactoryType, XamlSchemaContext schemaContext)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeConverter.cs (3)
37public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 47public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 52public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DefaultValueAttributeInfo.cs (2)
28Type defaultValueAttributeType = typeof(DefaultValueAttribute); 29ConstructorInfo constructor = defaultValueAttributeType.GetConstructor(new Type[] { typeof(object) });
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignerAttributeInfo.cs (4)
17return new List<object>() { Type.GetType(attribute.DesignerTypeName) }; 22Type designerAttributeType = typeof(DesignerAttribute); 23ConstructorInfo constructor = designerAttributeType.GetConstructor(new Type[] { typeof(Type) });
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\EditorAttributeInfo.cs (6)
17return new List<object>() { Type.GetType(attribute.EditorTypeName), Type.GetType(attribute.EditorBaseTypeName) }; 22Type editorAttributeType = typeof(EditorAttribute); 23ConstructorInfo constructor = editorAttributeType.GetConstructor(new Type[] { typeof(Type), typeof(Type) });
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ImportAttributeInfo.cs (6)
51return typeof(ImportAttribute).GetConstructor(Type.EmptyTypes); 60nameConstructor = typeof(ImportAttribute).GetConstructor(new Type[] { typeof(string) }); 72nameAndTypeConstructor = typeof(ImportAttribute).GetConstructor(new Type[] { typeof(string), typeof(Type) }); 84typeConstructor = typeof(ImportAttribute).GetConstructor(new Type[] { typeof(Type) });
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ImportManyAttributeInfo.cs (6)
54return typeof(ImportManyAttribute).GetConstructor(Type.EmptyTypes); 63nameConstructor = typeof(ImportManyAttribute).GetConstructor(new Type[] { typeof(string) }); 75nameAndTypeConstructor = typeof(ImportManyAttribute).GetConstructor(new Type[] { typeof(Type) }); 87typeConstructor = typeof(ImportManyAttribute).GetConstructor(new Type[] { typeof(string), typeof(Type) });
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\MultiTargetingTypeResolver.cs (2)
17public static ResolverResult Resolve(MultiTargetingSupportService multiTargetingService, Type type) 29Type reflectionType = multiTargetingService.GetReflectionType(type);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverCache.cs (4)
14private Dictionary<Type, WeakReference> cache; 18this.cache = new Dictionary<Type, WeakReference>(); 21public void Update(Type type, ResolverResult result) 36public ResolverResult Lookup(Type type)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlSchemaContext.cs (9)
28Dictionary<Type, XamlType> customXamlTypes; 34private static List<Type> supportedTypes; 35private static List<Type> conversionRequiredTypes; 40supportedTypes = new List<Type>(); 44conversionRequiredTypes = new List<Type>(); 145public override XamlType GetXamlType(Type type) 171this.customXamlTypes = new Dictionary<Type, XamlType>(); 232XamlType GetCustomType(Type type) 261XamlType GetCustomMefType(Type type)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlTypeWithExtraPropertiesRemoved.cs (1)
18public XamlTypeWithExtraPropertiesRemoved(Type underlyingType, XamlSchemaContext schemaContext, ICollection<string> propertiesToBeRemoved)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateInfo.cs (1)
25public Type DelegateType { get; private set; }
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (3)
17public static ActivityDelegateMetadata GetMetadata(Type type) 59public static bool HasActivityDelegate(Type type) 82private static List<PropertyInfo> GetPropertiesByHeuristics(Type activityType)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\ContextItem.cs (1)
33public abstract Type ItemType
System.Activities.Presentation\System\Activities\Presentation\Base\Core\ContextItemManager.cs (4)
56public abstract bool Contains(Type itemType); 85public abstract ContextItem GetValue(Type itemType); 138public abstract void Subscribe(Type contextItemType, SubscribeContextCallback callback); 180public abstract void Unsubscribe(Type contextItemType, SubscribeContextCallback callback);
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\manifestimages.cs (2)
41public static object GetImage(Type type, Size desiredSize) 80Type type,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeData.cs (3)
23private Type _attributeType; 32internal AttributeData(Type attributeType) 41internal Type AttributeType
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (13)
105internal static IEnumerable<object> GetMetadataStoreAttributes(Type type, string memberName, AttributeTable[] tables) { 157internal static AttributeData GetAttributeData(Type attributeType) 184Type type = member as Type; 190Type targetType = member.DeclaringType.BaseType; 216private static MemberInfo GetBaseConstructorInfo(MemberInfo info, Type targetType) 224private static MemberInfo GetBaseMethodInfo(MemberInfo info, Type targetType) 234private static MemberInfo GetBasePropertyInfo(MemberInfo info, Type targetType) 244private static MemberInfo GetBaseEventInfo(MemberInfo info, Type targetType) 254private static Type[] ToTypeArray(ParameterInfo[] parameterInfo) { 260Type[] parameterTypes = new Type[parameterInfo.Length]; 270private delegate MemberInfo GetBaseMemberCallback(MemberInfo member, Type targetType);
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\Internal\PropertyEditing\Automation\TextFormatConverter.cs (2)
38public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 44public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (4)
36public static bool IsConcreteWithDefaultCtor(Type type) 48ConstructorInfo defaultCtor = type.GetConstructor(Type.EmptyTypes); 95public static bool IsNullableEnumType(Type t) 99Type[] genericArgs = t.GetGenericArguments();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (3)
21DependencyProperty.Register("FlagType", typeof(Type), typeof(FlagEditor), new PropertyMetadata(null)); 23public Type FlagType 25get { return (Type)GetValue(FlagTypeProperty); }
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (8)
20typeof(Type), 24public Type FlagType 26get { return (Type)GetValue(FlagTypeProperty); } 38Type flagType = args.NewValue as Type; 79public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 93public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 111Type flagType = panel.FlagType;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (5)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 26public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 28Type flagType = parameter as Type; 63static Dictionary<string, object> GenerateFlagDictionary(Type flagType)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\ImageSourceToImageConverter.cs (2)
26public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 41public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\NewItemFactoryTypeModelToDisplayNameConverter.cs (2)
40public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 57public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\newitemfactorytypemodeltotypenameconverter.cs (2)
20public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 36public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\NonZeroToBoolConverter.cs (2)
34public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 44public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToDisplayNameConverter.cs (2)
45public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 102public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToStandardValuesConverter.cs (2)
31public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 46public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\RTLValueConverter.cs (2)
27public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { 53public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (6)
456Type containerValueType = ((ModelPropertyEntryBase)containedProperty).CommonValueType; 458Type defaultItemType = GetDefaultItemType(property); 525private static Type GetDefaultItemType(ModelProperty property) 532Type propertyType = property.PropertyType; 615public override object CreateInstance(Type type) 622public override string GetDisplayName(Type type)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\ValueToToolTipConverter.cs (2)
22public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { 31public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (20)
35private static Dictionary<Type, string> _defaultPropertyCache = new Dictionary<Type, string>(); 125Type genericType = property.PropertyType.GetGenericTypeDefinition(); 151Type genericType = property.Parent.ItemType.GetGenericTypeDefinition(); 183public static IEnumerable<Type> GetCategoryEditorTypes(Type ownerType) 186List<Type> editorTypes = null; 192Type editorType = ExtensibilityMetadataHelper.GetCategoryEditorType(editorAttribute, MessageLogger.Instance); 200editorTypes = new List<Type>(); 252public static string GetDefaultProperty(Type type) 352Type propertyType = properties[0].PropertyType; 464foreach (Type type in newItemTypesAttribute.Types) 500foreach (Type type in attribute.Types) 569public static object SafeCreateInstance(Type type) 616Type valueType = valueItem.ItemType; 715private static bool IsStaticExtension(Type type) 834Type typeConverterType = Type.GetType(typeConverterAttribute.ConverterTypeName); 860public static T GetAttribute<T>(Type type) where T : Attribute 870public static IEnumerable<T> GetAttributes<T>(Type type) where T : Attribute
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\AppendSuffixConverter.cs (2)
43public object ConvertBack(object o, Type targetType, object value, CultureInfo culture) 49public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\BoolToDoubleConverter.cs (2)
60public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 66public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\BoolToVisibilityCollpasedConverter.cs (2)
33public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 39public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\BoolToVisibilityHiddenConverter.cs (2)
34public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 45public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ComposingConverter.cs (2)
27public object Convert(object o, Type targetType, object parameter, CultureInfo culture) 36public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\EqualsConverter.cs (2)
18public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 30public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\IntegerToVisibilityConverter.cs (2)
42public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 48public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\IsNullConverter.cs (2)
21public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 26public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\NotConverter.cs (2)
23public object Convert(object o, Type targetType, object parameter, CultureInfo culture) 28public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\NullToBoolConverter.cs (2)
27public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 33public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\SwitchConverter.cs (5)
47public object Convert(object o, Type targetType, object parameter, CultureInfo culture) 60public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 99static readonly DependencyProperty TypeProperty = DependencyProperty.Register("Type", typeof(Type), typeof(TypeReference)); 101public Type Type 103get { return (Type)this.GetValue(TypeProperty); }
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ValueConverters.cs (2)
75public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 85public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\VisibilityOrConverter.cs (2)
22public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 35public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (1)
194public void RemoveCategoryEditor(Type categoryEditor)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (5)
41Type editorType = Type.GetType(editorAttribute.EditorTypeName); 69public static Type GetCategoryEditorType(EditorAttribute attribute, IMessageLogger exceptionLogger) 73Type editorType = Type.GetType(attribute.EditorTypeName);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\NewItemFactoryTypeModel.cs (4)
16private Type type; 21public NewItemFactoryTypeModel(Type type, NewItemFactory factory) 29public NewItemFactoryTypeModel(Type type, NewItemFactory factory, IMessageLogger exceptionLogger) : this(type, factory) 39public Type Type
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ValueToIconConverter.cs (2)
31public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 46public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Metadata\PropertyInspectorMetadata.cs (1)
63private static void MakeBasic(AttributeTableBuilder builder, Type owningType, DependencyProperty property)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntry.cs (11)
116public override Type PropertyType 223public override Type CommonValueType 336internal IEnumerable<Type> CategoryEditorTypes 731private static readonly Type NoCommonValueType = typeof(CachedValues); // some private type that we can use as a marker 732private static readonly List<Type> NoCategoryEditorTypes = new List<Type>(); 755private Type _commonValueType; 757private IEnumerable<Type> _categoryEditorTypes; 1204public Type CommonValueType 1215Type valueType = value.GetType(); 1260public IEnumerable<Type> CategoryEditorTypes
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryBase.cs (1)
46public abstract Type CommonValueType
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyIndexer.cs (2)
133public override Type PropertyType 191public override Type CommonValueType
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (10)
19public static Type GetPropertyType(IEnumerable<ModelProperty> propertySet) 175public static bool ImplementsIList(Type type) 182Type[] interfaceTypes = type.GetInterfaces(); 183foreach (Type interfaceType in interfaceTypes) 202public static bool ImplementsICollection(Type type) 209Type[] interfaceTypes = type.GetInterfaces(); 210foreach (Type interfaceType in interfaceTypes) 228public static Type GetCommonAncestor(Type t1, Type t2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (13)
68private Dictionary<Type, string> _activeCategoryEditors = new Dictionary<Type, string>(); 275static string GetStringRepresentation(Type type) 781Dictionary<Type, object> newCategoryEditorTypes = _propertyToolBar.CurrentViewManager.GetCategoryEditors( 786List<Type> editorTypesToRemove = null; 787foreach (KeyValuePair<Type, string> item in _activeCategoryEditors) 797editorTypesToRemove = new List<Type>(); 811foreach (Type editorTypeToRemove in editorTypesToRemove) 824foreach (Type editorTypeToAdd in newCategoryEditorTypes.Keys) 844private bool IsCategoryShown(Type categoryEditorType) 904private static Type FindCommonType(IEnumerable<ModelItem> modelItems) 906Type commonType = null; 930Type type = null;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Views\AlphabeticalViewManager.cs (3)
103public Dictionary<Type, object> GetCategoryEditors(Type ownerType, CategoryList categoryList) 106return new Dictionary<Type, object>();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Views\ByCategoryViewManager.cs (11)
126public Dictionary<Type, object> GetCategoryEditors(Type ownerType, CategoryList categoryList) 128Dictionary<Type, object> editorSet = new Dictionary<Type, object>(); 136private static void AddAttachedPropertiesCategoryEditors(Dictionary<Type, object> categoryEditorSet, IEnumerable<CategoryBase> categories) 146IEnumerable<Type> editorTypes = property.CategoryEditorTypes; 152foreach (Type editorType in editorTypes) 162private static void AddTypeCategoryEditors(Dictionary<Type, object> categoryEditorSet, Type type) 166IEnumerable<Type> editorTypes = ExtensibilityAccessor.GetCategoryEditorTypes(type); 169foreach (Type editorType in editorTypes)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Views\IPropertyViewManager.cs (2)
46Dictionary<Type, object> GetCategoryEditors(Type ownerType, CategoryList categoryList);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeCallbackBuilder.cs (3)
27private Type _callbackType; 29internal AttributeCallbackBuilder(MutableAttributeTable table, Type callbackType) 38public Type CallbackType
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeTable.cs (7)
47public IEnumerable<Type> AttributedTypes 72public bool ContainsAttributes(Type type) 88public IEnumerable GetCustomAttributes(Type type) 105public IEnumerable GetCustomAttributes(Type ownerType, MemberDescriptor descriptor) 126public IEnumerable GetCustomAttributes(Type ownerType, DependencyProperty dp) 147public IEnumerable GetCustomAttributes(Type ownerType, MemberInfo member) 168public IEnumerable GetCustomAttributes(Type ownerType, string memberName)
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\Base\Core\PropertyEditing\CategoryEditor.cs (1)
69public static EditorAttribute CreateEditorAttribute(Type categoryEditorType) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemfactory.cs (5)
21private Type[] NoTypes = new Type[0]; 44public virtual object GetImage(Type type, Size desiredSize) { 60public virtual string GetDisplayName(Type type) 77public virtual object CreateInstance(Type type) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemtypesattribute.cs (8)
21private Type _factoryType; 22private Type[] _types; 29public NewItemTypesAttribute(Type type) 35_types = new Type[] { type }; 44public NewItemTypesAttribute(params Type[] types) 58public Type Type 70public IEnumerable<Type> Types 84public Type FactoryType
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (1)
687Type propertyType = this.PropertyEntry.PropertyType;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\propertyentry.cs (1)
49public abstract Type PropertyType { get; }
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (1)
70public static EditorAttribute CreateEditorAttribute(Type propertyValueEditorType) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PublishServiceCallback.cs (1)
12public delegate object PublishServiceCallback(Type serviceType);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\ServiceManager.cs (10)
19public abstract class ServiceManager : IServiceProvider, IEnumerable<Type> 33public abstract bool Contains(Type serviceType); 87public abstract object GetService(Type serviceType); 94public abstract IEnumerator<Type> GetEnumerator(); 106public abstract void Subscribe(Type serviceType, SubscribeServiceCallback callback); 140public abstract void Publish(Type serviceType, PublishServiceCallback callback); 150public abstract void Publish(Type serviceType, object serviceInstance); 204public abstract void Unsubscribe(Type serviceType, SubscribeServiceCallback callback); 322private object PublishService(Type serviceType) 388private void SubscribeService(Type serviceType, object service)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\SubscribeServiceCallback.cs (1)
11public delegate void SubscribeServiceCallback(Type serviceType, object serviceInstance);
System.Activities.Presentation\System\Activities\Presentation\Base\Documents\ViewManagerAttribute.cs (3)
18private Type _viewManagerType; 34public ViewManagerAttribute(Type viewManagerType) 50public Type ViewManagerType
System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelFactory.cs (3)
35public static ModelItem CreateItem(EditingContext context, Type itemType, params object[] arguments) { 59public static ModelItem CreateItem(EditingContext context, Type itemType, CreateOptions options, params object[] arguments) { 104public static ModelItem CreateStaticMemberItem(EditingContext context, Type type, string memberName) {
System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItem.cs (1)
64public abstract Type ItemType { get; }
System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelProperty.cs (2)
78public abstract Type AttachedOwnerType { get; } 149public abstract Type PropertyType { get; }
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionConverter.cs (3)
19public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 35public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 57Type argumentType;
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionModelItemConverter.cs (3)
20public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 44public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) 65Type argumentType;
System.Activities.Presentation\System\Activities\Presentation\Converters\ModelItemToAnnotationEnabledConverter.cs (2)
14public object Convert(object value, Type targetType, object parameter, Globalization.CultureInfo culture) 30public object ConvertBack(object value, Type targetType, object parameter, Globalization.CultureInfo culture)
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\ModelPropertyEntryToOwnerActivityConverter.cs (3)
17public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 43Type itemType = convertedValue.ItemType; 58public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Converters\ModelToObjectValueConverter.cs (2)
15public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 32public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Converters\ObjectToModelValueConverter.cs (2)
20public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 38public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Converters\OutlineViewTextConverter.cs (2)
18public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 48public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Converters\SearchableStringConverterAttribute.cs (1)
12public SearchableStringConverterAttribute(Type type)
System.Activities.Presentation\System\Activities\Presentation\Converters\TypeSearchableStringConverter.cs (2)
16if (value is Type) 18results.Add(TypePresenter.ResolveTypeName(value as Type));
System.Activities.Presentation\System\Activities\Presentation\Converters\VBIdentifierTrimConverter.cs (2)
11public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 16public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Converters\VisualBasicValueSearchableStringConverter.cs (1)
21Type t = value.GetType();
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (7)
47static IList<Type> disallowedTypesForCopy; 49static IEnumerable<Type> DisallowedTypesForCopy 55disallowedTypesForCopy = new List<Type>(); 65internal static void AddDisallowedTypeForCopy(Type type) 566internal static void PutCallbackOnClipBoard(Func<ModelItem, object, object> callbackMethod, Type callbackResultType, object context) 686private static bool CanCopy(Type type) 688foreach (Type disallowedType in CutCopyPasteHelper.DisallowedTypesForCopy)
System.Activities.Presentation\System\Activities\Presentation\Debugger\AllowBreakpointAttribute.cs (1)
18internal static bool IsBreakpointAllowed(Type breakpointCandidateType)
System.Activities.Presentation\System\Activities\Presentation\DefaultTypeArgumentAttribute.cs (3)
14Type type; 16public DefaultTypeArgumentAttribute(Type type) 22public Type Type
System.Activities.Presentation\System\Activities\Presentation\DesignerMetadata.cs (3)
36builder.AddCustomAttributes(typeof(Type), PropertyValueEditor.CreateEditorAttribute(typeof(TypePropertyEditor))); 61builder.AddCustomAttributes(typeof(Type), new SearchableStringConverterAttribute(typeof(TypeSearchableStringConverter))); 88Type type = typeof(ActivityDelegate);
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (17)
63static IDictionary<Type, PropertyDescriptorCollection> TypePropertyCollection = new Dictionary<Type, PropertyDescriptorCollection>(); 201return (TypeConverter)Activator.CreateInstance(Type.GetType(attribute.ConverterTypeName)); 274public object GetEditor(Type editorBaseType) 280return Activator.CreateInstance(Type.GetType(attribute.EditorTypeName)); 302Type type = this.GetType(); 385Type editorType = this.GetDynamicPropertyValueEditorType(propertyName); 398internal Type GetDynamicPropertyValueEditorType(string propertyName) 401var editorType = this.OnGetDynamicPropertyValueEditorType(propertyName); 418protected virtual Type OnGetDynamicPropertyValueEditorType(string propertyName) 571Type type = this.GetType(); 614public override Type ComponentType 630public override Type PropertyType 712public Type OwnerType { get; set; } 714public Type PropertyType { get; set; } 823public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 837public object[] ConvertBack(object value, Type[] targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\DesignTimeValidationFeature.cs (2)
15public override void Initialize(EditingContext context, Type modelType) 30protected abstract Type ApplyTo
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (16)
183public static bool AllowDrop(IDataObject draggedDataObject, EditingContext context, params Type[] allowedItemTypes) 207List<Type> draggedTypes = GetDraggedTypes(draggedDataObject); 210&& draggedTypes.All<Type>((p) => 237internal static bool AllowDrop(Type draggedType, Type allowedItemType) 246Type factoryType; 277internal static List<Type> GetDraggedTypes(IDataObject draggedDataObject) 279List<Type> types = new List<Type>(); 309types.Add(Type.GetType(text)); 339Type type = null; 346type = Type.GetType(text); 398internal static object GetDroppedObjectInstance(DependencyObject dropTarget, EditingContext context, Type type, IDataObject dataObject) 424Type templateFactoryInterface2 = type.GetInterface(typeof(IActivityTemplateFactory<>).FullName); 460static Type ResolveGenericParameters(DependencyObject dropTarget, EditingContext context, Type type)
System.Activities.Presentation\System\Activities\Presentation\ErrorItem.cs (1)
15public override Type ItemType
System.Activities.Presentation\System\Activities\Presentation\ExpandButtonVisibilityConverter.cs (2)
19public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 32public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\ExpandCollapseIsCheckedConverter.cs (2)
11public object Convert(object[] values, Type targetType, object parameter, global::System.Globalization.CultureInfo culture) 24public object[] ConvertBack(object value, Type[] targetTypes, object parameter, global::System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (12)
40Type expressionType = expression.GetType(); 41Type expressionArgumentType = expressionType.IsGenericType ? expressionType.GetGenericArguments()[0] : typeof(object); 42bool isLiteral = expressionType.IsGenericType ? Type.Equals(typeof(Literal<>), expressionType.GetGenericTypeDefinition()) : false; 94internal static ActivityWithResult TryCreateLiteral(Type type, string expressionText, ParserContext context) 125var concreteExpType = typeof(Literal<>).MakeGenericType(type); 135internal static bool CanTypeBeSerializedAsLiteral(Type type) 154Type expressionType = expression.ResultType; 158internal static bool TryMorphExpression(ActivityWithResult originalExpression, bool isLocation, Type targetType, 165Type resultType = originalExpression.ResultType; 175Type expressionType = originalExpression.GetType(); 208internal static bool TryInferReturnType(ActivityWithResult expression, EditingContext context, out Type returnType) 212Type expressionType = expression.GetType();
System.Activities.Presentation\System\Activities\Presentation\Expressions\CreateExpressionFromString.cs (1)
14public delegate ActivityWithResult CreateExpressionFromStringCallback(string expressionText, bool useLocationExpression, Type expressionType);
System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionActivityEditor.cs (3)
27public static readonly DependencyProperty ExpressionTypeProperty = DependencyProperty.Register("ExpressionType", typeof(Type), typeof(ExpressionActivityEditor), 76public Type ExpressionType 78get { return (Type)GetValue(ExpressionTypeProperty); }
System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionMorphHelper.cs (2)
10public virtual bool TryInferReturnType(ActivityWithResult expression, EditingContext context, out Type returnType) 16public abstract bool TryMorphExpression(ActivityWithResult expression, bool isLocationExpression, Type newType,
System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionMorphHelperAttribute.cs (3)
15Type helperType; 17public ExpressionMorphHelperAttribute(Type expressionMorphHelperType) 30public Type ExpressionMorphHelperType
System.Activities.Presentation\System\Activities\Presentation\ExpressionSelection.cs (1)
28public override Type ItemType
System.Activities.Presentation\System\Activities\Presentation\Feature.cs (1)
9public abstract void Initialize(EditingContext context, Type modelType);
System.Activities.Presentation\System\Activities\Presentation\FeatureAttribute.cs (3)
14Type type; 16public FeatureAttribute(Type type) 24public Type Type
System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (3)
15HashSet<Type> initializedTypes; 20initializedTypes = new HashSet<Type>(); 23public void InitializeFeature(Type modelType)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (2)
19public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) 37public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorIdentityConverter.cs (2)
14public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 23public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorLabelMarginConverter.cs (2)
20public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 43public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorLabelVisibilityConverter.cs (2)
20public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 36public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToArrowMarginConverter.cs (2)
19public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 52public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToArrowTransformConverter.cs (2)
21public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 32public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToSegmentsConverter.cs (2)
18public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 59public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorStartDotConverter.cs (2)
18public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 37public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\GenericTypeParameterConverter.cs (2)
37public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 42public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Hosting\IMultiTargetingSupportService.cs (3)
20Type GetRuntimeType(Type reflectionType); 21bool IsSupportedType(Type type);
System.Activities.Presentation\System\Activities\Presentation\Hosting\MultiTargetingSupportService.cs (5)
32public abstract Type GetRuntimeType(Type reflectionType); 39public abstract bool IsSupportedType(Type type); 46public abstract Type GetReflectionType(Type objectType);
System.Activities.Presentation\System\Activities\Presentation\Hosting\WorkflowCommandExtensionItem.cs (1)
25public override Type ItemType
System.Activities.Presentation\System\Activities\Presentation\IActivityDelegateFactory.cs (1)
11Type DelegateType { get; }
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\AttachedPropertiesService.cs (1)
35internal IEnumerable<AttachedProperty> GetAttachedProperties(Type modelItemType)
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedProperty.cs (4)
17Type ownerType = typeof(object); 20public abstract Type Type 47public Type OwnerType 87public override Type Type
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyDescriptor.cs (2)
41public override Type ComponentType 54public override Type PropertyType
System.Activities.Presentation\System\Activities\Presentation\Model\FakeModelItemImpl.cs (1)
16public FakeModelItemImpl(ModelTreeManager modelTreeManager, Type itemType, object instance, FakeModelItemImpl parent)
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (8)
26public void AddSupportForUpdatingTypeArgument(Type modelItemType) 28AttachedProperty<Type> typeArgumentProperty = new AttachedProperty<Type> 39private static void UpdateTypeArgument(ModelItem modelItem, Type value) 43Type oldModelItemType = modelItem.ItemType; 45Type newModelItemType = oldModelItemType.GetGenericTypeDefinition().MakeGenericType(value); 74private static Type GetTypeArgument(ModelItem modelItem) 80private static string GetActivityDefaultName(Type activityType)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (3)
25Type itemType; 38public ModelItemCollectionImpl(ModelTreeManager modelTreeManager, Type itemType, Object instance, ModelItem parent) 112public override Type ItemType
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (12)
25Type itemType; 40public ModelItemDictionaryImpl(ModelTreeManager modelTreeManager, Type itemType, Object instance, ModelItem parent) 68Type itemsCollectionKVPType = null; 69Type ItemsCollectionKVPType 77Type itemsCollectionType = ItemsCollectionModelItemCollection.ItemType; 78Type[] genericArguments = itemsCollectionType.GetGenericArguments(); 273public override Type ItemType 1040Type keyValuePairType = typeof(KeyValuePair<object, object>); 1044Type instanceType = instance.GetType(); 1122bool GetDictionaryInterface(Type type, object dummy) 1136Type keyValuePairType = type.GetGenericArguments()[0]; 1237object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
37internal static ModelItem FindParentModelItem(this ModelItem item, Type parentType) 762var designerType = this.ViewService.GetDesignerType(p.ItemType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (5)
29Type itemType; 44public ModelItemImpl(ModelTreeManager modelTreeManager, Type itemType, object instance, ModelItem parent) 93public override Type ItemType 360object ICustomTypeDescriptor.GetEditor(Type editorBaseType) 501Type itemType = valueModelitem.ItemType;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyCollectionImpl.cs (1)
80Type instanceType = instance.GetType();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (4)
55public override Type ComponentType 66public override Type PropertyType 86public override object GetEditor(Type editorBaseType) 105Type itemType = value.ItemType;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyImpl.cs (2)
32public override Type AttachedOwnerType 160public override Type PropertyType
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (9)
222delegate(Type type) 257Type type = item.ItemType; 294TypeNameHelper.GetDisplayName(variable.Properties[DesignTimeVariable.VariableTypeProperty].ComputedValue as Type, false), null)); 371TypeNameHelper.GetDisplayName(argument.Properties["Type"].ComputedValue as Type, false), null)); 424Type type = computedValue.GetType(); 438Type generictype = type.GetGenericTypeDefinition(); 445Type converterType = Type.GetType(attribute.ConverterTypeName); 774Type designerType = viewService.GetDesignerType(itemToFocus.ItemType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelService.cs (6)
58protected abstract ModelItem CreateItem(Type itemType, CreateOptions options, params object[] arguments); 83protected abstract ModelItem CreateStaticMemberItem(Type type, string memberName); 103public abstract IEnumerable<ModelItem> Find(ModelItem startingItem, Type type); 124public abstract IEnumerable<ModelItem> Find(ModelItem startingItem, Predicate<Type> match); 174internal ModelItem InvokeCreateItem(Type itemType, CreateOptions options, params object[] arguments) { 181internal ModelItem InvokeCreateStaticMemberItem(Type type, string memberName) {
System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (4)
38public override IEnumerable<ModelItem> Find(ModelItem startingItem, Predicate<Type> match) 43public override IEnumerable<ModelItem> Find(ModelItem startingItem, Type type) 135protected override ModelItem CreateItem(Type itemType, CreateOptions options, params object[] arguments) 141protected override ModelItem CreateStaticMemberItem(Type type, string memberName)
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\Model\ModelTypeConverter.cs (3)
41public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 51public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 81public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeDescriptorContextWrapper.cs (3)
95public object GetService(Type serviceType) 128public override Type ComponentType 132public override Type PropertyType
System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (1)
32internal static bool IsModelItemKeyValuePair(Type type)
System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (4)
23static Dictionary<Type, PropertyValueMorphHelper> morphExtensions = new Dictionary<Type, PropertyValueMorphHelper>(); 27public static void AddPropertyValueMorphHelper(Type propertyType, PropertyValueMorphHelper extension) 42public static PropertyValueMorphHelper GetPropertyValueMorphHelper(Type propertyType)
System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (5)
21public static TypeConverter GetConverter(Type itemType) 45Type type = Type.GetType(tca.ConverterTypeName); 48ConstructorInfo ctor = type.GetConstructor(new Type[] { typeof(Type) });
System.Activities.Presentation\System\Activities\Presentation\NamespaceHelper.cs (1)
143foreach (Type type in assembly.GetTypes())
System.Activities.Presentation\System\Activities\Presentation\NamespaceListProperty.cs (2)
31public override Type ComponentType 44public override Type PropertyType
System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (2)
25static Type WorkflowServiceType = typeof(WorkflowService); 145public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
System.Activities.Presentation\System\Activities\Presentation\NonTextualExpressionMorphHelper.cs (1)
24public override bool TryMorphExpression(ActivityWithResult expression, bool isLocationExpression, Type newType,
System.Activities.Presentation\System\Activities\Presentation\NotConverter.cs (2)
15public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 20public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\NullToBooleanConverter.cs (2)
13public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 18public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\ReadOnlyState.cs (1)
13public override Type ItemType
System.Activities.Presentation\System\Activities\Presentation\ShowExpandedMultiValueConverter.cs (2)
23public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 50public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\SQM\ActivityUsageCounter.cs (2)
119static internal ActivityTypeId MapTypeToId(Type activityType) 133static internal void ReportUsage(IVSSqmService sqmService, Type activityType)
System.Activities.Presentation\System\Activities\Presentation\TextFormattingConverter.cs (2)
16public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 28public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactoryBuilder.cs (1)
35public Type TargetType
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactoryExtension.cs (4)
9public static bool IsActivityTemplateFactory(this Type type) 15public static bool TryGetActivityTemplateFactory(this Type type, out Type argumentType) 24Type activityFactoryInterfaceType = type.GetInterface(typeof(IActivityTemplateFactory<>).FullName);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemImageConverter.cs (2)
23object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture) 42object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (9)
37Type toolType; 49public ToolboxItemWrapper(Type toolType) 54public ToolboxItemWrapper(Type toolType, string displayName) 59public ToolboxItemWrapper(Type toolType, string bitmapName, string displayName) 192public Type Type 197bool isChanged = !Type.Equals(this.toolType, value); 220Type discoveredToolType = toolAssembly.GetType(this.ToolName, true, true); 358void ValidateTool(Type toolType) 363ConstructorInfo ctor = toolType.GetConstructor(Type.EmptyTypes);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\TreeViewContainerStyleSelector.cs (2)
140public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 171public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\TypeNameConverter.cs (5)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 16Type type = value as Type; 23type = modelItem.GetCurrentValue() as Type; 32public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (10)
16public static bool CanSubstituteGenericParameter(Type genericParameter, Type candidate) 53foreach (Type constraint in genericParameter.GetGenericParameterConstraints()) 71public static bool CanCreateInstanceUsingDefaultConstructor(Type type) 75return type.IsValueType || (!type.IsAbstract && type.GetConstructor(Type.EmptyTypes) != null); 78public static bool IsTypeCompatible(Type childObjectType, Type parentObjectType) 86Type[] interfaceTypes = childObjectType.GetInterfaces(); 87foreach (Type interfaceType in interfaceTypes) 102Type current = childObjectType;
System.Activities.Presentation\System\Activities\Presentation\UpdatableGenericsFeature.cs (1)
12public override void Initialize(EditingContext context, Type modelType)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (5)
29Dictionary<Type, IValidationErrorSourceLocator> validationErrorSourceLocators; 928internal void RegisterValidationErrorSourceLocator(Type activityType, IValidationErrorSourceLocator validationErrorSourceLocator) 950IValidationErrorSourceLocator GetValidationErrorSourceLocator(Type typeOfActivityWithValidationError) 981Dictionary<Type, IValidationErrorSourceLocator> ValidationErrorSourceLocators 987this.validationErrorSourceLocators = new Dictionary<Type, IValidationErrorSourceLocator>();
System.Activities.Presentation\System\Activities\Presentation\ValidationErrorSourceLocatorFeature.cs (1)
18public override void Initialize(EditingContext context, Type modelType)
System.Activities.Presentation\System\Activities\Presentation\VariableExpressionConverter.cs (2)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 19public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeDesigner.xaml.cs (1)
112Type propertyType = changeInfo.Subject.ItemType;
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (13)
29typeof(Type), 56public Type ConcreteType 64public Type EditedType 66get { return (Type)GetValue(EditedTypeProperty); } 160Type[] generics = this.EditedType.GetGenericArguments(); 161foreach (Type type in generics) 163Type temp = type; // reference this temp variable instead of reference type in the anonymous delegate 167Filter = delegate(Type t) 218Type type = ResolveType(); 273Type ResolveType() 275Type result = null; 278Type[] arguments = new Type[this.GenericTypeMapping.Count];
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (32)
164Type GetDefaultType() 418var editorType = argument.GetDynamicPropertyValueEditorType(DesignTimeArgument.ArgumentDefaultValueProperty); 758static readonly Type inArgumentTypeReference = typeof(InArgument); 759static readonly Type outArgumentTypeReference = typeof(OutArgument); 760static readonly Type inOutArgumentTypeReference = typeof(InOutArgument); 761static readonly Type stringTypeReference = typeof(string); 814PropertyType = typeof(Type), 815PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 818((DesignTimeArgument)instance).SetArgumentType((Type)newValue); 969internal Type GetArgumentType() 971Type result = (Type)this.ReflectedObject.Properties["Type"].ComputedValue; 979void SetArgumentType(Type type) 984Type propertyType = GetTypeReference(currentDirection, type); 995Type argumentType = (Type)this.ReflectedObject.Properties["Type"].ComputedValue; 1015Type currentType = this.GetArgumentType(); 1016Type propertyType = GetTypeReference(direction, currentType); 1027Type GetTypeReference(PropertyKind direction, Type type) 1029Type targetType = null; 1195internal bool Filter(Type type) 1206protected override Type OnGetDynamicPropertyValueEditorType(string propertyName) 1208var type = this.GetArgumentType(); 1226Type argumentType = null; 1246var referenceType = typeof(PropertyValueEditor); 1247var expressionEditorType = typeof(ExpressionValueEditor); 1254var customEditorType = TypeDescriptor 1259Type currentType = Type.GetType(p.EditorTypeName); 1262.Select(p => Type.GetType(p.EditorTypeName)) 1378void TryUpdateArgumentType(Type newType, PropertyKind newDirection)
System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (1)
35public override Type ItemType
System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (2)
22public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) 68public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\CanExpandCollapseAllConverter.cs (2)
13public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 24public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (8)
67static Dictionary<Type, Type> EditorBehaviorTypeMapping = new Dictionary<Type, Type> 542Type controlType = control.GetType(); 543Type editorBehaviorType; 1510public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 1571public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (6)
1422Type activityType = Type.GetType(typeName, false); 1433Type factoryType; 1459Type activityType = null; 1467activityType = Type.GetType(context["TypeName"]); 1484activityType = Type.GetType((string)dataObject.GetData(DragDropHelper.WorkflowItemTypeNameFormat));
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\IExpressionEditorService.cs (2)
17IExpressionEditorInstance CreateExpressionEditor(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces, List<ModelItem> variables, string text, Type expressionType); 18IExpressionEditorInstance CreateExpressionEditor(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces, List<ModelItem> variables, string text, Type expressionType, Size initialSize);
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
640IEnumerable<Type> types = null; 654foreach (Type type in types)
System.Activities.Presentation\System\Activities\Presentation\View\ImportedNamespaceContextItem.cs (1)
33public override Type ItemType
System.Activities.Presentation\System\Activities\Presentation\View\ModelPropertyPathExpanderConverter.cs (2)
16public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 49public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (2)
196public object GetService(Type serviceType) 210public ValueSerializer GetValueSerializerFor(Type type)
System.Activities.Presentation\System\Activities\Presentation\View\PropertyEntryToEditingContextConverter.cs (2)
13public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 27public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\PropertyEntryToEditorOptionConverter.cs (2)
20public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 60public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (1)
166public sealed override Type ItemType {
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (2)
332Type modelItemType = this.VisualValue.ItemType; 468Type[] arguments = property.PropertyType.GetGenericArguments();
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (3)
29internal static Dictionary<Type, DrawingBrush> IconCache = new Dictionary<Type, DrawingBrush>(); 442Type[] arguments = property.PropertyType.GetGenericArguments();
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\TypeKeyValue.cs (15)
15Type genericType; 21Type targetType; 26Func<Type, bool> filter; 27ObservableCollection<Type> mostRecentlyUsedTypes; 32public TypeKeyValue(Type genericType, Action<TypeKeyValue> typeChangedCallBack) 50public Type GenericType 70public Func<Type, bool> Filter 80public ObservableCollection<Type> MostRecentlyUsedTypes 126public Type TargetType 142public Type GetConcreteType() 144Type result = null; 151Type[] arguments = new Type[this.subTypes.Count]; 177Type[] generics = this.targetType.GetGenericArguments(); 178foreach (Type t in generics)
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\TypeResolvingOptions.cs (9)
20public TypeResolvingOptions(IEnumerable<Type> defaultTypes) 24this.MostRecentlyUsedTypes = new ObservableCollection<Type>(); 25foreach (Type item in defaultTypes) 36public Func<Type, bool> Filter 44internal ObservableCollection<Type> MostRecentlyUsedTypes 103static Func<Type, bool> FuncAnd(Func<Type, bool> lhs, Func<Type, bool> rhs) 114return new Func<Type, bool>((e) => lhs(e) && rhs(e));
System.Activities.Presentation\System\Activities\Presentation\View\TypeToArgumentTypeConverter.cs (4)
17public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 20Type type = value as Type; 31public object ConvertBack(object value, Type targetType, object parameter, 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\ViewUtilities.cs (6)
26Type parentDesignerType = GetParentDesignerType(modelItem, context); 63Type viewType = viewService.GetDesignerType(item.ItemType); 70Type viewType = viewService.GetDesignerType(modelItem.ItemType); 162static bool IsParentOfType(ModelItem modelItem, Type parentType, EditingContext context) 164Type parentDesignerType = GetParentDesignerType(modelItem, context); 168static Type GetParentDesignerType(ModelItem modelItem, EditingContext context)
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)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicReferenceValidationFeature.cs (2)
17private static readonly Type VisualBasicReferenceType = typeof(VisualBasicReference<>); 19public override void Initialize(EditingContext context, Type modelType)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicValueValidationFeature.cs (2)
17private static readonly Type VisualBasicValueType = typeof(VisualBasicValue<>); 19public override void Initialize(EditingContext context, Type modelType)
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewManager.cs (2)
105internal static string GetF1HelpTypeKeyword(Type type) 110Type genericTypeDefinition = type.GetGenericTypeDefinition();
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (13)
114DesignerAttribute GetDesignerAttribute(Type type) 125internal static T GetAttribute<T>(Type type) where T : Attribute 136internal Type GetDesignerType(Type type) 141internal Type GetDesignerType(Type type, bool throwOnFailure) 143Type designerType = null; 148designerType = Type.GetType(designerAttribute.DesignerTypeName, throwOnFailure); 152if (type.IsGenericType && Type.Equals(designerType, typeof(ActivityDesigner))) 154Type genericType = type.GetGenericTypeDefinition(); 159designerType : Type.GetType(genericDesignerAttribute.DesignerTypeName, throwOnFailure)); 170Type designerType = GetDesignerType(modelItem.ItemType, true); 220Type designerType = this.GetDesignerType(modelItem.ItemType);
System.Activities.Presentation\System\Activities\Presentation\ViewStateAttachedPropertyFeature.cs (2)
14Type modelType; 19public sealed override void Initialize(EditingContext context, Type modelType)
System.Activities.Presentation\System\Activities\Presentation\VisualBasicExpressionMorphHelper.cs (2)
16public override bool TryInferReturnType(ActivityWithResult expression, EditingContext context, out Type returnType) 55public override bool TryMorphExpression(ActivityWithResult expression, bool isLocationExpression, Type newType,
System.Activities.Presentation\System\Activities\Presentation\WorkflowFileItem.cs (1)
15public sealed override Type ItemType
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (5)
54DependencyProperty.Register("AllowedItemType", typeof(Type), typeof(WorkflowItemPresenter), new UIPropertyMetadata(typeof(object))); 348public Type AllowedItemType 350get { return (Type)GetValue(AllowedItemTypeProperty); } 738(itemsToPaste[0] is Type && this.AllowedItemType.IsAssignableFrom((Type)itemsToPaste[0])) ||
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (5)
56DependencyProperty.Register("AllowedItemType", typeof(Type), typeof(WorkflowItemsPresenter), new UIPropertyMetadata(typeof(object))); 112public Type AllowedItemType 114get { return (Type)GetValue(AllowedItemTypeProperty); } 707else if (droppedObject is Type && this.AllowedItemType.IsAssignableFrom((Type)droppedObject))
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (3)
1103Type itemType = null; 1118Type[] argumentTypes = itemType.GetGenericArguments(); 1121foreach (Type argument in argumentTypes)
System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (2)
59Type variableType = null; 64Type propertyType = property.Type;
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (4)
210internal static bool IsErrorActivity(Type objectType) 981public Type Type { get; set; } 985public static bool IsActivityType(Type type) 997Type errorType;
System.Activities.Presentation\System\Activities\Presentation\Xaml\ShimAsPublicXamlType.cs (1)
13public ShimAsPublicXamlType(Type type, XamlSchemaContext schemaContext) :
System.Activities.Presentation\System\Activities\Presentation\XNameConverter.cs (3)
17public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 33public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 38public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System.AddIn (75)
System\Addin\Hosting\ActivationWorker.cs (5)
130Type addinType = addInAssembly.GetType(_pipeline._addin.TypeInfo.FullName, true); 131Object addIn = addinType.GetConstructor(new Type[0]).Invoke(new Object[0]); 182Type adapterType = addinAdapterAssembly.GetType(_pipeline._addinAdapter.TypeInfo.FullName, true); 183Type addInBaseType = Type.GetType(_pipeline._addinBase.TypeInfo.AssemblyQualifiedName, true);
System\Addin\Hosting\AddInActivator.cs (18)
314Type havType = typeof(T); 328Type addinType = addInAssembly.GetType(pipeline._addin.TypeInfo.FullName, true); 329Object addIn = addinType.GetConstructor(new Type[0]).Invoke(new Object[0]); 343Type t = typeof(ActivationWorker); 388Type hostAdapterType; 389Type contractType; 446internal static InvokerDelegate CreateConsInvoker(Type targetType, Type argType) 450null, new Type[]{argType}, null); 452Type[] methodArgs = new Type[]{typeof(Object)}; 464private static DynamicMethod AssertAndCreateInvoker(Type targetType, Type argType, Type[] methodArgs, ConstructorInfo havCtor) 490out Type contractType, out Type hostAdapterType) 524Type hostAdapterType; 525Type contractType;
System\Addin\Hosting\AddInStore.cs (6)
442public static Collection<AddInToken> FindAddIns(Type hostViewOfAddIn, PipelineStoreLocation location) 454public static Collection<AddInToken> FindAddIns(Type hostViewOfAddIn, PipelineStoreLocation location, params String[] addInFolderPaths) 466public static Collection<AddInToken> FindAddIns(Type hostViewOfAddIn, String pipelineRootFolderPath, params String[] addInFolderPaths) 474private static Collection<AddInToken> FindAddInsImpl(Type hostViewOfAddIn, String pipelineRootFolderPath, bool demand, params String[] addInFolderPaths) 554private static void WarnIfGenericHostView(Type hostViewOfAddIn) 570public static Collection<AddInToken> FindAddIn(Type hostViewOfAddIn, String pipelineRootFolderPath, String addInFilePath, String addInTypeName)
System\Addin\Hosting\InspectionWorker.cs (4)
208Type[] publicTypes; 245Type lastType = null; 249foreach (Type type in publicTypes) 288activatableAs[i++] = new TypeInfo((Type)subArg.Value);
System\Addin\Hosting\RemotingHelper.cs (1)
67return (AddInServer)Activator.GetObject(Type.GetType(@"System.AddIn.Hosting.AddInServer")
System\Addin\Hosting\Store\AddIn.cs (1)
154Type addInAttributeType = typeof(AddInAttribute);
System\Addin\Hosting\Store\AddInAdapter.cs (2)
50internal override bool Validate(Type type, Collection<String> warnings) 68foreach (Type contractInterface in type.GetInterfaces())
System\Addin\Hosting\Store\AddInBase.cs (1)
42internal override bool Validate(Type type, Collection<String> warnings)
System\Addin\Hosting\Store\ContractComponent.cs (1)
36internal override bool Validate(Type type, Collection<String> warnings)
System\Addin\Hosting\Store\PipelineComponent.cs (13)
57private static volatile Type s_IContractInReflectionLoaderContext; 58private static volatile Type s_ContractAttrInReflectionLoaderContext; 59private static volatile Type s_AddInAdapterAttrInReflectionLoaderContext; 60private static volatile Type s_AddInBaseAttrInReflectionLoaderContext; 61private static volatile Type s_AddInAttrInReflectionLoaderContext; 62private static volatile Type s_QualificationDataAttrInReflectionLoaderContext; 103Type qualificationDataAttribute = typeof (QualificationDataAttribute); 126protected static Type IContractInReflectionLoaderContext { 133internal static Type ContractAttributeInReflectionLoaderContext { 140internal static Type AddInAdapterAttributeInReflectionLoaderContext { 147internal static Type AddInBaseAttributeInReflectionLoaderContext { 154internal static Type AddInAttributeInReflectionLoaderContext { 241internal virtual bool Validate(Type type, Collection<String> warnings)
System\Addin\Hosting\Utils.cs (4)
43internal static bool HasCustomAttribute(Type attributeType, Type inspectType) 49internal static CustomAttributeData GetCustomAttributeData(Type attributeType, Type inspectType)
System\Addin\MiniReflection\MiniAssembly.cs (2)
91public IList<TypeInfo> GetTypesWithAttribute(Type customAttribute) 124public IList<TypeInfo> GetTypesWithAttribute(Type customAttribute, bool includePrivate)
System\Addin\MiniReflection\MiniModule.cs (2)
112public IList<TypeInfo> GetTypesWithAttributeInModule(Type customAttribute) 117public IList<TypeInfo> GetTypesWithAttributeInModule(Type customAttribute, bool includePrivate)
System\Addin\MiniReflection\TypeInfo.cs (8)
71private readonly Type _reflectionType; // Don't load Type objects in the wrong AD! 170Type t = mscorlib.GetType(FullName, false); 186internal TypeInfo(Type type) 234internal Type ReflectionType 730foreach(Type implementsIFace in _reflectionType.GetInterfaces()) 874foreach (Type interfaceType in _reflectionType.GetInterfaces()) 947internal MiniCustomAttributeInfo[] GetCustomAttributeInfos(Type caReflectedType) 997private static MiniCustomAttributeInfo ParseCustomAttribute(byte[] caBlob, Type caReflectedType)
System\Addin\Pipeline\AddInPipelineAttributes.cs (2)
30private Type[] _activatableAs; 35public Type[] ActivatableAs
System\Addin\Pipeline\ContractAdapter.cs (1)
78Type havType = typeof(TView);
System\Addin\Pipeline\ContractBase.cs (4)
73Type t = this.GetType(); 74Type[] interfaces = t.GetInterfaces(); 76Type typeOfIContract = typeof(IContract); 78foreach (Type iface in interfaces)
System.AddIn.Contract (7)
System\Addin\Contract\RemoteArgument.cs (7)
85typeCode = Type.GetTypeCode(arrayValue.GetType().GetElementType()); 89typeCode = Type.GetTypeCode(value.GetType()); 134TypeCode arrayTypeCode = Type.GetTypeCode(arrayValue.GetType().GetElementType()); 694if (Type.GetTypeCode(array.GetType().GetElementType()) == TypeCode.Object) 702this.intrinsicTypeCode = Type.GetTypeCode(array.GetType().GetElementType()); 716if (Type.GetTypeCode(array.GetType().GetElementType()) == TypeCode.Object) 724this.intrinsicTypeCode = Type.GetTypeCode(array.GetType().GetElementType());
System.ComponentModel.DataAnnotations (94)
DataAnnotations\AssociatedMetadataTypeTypeDescriptionProvider.cs (5)
6private Type _associatedMetadataType; 7public AssociatedMetadataTypeTypeDescriptionProvider(Type type) 11public AssociatedMetadataTypeTypeDescriptionProvider(Type type, Type associatedMetadataType) 20public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) {
DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (26)
12private Type AssociatedMetadataType { 22public AssociatedMetadataTypeTypeDescriptor(ICustomTypeDescriptor parent, Type type, Type associatedMetadataType) 83private static readonly ConcurrentDictionary<Type, Type> _metadataTypeCache = new ConcurrentDictionary<Type, Type>(); 86private static readonly ConcurrentDictionary<Tuple<Type, string>, Attribute[]> _typeMemberCache = new ConcurrentDictionary<Tuple<Type, string>, Attribute[]>(); 89private static readonly ConcurrentDictionary<Tuple<Type, Type>, bool> _validatedMetadataTypeCache = new ConcurrentDictionary<Tuple<Type, Type>, bool>(); 91public static void ValidateMetadataType(Type type, Type associatedType) { 92Tuple<Type, Type> typeTuple = new Tuple<Type, Type>(type, associatedType); 99public static Type GetAssociatedMetadataType(Type type) { 100Type associatedMetadataType = null; 114private static void CheckAssociatedMetadataType(Type mainType, Type associatedMetadataType) { 136public static Attribute[] GetAssociatedMetadata(Type type, string memberName) { 137var memberTuple = new Tuple<Type, string>(type, memberName);
DataAnnotations\CompareAttribute.cs (2)
54private static string GetDisplayNameForProperty(Type containerType, string propertyName) { 73private static ICustomTypeDescriptor GetTypeDescriptor(Type type) {
DataAnnotations\CustomValidationAttribute.cs (7)
50private Type _validatorType; 55private Type _valuesType; 58private Tuple<string, Type> _typeId; 75public CustomValidationAttribute(Type validatorType, string method) 88public Type ValidatorType { 110_typeId = new Tuple<string, Type>(this._method, this._validatorType); 276Type t = this._valuesType;
DataAnnotations\DisplayAttribute.cs (3)
15private Type _resourceType; 195/// Gets or sets the <see cref="System.Type"/> that contains the resources for <see cref="ShortName"/>, 201public Type ResourceType {
DataAnnotations\EnumDataTypeAttribute.cs (5)
10public Type EnumType { get; private set; } 12public EnumDataTypeAttribute(Type enumType) 38Type valueType = value.GetType(); 89private static bool IsEnumTypeInFlagsMode(Type enumType) { 94private static string GetUnderlyingTypeValueString(Type enumType, object enumValue) {
DataAnnotations\LocalizableString.cs (2)
19private Type _resourceType; 62public Type ResourceType {
DataAnnotations\MetadataPropertyDescriptorWrapper.cs (2)
23public override Type ComponentType { get { return _descriptor.ComponentType; } } 36public override Type PropertyType { get { return _descriptor.PropertyType; } }
DataAnnotations\MetadataTypeAttribute.cs (3)
12private Type _metadataClassType; 14public Type MetadataClassType { 24public MetadataTypeAttribute(Type metadataClassType) {
DataAnnotations\RangeAttribute.cs (5)
26public Type OperandType { get; private set; } 60public RangeAttribute(Type type, string minimum, string maximum) 152Type operandType = minimum.GetType(); 159Type type = this.OperandType; 163Type comparableType = typeof(IComparable);
DataAnnotations\ValidationAttribute.cs (2)
23private Type _errorMessageResourceType; 181public Type ErrorMessageResourceType {
DataAnnotations\ValidationAttributeStore.cs (9)
19private Dictionary<Type, TypeStoreItem> _typeStoreItems = new Dictionary<Type, TypeStoreItem>(); 81internal Type GetPropertyType(ValidationContext validationContext) { 108private TypeStoreItem GetTypeStoreItem(Type type) 167private Type _type; 170internal TypeStoreItem(Type type, IEnumerable<Attribute> attributes) 254private Type _propertyType; 256internal PropertyStoreItem(Type propertyType, IEnumerable<Attribute> attributes) 261internal Type PropertyType {
DataAnnotations\ValidationContext.cs (16)
31private Func<Type, object> _serviceProvider; 150public Type ObjectType { 243/// service instances by <see cref="Type"/> when <see cref="GetService"/> is called. 247/// desired <see cref="Type"/> when <see cref="GetService"/> is called. 250public void InitializeServiceProvider(Func<Type, object> serviceProvider) { 266/// See <see cref="IServiceProvider.GetService(Type)"/>. 276public object GetService(Type serviceType) { 330private Dictionary<Type, object> _services = new Dictionary<Type, object>(); 359public void AddService(Type serviceType, Design.ServiceCreatorCallback callback, bool promote) 374public void AddService(Type serviceType, Design.ServiceCreatorCallback callback) { 379public void AddService(Type serviceType, object serviceInstance, bool promote) 394public void AddService(Type serviceType, object serviceInstance) { 398public void RemoveService(Type serviceType, bool promote) { 410public void RemoveService(Type serviceType) { 418public object GetService(Type serviceType) {
DataAnnotations\Validator.cs (5)
42Type propertyType = _store.GetPropertyType(validationContext); 183Type propertyType = _store.GetPropertyType(validationContext); 291/// <param name="destinationType">The destination <see cref="Type"/> for the value.</param> 295private static bool CanBeAssigned(Type destinationType, object value) { 317private static void EnsureValidPropertyType(string propertyName, Type propertyType, object value) {
parent\parent\parent\parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (2)
86Type appContextType = typeof(object).Assembly.GetType("System.AppContext"); 94new Type[] { typeof(string), typeof(bool).MakeByRefType() },
System.Configuration (138)
System\Configuration\BaseConfigurationRecord.cs (4)
2529Type sectionType = Type.GetType(typeName); 4361Type ConfigurationBuildersSectionType = Type.GetType(ConfigurationBuildersSectionTypeName);
System\Configuration\CallbackValidator.cs (3)
23Type _type; 26public CallbackValidator(Type type, ValidatorCallback callback) : this(callback) { 42public override bool CanValidate(Type type) {
System\Configuration\CallbackValidatorAttribute.cs (2)
25private Type _type = null; 60public Type Type {
System\Configuration\ClientConfigPaths.cs (1)
448Type mainType = null;
System\Configuration\CommaDelimitedStringAttributeCollectionConverter.cs (1)
23public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
System\Configuration\Configuration.cs (2)
28private Type _typeConfigHost; // type of config host 42internal Configuration(string locationSubPath, Type typeConfigHost, params object[] hostInitConfigurationParams) {
System\Configuration\ConfigurationCollectionAttribute.cs (3)
31private Type _itemType = null; 34public ConfigurationCollectionAttribute(Type itemType) { 41public Type ItemType {
System\Configuration\ConfigurationConverterBase.cs (3)
23public override bool CanConvertTo(ITypeDescriptorContext ctx, Type type) { 27public override bool CanConvertFrom(ITypeDescriptorContext ctx, Type type) { 31internal void ValidateType(object value, Type expected) {
System\Configuration\ConfigurationElement.cs (8)
51private static volatile Dictionary<Type,ConfigurationValidatorBase> s_perTypeValidators; 82internal ConfigurationElement CreateElement(Type type) { 737Type type = instance.GetType(); 747Type propertyType = propertyInformation.PropertyType; 792private static bool PropertiesFromType(Type type, out ConfigurationPropertyCollection result) { 810private static ConfigurationPropertyCollection CreatePropertyBagFromType(Type type) { 863private static void CachePerTypeValidator( Type type, ConfigurationValidatorBase validator ) { 873s_perTypeValidators = new Dictionary<Type,ConfigurationValidatorBase>();
System\Configuration\ConfigurationErrorsException.cs (2)
170Type currentExceptionType; 188currentExceptionType = Type.GetType(currentType, true);
System\Configuration\ConfigurationProperty.cs (9)
25private Type _type; 36public ConfigurationProperty(String name, Type type) { 50public ConfigurationProperty(String name, Type type, Object defaultValue) 54public ConfigurationProperty(String name, Type type, Object defaultValue, ConfigurationPropertyOptions options) 59Type type, 68Type type, 127Type propertyType = info.PropertyType; 170Type type, 293public Type Type {
System\Configuration\ConfigurationValidatorAttribute.cs (5)
26internal Type _declaringType; 27private readonly Type _validator; 31public ConfigurationValidatorAttribute(Type validator) { 54internal void SetDeclaringType(Type declaringType) { 70public Type ValidatorType {
System\Configuration\ConfigurationValidatorBase.cs (1)
23public virtual bool CanValidate(Type type) {
System\Configuration\DefaultValidator.cs (1)
26public override bool CanValidate(Type type) {
System\Configuration\elementinformation.cs (1)
134public Type Type {
System\Configuration\FactoryRecord.cs (1)
247Type t1, t2;
System\Configuration\GenericEnumConverter.cs (3)
22private Type _enumType; 24public GenericEnumConverter(Type typeEnum) { 32public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
System\Configuration\InfiniteIntConverter.cs (1)
23public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
System\Configuration\InfiniteTimeSpanConverter.cs (1)
24public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
System\Configuration\IntegerValidator.cs (1)
60public override bool CanValidate(Type type) {
System\Configuration\Internal\configsystem.cs (1)
16void IConfigSystem.Init(Type typeConfigHost, params object[] hostInitParams) {
System\Configuration\Internal\DelegatingConfigHost.cs (2)
224public virtual Type GetConfigType(string typeName, bool throwOnError) { 228public virtual string GetConfigTypeName(Type t) {
System\Configuration\Internal\iconfigsystem.cs (1)
13void Init(Type typeConfigHost, params object[] hostInitParams);
System\Configuration\Internal\IInternalConfigConfigurationFactory.cs (1)
31ClassConfiguration Create(Type typeConfigHost, params object[] hostInitConfigurationParams);
System\Configuration\Internal\IInternalConfigHost.cs (2)
104Type GetConfigType(string typeName, bool throwOnError); 105string GetConfigTypeName(Type t);
System\Configuration\Internal\InternalConfigConfigurationFactory.cs (1)
27ClassConfiguration IInternalConfigConfigurationFactory.Create(Type typeConfigHost, params object[] hostInitConfigurationParams) {
System\Configuration\Internal\InternalConfigHost.cs (3)
436Type IInternalConfigHost.GetConfigType(string typeName, bool throwOnError) { 437return Type.GetType(typeName, throwOnError); 440string IInternalConfigHost.GetConfigTypeName(Type t) {
System\Configuration\LongValidator.cs (1)
56public override bool CanValidate(Type type) {
System\Configuration\MgmtConfigurationRecord.cs (2)
126Type type = TypeUtil.GetTypeWithReflectionPermission(Host, factoryRecord.FactoryTypeName, true); 176Type type;
System\Configuration\PositiveTimeSpanValidator.cs (1)
14public override bool CanValidate(Type type) {
System\Configuration\PropertyInformation.cs (1)
183public Type Type {
System\Configuration\ProtectedConfigurationSection.cs (2)
42private ProtectedConfigurationProvider CreateAndInitializeProviderWithAssert(Type t, ProviderSettings pn) { 57Type t = TypeUtil.GetTypeWithReflectionPermission(pn.Type, true);
System\Configuration\RegexStringValidator.cs (1)
35public override bool CanValidate(Type type) {
System\Configuration\RuntimeConfigurationRecord.cs (1)
150Type type = TypeUtil.GetTypeWithReflectionPermission(configRecord.Host, factoryRecord.FactoryTypeName, true);
System\Configuration\StringValidator.cs (1)
41public override bool CanValidate(Type type) {
System\Configuration\SubclassTypeValidator.cs (8)
24private Type _base; 26public SubclassTypeValidator(Type baseClass) { 34public override bool CanValidate(Type type) { 35return (type == typeof(Type)); 44if (!(value is Type)) { 45ValidatorUtils.HelperParamValidation(value, typeof(Type)); 48if (!_base.IsAssignableFrom((Type)value)) { 49throw new ArgumentException(SR.GetString(SR.Subclass_validator_error, ((Type)value).FullName, _base.FullName));
System\Configuration\SubclassTypeValidatorAttribute.cs (3)
25private Type _baseClass; 27public SubclassTypeValidatorAttribute(Type baseClass) { 37public Type BaseClass {
System\Configuration\TimeSpanMinutesConverter.cs (1)
23public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
System\Configuration\TimeSpanMinutesOrInfiniteConverter.cs (1)
23public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
System\Configuration\TimeSpanSecondsConverter.cs (1)
23public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
System\Configuration\TimeSpanSecondsOrInfiniteConverter.cs (1)
23public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
System\Configuration\TimeSpanValidator.cs (1)
58public override bool CanValidate(Type type) {
System\Configuration\TypeNameConverter.cs (5)
23public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) { 25if (!(value is Type)) { 26ValidateType(value, typeof(Type)); 32result = ((Type)value).AssemblyQualifiedName; 40Type result = TypeUtil.GetTypeWithReflectionPermission((string)data, false);
System\Configuration\TypeUtil.cs (41)
27static private Type GetLegacyType(string typeString) { 28Type type = null; 50static private Type GetTypeImpl(string typeString, bool throwOnError) { 51Type type = null; 55type = Type.GetType(typeString, throwOnError); 76static internal Type GetTypeWithReflectionPermission(IInternalConfigHost host, string typeString, bool throwOnError) { 77Type type = null; 97static internal Type GetTypeWithReflectionPermission(string typeString, bool throwOnError) { 105static internal T CreateInstanceRestricted<T>(Type callingType, string typeString) { 106Type type = GetTypeImpl(typeString, true); // catch the errors and report them 113static internal object CreateInstanceWithReflectionPermission(Type type) { 120static internal object CreateInstanceRestricted(Type callingType, Type targetType) { 131DynamicMethod dm = CreateDynamicMethod(callingType, returnType: typeof(object), parameterTypes: new Type[] { typeof(Type) }); 137ilGen.Emit(OpCodes.Call, typeof(Activator).GetMethod("CreateInstance", new Type[] { typeof(Type), typeof(bool) })); // stack = { retVal } 140var createInstanceDel = (Func<Type, object>)dm.CreateDelegate(typeof(Func<Type, object>)); 147static internal Delegate CreateDelegateRestricted(Type callingType, Type delegateType, MethodInfo targetMethod) { 160DynamicMethod dm = CreateDynamicMethod(callingType, returnType: typeof(Delegate), parameterTypes: new Type[] { typeof(Type), typeof(MethodInfo) }); 166ilGen.Emit(OpCodes.Call, typeof(Delegate).GetMethod("CreateDelegate", new Type[] { typeof(Type), typeof(MethodInfo) })); // stack = { retVal } 169var createDelegateDel = (Func<Type, MethodInfo, Delegate>)dm.CreateDelegate(typeof(Func<Type, MethodInfo, Delegate>)); 174private static DynamicMethod CreateDynamicMethod(Type owner, Type returnType, Type[] parameterTypes) { 188private static DynamicMethod CreateDynamicMethodWithUnrestrictedPermission(Type owner, Type returnType, Type[] parameterTypes) { 204static internal ConstructorInfo GetConstructorWithReflectionPermission(Type type, Type baseType, bool throwOnError) { 212ConstructorInfo ctor = type.GetConstructor(bindingFlags, null, CallingConventions.HasThis, Type.EmptyTypes, null); 226static internal bool IsTypeFromTrustedAssemblyWithoutAptca(Type type) { 231static internal Type VerifyAssignableType(Type baseType, Type type, bool throwOnError) { 294internal static bool IsTypeAllowedInConfig(Type t) {
System\Configuration\ValidatorUtils.cs (1)
24public static void HelperParamValidation(object value, Type allowedType) {
System\Configuration\WhiteSpaceTrimStringConverter.cs (1)
23public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
System.Core (801)
Microsoft\Scripting\Actions\BinaryOperationBinder.cs (1)
43public override sealed Type ReturnType {
Microsoft\Scripting\Actions\BindingRestrictions.cs (3)
75public static BindingRestrictions GetTypeRestriction(Expression expression, Type type) { 249private readonly Type _type; 251internal TypeRestriction(Expression parameter, Type type) {
Microsoft\Scripting\Actions\CallSite.cs (10)
67private static volatile CacheDict<Type, Func<CallSiteBinder, CallSite>> _SiteCtors; 99public static CallSite Create(Type delegateType, CallSiteBinder binder) { 107_SiteCtors = ctors = new CacheDict<Type, Func<CallSiteBinder, CallSite>>(100); 261Type target = typeof(T); 262Type[] args; 310private static Delegate CreateDelegateHelper(Type delegateType, MethodInfo method) { 314private static bool IsSimpleSignature(MethodInfo invoke, out Type[] sig) { 318Type[] args = new Type[invoke.ReturnType != typeof(void) ? pis.Length : pis.Length - 1]; 730private static Expression Convert(Expression arg, Type type) {
Microsoft\Scripting\Actions\CallSiteBinder.cs (4)
43internal Dictionary<Type, object> Cache; 68Type target = typeof(T); 169Type siteType = typeof(CallSite<T>); 219Interlocked.CompareExchange(ref Cache, new Dictionary<Type, object>(), null);
Microsoft\Scripting\Actions\CallSiteHelpers.cs (1)
22private static Type _knownNonDynamicMethodType = typeof(object).GetMethod("ToString").GetType();
Microsoft\Scripting\Actions\ConvertBinder.cs (4)
23private readonly Type _type; 31protected ConvertBinder(Type type, bool @explicit) { 42public Type Type { 97public override sealed Type ReturnType {
Microsoft\Scripting\Actions\CreateInstanceBinder.cs (1)
37public override sealed Type ReturnType {
Microsoft\Scripting\Actions\DeleteIndexBinder.cs (1)
37public override sealed Type ReturnType {
Microsoft\Scripting\Actions\DeleteMemberBinder.cs (1)
60public override sealed Type ReturnType {
Microsoft\Scripting\Actions\DynamicMetaObject.cs (4)
111/// Gets the <see cref="Type"/> of the runtime value or null if the <see cref="DynamicMetaObject"/> has no value associated with it. 113public Type RuntimeType { 116Type ct = Expression.Type; 136public Type LimitType {
Microsoft\Scripting\Actions\DynamicMetaObjectBinder.cs (5)
57public virtual Type ReturnType { 90Type expectedResult; 228public Expression GetUpdateExpression(Type type) { 263Type delegateType = DelegateHelpers.MakeDeferredSiteDelegate(args, ReturnType); 283private static readonly Type ComObjectType = typeof(object).Assembly.GetType("System.__ComObject");
Microsoft\Scripting\Actions\DynamicObject.cs (3)
425Type t = binder.GetType(); 522Expression.New(typeof(InvalidCastException).GetConstructor(new Type[]{typeof(string)}), 524typeof(string).GetMethod("Format", new Type[] {typeof(string), typeof(object[])}),
Microsoft\Scripting\Actions\GetIndexBinder.cs (1)
38public override sealed Type ReturnType {
Microsoft\Scripting\Actions\GetMemberBinder.cs (1)
41public override sealed Type ReturnType {
Microsoft\Scripting\Actions\InvokeBinder.cs (1)
38public override sealed Type ReturnType {
Microsoft\Scripting\Actions\InvokeMemberBinder.cs (1)
47public override sealed Type ReturnType {
Microsoft\Scripting\Actions\SetIndexBinder.cs (1)
38public override sealed Type ReturnType {
Microsoft\Scripting\Actions\SetMemberBinder.cs (1)
41public override sealed Type ReturnType {
Microsoft\Scripting\Actions\UnaryOperationBinder.cs (1)
43public override sealed Type ReturnType {
Microsoft\Scripting\Ast\BinaryExpression.cs (53)
340internal static Expression Create(ExpressionType nodeType, Expression left, Expression right, Type type, MethodInfo method, LambdaExpression conversion) { 360Type left = _left.Type; 361Type right = _right.Type; 376Type left = _left.Type; 377Type right = _right.Type; 465public sealed override Type Type { 480public sealed override Type Type { 508public sealed override Type Type { 519internal OpAssignMethodConversionBinaryExpression(ExpressionType nodeType, Expression left, Expression right, Type type, MethodInfo method, LambdaExpression conversion) 533private readonly Type _type; 535internal SimpleBinaryExpression(ExpressionType nodeType, Expression left, Expression right, Type type) 545public sealed override Type Type { 555internal MethodBinaryExpression(ExpressionType nodeType, Expression left, Expression right, Type type, MethodInfo method) 599Type nnLeftType = TypeUtils.GetNonNullableType(left.Type); 600Type nnRightType = TypeUtils.GetNonNullableType(right.Type); 683private static MethodInfo GetUserDefinedBinaryOperator(ExpressionType binaryType, Type leftType, Type rightType, string name) { 686Type[] types = new Type[] { leftType, rightType }; 687Type nnLeftType = TypeUtils.GetNonNullableType(leftType); 688Type nnRightType = TypeUtils.GetNonNullableType(rightType); 702private static bool IsLiftingConditionalLogicalOperator(Type left, Type right, MethodInfo method, ExpressionType binaryType) { 710internal static bool ParameterIsAssignable(ParameterInfo pi, Type argType) { 711Type pType = pi.ParameterType; 718private static void ValidateParamswithOperandsOrThrow(Type paramType, Type operandType, ExpressionType exprType, string name) { 769private static void ValidateUserDefinedConditionalLogicOperator(ExpressionType nodeType, Type left, Type right, MethodInfo method) { 802private static void VerifyOpTrueFalse(ExpressionType nodeType, Type left, MethodInfo opTrue) { 813private static bool IsValidLiftedConditionalLogicalOperator(Type left, Type right, ParameterInfo[] pms) { 1233Type returnType; 1279Type returnType; 1330Type resultType = ValidateCoalesceArgTypes(left.Type, right.Type); 1338Type delegateType = conversion.Type; 1366private static Type ValidateCoalesceArgTypes(Type left, Type right) { 1367Type leftStripped = TypeUtils.GetNonNullableType(left); 1475Type delegateType = conversion.Type; 2099private static bool IsSimpleShift(Type left, Type right) { 2104private static Type GetResultTypeOfShift(Type left, Type right) { 2138Type resultType = GetResultTypeOfShift(left.Type, right.Type); 2192Type resultType = GetResultTypeOfShift(left.Type, right.Type); 2226Type resultType = GetResultTypeOfShift(left.Type, right.Type); 2280Type resultType = GetResultTypeOfShift(left.Type, right.Type); 2568Type mathType = typeof(System.Math); 2618Type mathType = typeof(System.Math); 2645Type arrayType = array.Type;
Microsoft\Scripting\Ast\BlockExpression.cs (8)
88public override Type Type { 468private readonly Type _type; 470internal ScopeWithType(IList<ParameterExpression> variables, IList<Expression> expressions, Type type) 475public sealed override Type Type { 709public static BlockExpression Block(Type type, params Expression[] expressions) { 720public static BlockExpression Block(Type type, IEnumerable<Expression> expressions) { 741public static BlockExpression Block(Type type, IEnumerable<ParameterExpression> variables, params Expression[] expressions) { 767public static BlockExpression Block(Type type, IEnumerable<ParameterExpression> variables, IEnumerable<Expression> expressions) {
Microsoft\Scripting\Ast\CatchBlock.cs (6)
38private readonly Type _test; 43internal CatchBlock(Type test, ParameterExpression variable, Expression body, Expression filter) { 60public Type Test { 114public static CatchBlock Catch(Type type, Expression body) { 137public static CatchBlock Catch(Type type, Expression body, Expression filter) { 163public static CatchBlock MakeCatchBlock(Type type, ParameterExpression variable, Expression body, Expression filter) {
Microsoft\Scripting\Ast\ConditionalExpression.cs (6)
45internal static ConditionalExpression Make(Expression test, Expression ifTrue, Expression ifFalse, Type type) { 68public override Type Type { 133private readonly Type _type; 135internal FullConditionalExpressionWithType(Expression test, Expression ifTrue, Expression ifFalse, Type type) 140public sealed override Type Type { 185public static ConditionalExpression Condition(Expression test, Expression ifTrue, Expression ifFalse, Type type) {
Microsoft\Scripting\Ast\ConstantExpression.cs (7)
45internal static ConstantExpression Make(object value, Type type) { 57public override Type Type { 90private readonly Type _type; 92internal TypedConstantExpression(object value, Type type) 97public sealed override Type Type { 121/// <param name="type">A <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 127public static ConstantExpression Constant(object value, Type type) {
Microsoft\Scripting\Ast\DebugInfoExpression.cs (1)
50public sealed override Type Type {
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
518private static string GetConstantValueSuffix(Type type) {
Microsoft\Scripting\Ast\DefaultExpression.cs (5)
31private readonly Type _type; 33internal DefaultExpression(Type type) { 41public sealed override Type Type { 77/// <param name="type">A <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 82public static DefaultExpression Default(Type type) {
Microsoft\Scripting\Ast\DynamicExpression.cs (71)
44private readonly Type _delegateType; 46internal DynamicExpression(Type delegateType, CallSiteBinder binder) { 52internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, ReadOnlyCollection<Expression> arguments) { 60internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0) { 68internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) { 76internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) { 84internal static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) { 96public override Type Type { 120public Type DelegateType { 198public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, params Expression[] arguments) { 218public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, IEnumerable<Expression> arguments) { 238public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0) { 259public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1) { 281public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2) { 304public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2, Expression arg3) { 321public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable<Expression> arguments) { 338public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, params Expression[] arguments) { 355public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0) { 373public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) { 392public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) { 412public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) { 434internal DynamicExpressionN(Type delegateType, CallSiteBinder binder, IList<Expression> arguments) 461private readonly Type _returnType; 463internal TypedDynamicExpressionN(Type returnType, Type delegateType, CallSiteBinder binder, IList<Expression> arguments) 469public sealed override Type Type { 477internal DynamicExpression1(Type delegateType, CallSiteBinder binder, Expression arg0) 507private readonly Type _retType; 509internal TypedDynamicExpression1(Type retType, Type delegateType, CallSiteBinder binder, Expression arg0) 514public sealed override Type Type { 523internal DynamicExpression2(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) 555private readonly Type _retType; 557internal TypedDynamicExpression2(Type retType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) 562public sealed override Type Type { 571internal DynamicExpression3(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) 605private readonly Type _retType; 607internal TypedDynamicExpression3(Type retType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) 612public sealed override Type Type { 621internal DynamicExpression4(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) 657private readonly Type _retType; 659internal TypedDynamicExpression4(Type retType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) 664public sealed override Type Type { 686public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, params Expression[] arguments) { 703public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable<Expression> arguments) { 729public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0) { 758public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1) { 790public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2) { 825public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3) { 846private static MethodInfo GetValidMethodForDynamic(Type delegateType) { 869public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, params Expression[] arguments) { 889public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0) { 901Type delegateType = info.DelegateType; 926public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1) { 942Type delegateType = info.DelegateType; 968public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2) { 988Type delegateType = info.DelegateType; 1015public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2, Expression arg3) { 1039Type delegateType = info.DelegateType; 1063public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, IEnumerable<Expression> arguments) { 1072private static DynamicExpression MakeDynamic(CallSiteBinder binder, Type returnType, ReadOnlyCollection<Expression> args) { 1081Type delegateType = DelegateHelpers.MakeCallSiteDelegate(args, returnType); 1097var type = arg.Type;
Microsoft\Scripting\Ast\Expression.cs (7)
43private static readonly CacheDict<Type, MethodInfo> _LambdaDelegateCache = new CacheDict<Type, MethodInfo>(40); 44private static volatile CacheDict<Type, LambdaFactory> _LambdaFactories; 58public ExtensionInfo(ExpressionType nodeType, Type type) { 64internal readonly Type Type; 75protected Expression(ExpressionType nodeType, Type type) { 116public virtual Type Type {
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (29)
49public Type Type { get { return _node.Type; } } 64public Type Type { get { return _node.Type; } } 77public Type Test { get { return _node.Test; } } 94public Type Type { get { return _node.Type; } } 107public Type Type { get { return _node.Type; } } 127public Type Type { get { return _node.Type; } } 140public Type Type { get { return _node.Type; } } 154public Type DelegateType { get { return _node.DelegateType; } } 156public Type Type { get { return _node.Type; } } 171public Type Type { get { return _node.Type; } } 188public Type Type { get { return _node.Type; } } 203public Type Type { get { return _node.Type; } } 218public Type Type { get { return _node.Type; } } 234public Type ReturnType { get { return _node.ReturnType; } } 236public Type Type { get { return _node.Type; } } 251public Type Type { get { return _node.Type; } } 267public Type Type { get { return _node.Type; } } 282public Type Type { get { return _node.Type; } } 297public Type Type { get { return _node.Type; } } 313public Type Type { get { return _node.Type; } } 327public Type Type { get { return _node.Type; } } 343public Type Type { get { return _node.Type; } } 358public Type Type { get { return _node.Type; } } 371public Type Type { get { return _node.Type; } } 400public Type Type { get { return _node.Type; } } 417public Type Type { get { return _node.Type; } } 431public Type Type { get { return _node.Type; } } 432public Type TypeOperand { get { return _node.TypeOperand; } } 449public Type Type { get { return _node.Type; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
780var toString = node.GetType().GetMethod("ToString", flags, null, Type.EmptyTypes, null);
Microsoft\Scripting\Ast\ExpressionVisitor.cs (2)
668private static void ValidateChildType(Type before, Type after, string methodName) {
Microsoft\Scripting\Ast\GotoExpression.cs (20)
61private readonly Type _type; 63internal GotoExpression(GotoExpressionKind kind, LabelTarget target, Expression value, Type type) { 74public sealed override Type Type { 162/// <param name="type">An <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 168public static GotoExpression Break(LabelTarget target, Type type) { 178/// <param name="type">An <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 185public static GotoExpression Break(LabelTarget target, Expression value, Type type) { 206/// <param name="type">An <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 213public static GotoExpression Continue(LabelTarget target, Type type) { 234/// <param name="type">An <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 241public static GotoExpression Return(LabelTarget target, Type type) { 265/// <param name="type">An <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 272public static GotoExpression Return(LabelTarget target, Expression value, Type type) { 293/// <param name="type">An <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 300public static GotoExpression Goto(LabelTarget target, Type type) { 324/// <param name="type">An <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 331public static GotoExpression Goto(LabelTarget target, Expression value, Type type) { 342/// <param name="type">An <see cref="System.Type"/> to set the <see cref="P:Expression.Type"/> property equal to.</param> 349public static GotoExpression MakeGoto(GotoExpressionKind kind, LabelTarget target, Expression value, Type type) { 364private static void ValidateGotoType(Type expectedType, ref Expression value, string paramName) {
Microsoft\Scripting\Ast\IDynamicExpression.cs (1)
33Type DelegateType { get; }
Microsoft\Scripting\Ast\IndexExpression.cs (8)
72public sealed override Type Type { 184Type arrayType = array.Type; 226private static PropertyInfo FindInstanceProperty(Type type, string propertyName, Expression[] arguments) { 248foreach (var t in arguments.Select(arg => arg.Type)) { 259private static PropertyInfo FindProperty(Type type, string propertyName, Expression[] arguments, BindingFlags flags) { 260MemberInfo[] members = type.FindMembers(MemberTypes.Property, flags, Type.FilterNameIgnoreCase, propertyName); 378Type valueType = setParameters[setParameters.Length - 1].ParameterType; 427Type pType = pi.ParameterType;
Microsoft\Scripting\Ast\InvocationExpression.cs (5)
41private readonly Type _returnType; 43internal InvocationExpression(Expression lambda, IList<Expression> arguments, Type returnType) { 53public sealed override Type Type { 193Type delegateType = expression.Type; 195Type exprType = TypeUtils.FindGenericType(typeof(Expression<>), expression.Type);
Microsoft\Scripting\Ast\LabelExpression.cs (1)
46public sealed override Type Type {
Microsoft\Scripting\Ast\LabelTarget.cs (5)
29private readonly Type _type; 32internal LabelTarget(Type type, string name) { 50public Type Type { 86public static LabelTarget Label(Type type) { 96public static LabelTarget Label(Type type, string name) {
Microsoft\Scripting\Ast\LambdaExpression.cs (31)
51private readonly Type _delegateType; 55Type delegateType, 75public sealed override Type Type { 112public Type ReturnType { 256internal static LambdaExpression CreateLambda(Type delegateType, Expression body, string name, bool tailCall, ReadOnlyCollection<ParameterExpression> parameters) { 263_LambdaFactories = factories = new CacheDict<Type, LambdaFactory>(50); 405public static LambdaExpression Lambda(Type delegateType, Expression body, params ParameterExpression[] parameters) { 417public static LambdaExpression Lambda(Type delegateType, Expression body, bool tailCall, params ParameterExpression[] parameters) { 428public static LambdaExpression Lambda(Type delegateType, Expression body, IEnumerable<ParameterExpression> parameters) { 440public static LambdaExpression Lambda(Type delegateType, Expression body, bool tailCall, IEnumerable<ParameterExpression> parameters) { 469Type[] typeArgs = new Type[paramCount + 1]; 484Type delegateType = DelegateHelpers.MakeDelegateType(typeArgs); 497public static LambdaExpression Lambda(Type delegateType, Expression body, string name, IEnumerable<ParameterExpression> parameters) { 513public static LambdaExpression Lambda(Type delegateType, Expression body, string name, bool tailCall, IEnumerable<ParameterExpression> parameters) { 520private static void ValidateLambdaArgs(Type delegateType, ref Expression body, ReadOnlyCollection<ParameterExpression> parameters) { 548Type pType = pi.ParameterType; 574private static bool ValidateTryGetFuncActionArgs(Type[] typeArgs) { 579var a = typeArgs[i]; 596public static Type GetFuncType(params Type[] typeArgs) { 599Type result = DelegateHelpers.GetFuncType(typeArgs); 613public static bool TryGetFuncType(Type[] typeArgs, out Type funcType) { 626public static Type GetActionType(params Type[] typeArgs) { 629Type result = DelegateHelpers.GetActionType(typeArgs); 642public static bool TryGetActionType(Type[] typeArgs, out Type actionType) { 660public static Type GetDelegateType(params Type[] typeArgs) {
Microsoft\Scripting\Ast\ListInitExpression.cs (1)
64public sealed override Type Type {
Microsoft\Scripting\Ast\LoopExpression.cs (1)
50public sealed override Type Type {
Microsoft\Scripting\Ast\MemberAssignment.cs (2)
73Type memberType; 95private static void ValidateSettableFieldOrPropertyMember(MemberInfo member, out Type memberType) {
Microsoft\Scripting\Ast\MemberExpression.cs (6)
116public sealed override Type Type { 132public sealed override Type Type { 192public static MemberExpression Field(Expression expression, Type type, string fieldName) { 237public static MemberExpression Property(Expression expression, Type type, string propertyName) { 292Type type = mi.DeclaringType; 314Type type = method.DeclaringType;
Microsoft\Scripting\Ast\MemberInitExpression.cs (1)
47public sealed override Type Type {
Microsoft\Scripting\Ast\MemberListBinding.cs (2)
95Type memberType; 130private static void ValidateListInitArgs(Type listType, ReadOnlyCollection<ElementInit> initializers) {
Microsoft\Scripting\Ast\MemberMemberBinding.cs (3)
93Type memberType; 129private static void ValidateGettableFieldOrPropertyMember(MemberInfo member, out Type memberType) { 145private static void ValidateMemberInitArgs(Type type, ReadOnlyCollection<MemberBinding> bindings) {
Microsoft\Scripting\Ast\MethodCallExpression.cs (16)
63public sealed override Type Type { 751public static MethodCallExpression Call(Expression instance, string methodName, Type[] typeArguments, params Expression[] arguments) { 774public static MethodCallExpression Call(Type type, string methodName, Type[] typeArguments, params Expression[] arguments) { 828private static void ValidateCallInstanceType(Type instanceType, MethodInfo method) { 890Type pType = pi.ParameterType; 915private static bool TryQuote(Type parameterType, ref Expression argument) { 919Type quoteable = typeof(LambdaExpression); 931private static MethodInfo FindMethod(Type type, string methodName, Type[] typeArgs, Expression[] args, BindingFlags flags) { 932MemberInfo[] members = type.FindMembers(MemberTypes.Method, flags, Type.FilterNameIgnoreCase, methodName); 953private static int FindBestMethod(IEnumerable<MethodInfo> methods, Type[] typeArgs, Expression[] args, out MethodInfo method) { 980Type argType = arg.Type; 981Type pType = parms[i].ParameterType; 993private static MethodInfo ApplyTypeArgs(MethodInfo m, Type[] typeArgs) { 1029Type arrayType = array.Type;
Microsoft\Scripting\Ast\NewArrayExpression.cs (11)
41private readonly Type _type; 43internal NewArrayExpression(Type type, ReadOnlyCollection<Expression> expressions) { 48internal static NewArrayExpression Make(ExpressionType nodeType, Type type, ReadOnlyCollection<Expression> expressions) { 60public sealed override Type Type { 97internal NewArrayInitExpression(Type type, ReadOnlyCollection<Expression> expressions) 112internal NewArrayBoundsExpression(Type type, ReadOnlyCollection<Expression> expressions) 136public static NewArrayExpression NewArrayInit(Type type, params Expression[] initializers) { 146public static NewArrayExpression NewArrayInit(Type type, IEnumerable<Expression> initializers) { 193public static NewArrayExpression NewArrayBounds(Type type, params Expression[] bounds) { 204public static NewArrayExpression NewArrayBounds(Type type, IEnumerable<Expression> bounds) { 225Type arrayType;
Microsoft\Scripting\Ast\NewExpression.cs (9)
55public override Type Type { 124private readonly Type _valueType; 126internal NewValueTypeExpression(Type type, ReadOnlyCollection<Expression> arguments, ReadOnlyCollection<MemberInfo> members) 131public sealed override Type Type { 209public static NewExpression New(Type type) { 216ci = type.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, System.Type.EmptyTypes, null); 247Type memberType; 255Type pType = pi.ParameterType; 298private static void ValidateAnonymousTypeMember(ref MemberInfo member, out Type memberType) {
Microsoft\Scripting\Ast\ParameterExpression.cs (12)
43internal static ParameterExpression Make(Type type, string name, bool isByRef) { 48switch (Type.GetTypeCode(type)) { 88public override Type Type { 134internal ByRefParameterExpression(Type type, string name) 148private readonly Type _paramType; 150internal TypedParameterExpression(Type type, string name) 155public sealed override Type Type { 169public sealed override Type Type { 181public static ParameterExpression Parameter(Type type) { 190public static ParameterExpression Variable(Type type) { 200public static ParameterExpression Parameter(Type type, string name) { 221public static ParameterExpression Variable(Type type, string name) {
Microsoft\Scripting\Ast\RuntimeVariablesExpression.cs (1)
47public sealed override Type Type {
Microsoft\Scripting\Ast\SwitchExpression.cs (8)
39private readonly Type _type; 45internal SwitchExpression(Type type, Expression switchValue, Expression defaultBody, MethodInfo comparison, ReadOnlyCollection<SwitchCase> cases) { 57public sealed override Type Type { 175public static SwitchExpression Switch(Type type, Expression switchValue, Expression defaultBody, MethodInfo comparison, params SwitchCase[] cases) { 200public static SwitchExpression Switch(Type type, Expression switchValue, Expression defaultBody, MethodInfo comparison, IEnumerable<SwitchCase> cases) { 209Type resultType = type ?? caseList[0].Body.Type; 235Type rightOperandType = c.TestValues[i].Type; 290private static void ValidateSwitchCaseType(Expression @case, bool customType, Type resultType, string parameterName) {
Microsoft\Scripting\Ast\TryExpression.cs (5)
45private readonly Type _type; 51internal TryExpression(Type type, Expression body, Expression @finally, Expression fault, ReadOnlyCollection<CatchBlock> handlers) { 63public sealed override Type Type { 180public static TryExpression MakeTry(Type type, Expression body, Expression @finally, Expression fault, IEnumerable<CatchBlock> handlers) { 202private static void ValidateTryAndCatchHaveSameType(Type type, Expression tryBody, ReadOnlyCollection<CatchBlock> handlers) {
Microsoft\Scripting\Ast\TypeBinaryExpression.cs (9)
37private readonly Type _typeOperand; 40internal TypeBinaryExpression(Expression expression, Type typeOperand, ExpressionType nodeKind) { 50public sealed override Type Type { 73public Type TypeOperand { 80Type cType = Expression.Type; 135var temp = Expression.Parameter(typeof(Type)); 146Expression.Constant(_typeOperand.GetNonNullableType(), typeof(Type)) 195public static TypeBinaryExpression TypeIs(Expression expression, Type type) { 209public static TypeBinaryExpression TypeEqual(Expression expression, Type type) {
Microsoft\Scripting\Ast\TypeUtils.cs (85)
35internal static Type GetNonNullableType(this Type type) { 42internal static Type GetNullableType(Type type) { 50internal static bool IsNullableType(this Type type) { 54internal static bool IsBool(Type type) { 58internal static bool IsNumeric(Type type) { 61switch (Type.GetTypeCode(type)) { 79internal static bool IsInteger(Type type) { 84switch (Type.GetTypeCode(type)) { 100internal static bool IsArithmetic(Type type) { 103switch (Type.GetTypeCode(type)) { 118internal static bool IsUnsignedInt(Type type) { 121switch (Type.GetTypeCode(type)) { 131internal static bool IsIntegerOrBool(Type type) { 134switch (Type.GetTypeCode(type)) { 150internal static bool AreEquivalent(Type t1, Type t2) 159internal static bool AreReferenceAssignable(Type dest, Type src) { 171internal static bool IsValidInstanceType(MemberInfo member, Type instanceType) { 172Type targetType = member.DeclaringType; 189foreach (Type interfaceType in instanceType.GetInterfaces()) { 199internal static bool HasIdentityPrimitiveOrNullableConversion(Type source, Type dest) { 226internal static bool HasReferenceConversion(Type source, Type dest) { 236Type nnSourceType = TypeUtils.GetNonNullableType(source); 237Type nnDestType = TypeUtils.GetNonNullableType(dest); 262private static bool IsCovariant(Type t) 268private static bool IsContravariant(Type t) 274private static bool IsInvariant(Type t) 280private static bool IsDelegate(Type t) 286internal static bool IsLegalExplicitVariantDelegateConversion(Type source, Type dest) 303Type genericDelegate = source.GetGenericTypeDefinition(); 308Type[] genericParameters = genericDelegate.GetGenericArguments(); 309Type[] sourceArguments = source.GetGenericArguments(); 310Type[] destArguments = dest.GetGenericArguments(); 320Type sourceArgument = sourceArguments[iParam]; 321Type destArgument = destArguments[iParam]; 331Type genericParameter = genericParameters[iParam]; 358internal static bool IsConvertible(Type type) { 363switch (Type.GetTypeCode(type)) { 382internal static bool HasReferenceEquality(Type left, Type right) { 398internal static bool HasBuiltInEqualityOperator(Type left, Type right) { 424Type nnType = GetNonNullableType(left); 431internal static bool IsImplicitlyConvertible(Type source, Type destination) { 440internal static MethodInfo GetUserDefinedCoercionMethod(Type convertFrom, Type convertToType, bool implicitOnly) { 442Type nnExprType = TypeUtils.GetNonNullableType(convertFrom); 443Type nnConvType = TypeUtils.GetNonNullableType(convertToType); 469internal static MethodInfo FindConversionOperator(MethodInfo[] methods, Type typeFrom, Type typeTo, bool implicitOnly) { 487private static bool IsImplicitNumericConversion(Type source, Type destination) { 488TypeCode tcSource = Type.GetTypeCode(source); 489TypeCode tcDest = Type.GetTypeCode(destination); 586private static bool IsImplicitReferenceConversion(Type source, Type destination) { 590private static bool IsImplicitBoxingConversion(Type source, Type destination) { 598private static bool IsImplicitNullableConversion(Type source, Type destination) { 604internal static bool IsSameOrSubclass(Type type, Type subType) { 608internal static void ValidateType(Type type) { 618internal static Type FindGenericType(Type definition, Type type) { 624foreach (Type itype in type.GetInterfaces()) { 625Type found = FindGenericType(definition, itype); 635internal static bool IsUnsigned(Type type) { 637switch (Type.GetTypeCode(type)) { 649internal static bool IsFloatingPoint(Type type) { 651switch (Type.GetTypeCode(type)) { 669internal static MethodInfo GetBooleanOperator(Type type, string name) { 671MethodInfo result = type.GetMethodValidated(name, AnyStatic, null, new Type[] { type }, null); 680internal static Type GetNonRefType(this Type type) { 694internal static bool CanCache(this Type t) { 709foreach (Type g in t.GetGenericArguments()) {
Microsoft\Scripting\Ast\UnaryExpression.cs (20)
42private readonly Type _type; 44internal UnaryExpression(ExpressionType nodeType, Expression expression, Type type, MethodInfo method) { 55public sealed override Type Type { 302public static UnaryExpression MakeUnary(ExpressionType unaryType, Expression operand, Type type) { 317public static UnaryExpression MakeUnary(ExpressionType unaryType, Expression operand, Type type, MethodInfo method) { 374Type operandType = operand.Type; 375Type[] types = new Type[] { operandType }; 376Type nnOperandType = TypeUtils.GetNonNullableType(operandType); 413private static UnaryExpression GetUserDefinedCoercionOrThrow(ExpressionType coercionType, Expression expression, Type convertToType) { 421private static UnaryExpression GetUserDefinedCoercion(ExpressionType coercionType, Expression expression, Type convertToType) { 430private static UnaryExpression GetMethodBasedCoercionOperator(ExpressionType unaryType, Expression operand, Type convertToType, MethodInfo method) { 661public static UnaryExpression TypeAs(Expression expression, Type type) { 678public static UnaryExpression Unbox(Expression expression, Type type) { 696public static UnaryExpression Convert(Expression expression, Type type) { 711public static UnaryExpression Convert(Expression expression, Type type, MethodInfo method) { 733public static UnaryExpression ConvertChecked(Expression expression, Type type) { 748public static UnaryExpression ConvertChecked(Expression expression, Type type, MethodInfo method) { 811public static UnaryExpression Rethrow(Type type) { 830public static UnaryExpression Throw(Expression value, Type type) {
Microsoft\Scripting\Compiler\AssemblyGen.cs (2)
69new CustomAttributeBuilder(typeof(SecurityTransparentAttribute).GetConstructor(Type.EmptyTypes), new object[0]) 103private TypeBuilder DefineType(string name, Type parent, TypeAttributes attr) {
Microsoft\Scripting\Compiler\BoundConstants.cs (5)
47internal readonly Type Type; 49internal TypedConstant(object value, Type type) { 98internal void AddReference(object value, Type type) { 109internal void EmitConstant(LambdaCompiler lc, object value, Type type) { 177private void EmitConstantFromArray(LambdaCompiler lc, object value, Type type) {
Microsoft\Scripting\Compiler\CompilerScope.cs (5)
208lc.IL.Emit(OpCodes.Call, typeof(RuntimeOps).GetMethod("CreateRuntimeVariables", Type.EmptyTypes)); 312Type boxType = typeof(StrongBox<>).MakeGenericType(v.Type); 318lc.IL.Emit(OpCodes.Newobj, boxType.GetConstructor(new Type[] { v.Type })); 322lc.IL.Emit(OpCodes.Newobj, boxType.GetConstructor(new Type[] { v.Type })); 330lc.IL.Emit(OpCodes.Newobj, boxType.GetConstructor(Type.EmptyTypes));
Microsoft\Scripting\Compiler\CompilerScope.Storage.cs (2)
100private readonly Type _boxType; 146private readonly Type _boxType;
Microsoft\Scripting\Compiler\ConstantCheck.cs (4)
63private static AnalyzeTypeIsResult AnalyzeTypeIs(Expression operand, Type testType) { 64Type operandType = operand.Type; 77Type nnOperandType = operandType.GetNonNullableType(); 78Type nnTestType = testType.GetNonNullableType();
Microsoft\Scripting\Compiler\DelegateHelpers.cs (6)
30private static readonly Type[] _DelegateCtorSignature = new Type[] { typeof(object), typeof(IntPtr) }; 32private static Type MakeNewCustomDelegate(Type[] types) { 33Type returnType = types[types.Length - 1]; 34Type[] parameters = types.RemoveLast();
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (31)
45public Type DelegateType; 46public Dictionary<Type, TypeInfo> TypeChain; 48public Type MakeDelegateType(Type retType, params Expression[] args) { 52public Type MakeDelegateType(Type retType, IList<Expression> args) { 55Type[] paramTypes = new Type[args.Count + 2]; 72internal static Type MakeDelegateType(Type[] types) { 84curTypeInfo.DelegateType = MakeNewDelegate((Type[])types.Clone()); 97internal static Type MakeCallSiteDelegate(ReadOnlyCollection<Expression> types, Type returnType) { 127internal static Type MakeDeferredSiteDelegate(DynamicMetaObject[] args, Type returnType) { 137Type paramType = mo.Expression.Type; 151Type[] paramTypes = new Type[args.Length + 2]; 156Type paramType = mo.Expression.Type; 175internal static TypeInfo NextTypeInfo(Type initialArg) { 181internal static TypeInfo GetNextTypeInfo(Type initialArg, TypeInfo curTypeInfo) { 187private static TypeInfo NextTypeInfo(Type initialArg, TypeInfo curTypeInfo) { 188Type lookingUp = initialArg; 191curTypeInfo.TypeChain = new Dictionary<Type, TypeInfo>(); 208private static Type MakeNewDelegate(Type[] types) { 217Type result; 227internal static Type GetFuncType(Type[] types) { 260internal static Type GetActionType(Type[] types) {
Microsoft\Scripting\Compiler\ILGen.cs (66)
100internal static void EmitLoadValueIndirect(this ILGenerator il, Type type) { 134internal static void EmitStoreValueIndirect(this ILGenerator il, Type type) { 162internal static void EmitLoadElement(this ILGenerator il, Type type) { 170switch (Type.GetTypeCode(type)) { 211internal static void EmitStoreElement(this ILGenerator il, Type type) { 218switch (Type.GetTypeCode(type)) { 253internal static void EmitType(this ILGenerator il, Type type) { 257il.Emit(OpCodes.Call, typeof(Type).GetMethod("GetTypeFromHandle")); 306internal static void EmitNew(this ILGenerator il, Type type, Type[] paramTypes) { 436internal static bool CanEmitConstant(object value, Type type) { 441Type t = value as Type; 455private static bool CanEmitILConstant(Type type) { 456switch (Type.GetTypeCode(type)) { 485internal static void EmitConstant(this ILGenerator il, object value, Type type) { 500Type t = value as Type; 503if (type != typeof(Type)) { 512Type dt = mb.DeclaringType; 515il.Emit(OpCodes.Call, typeof(MethodBase).GetMethod("GetMethodFromHandle", new Type[] { typeof(RuntimeMethodHandle), typeof(RuntimeTypeHandle) })); 517il.Emit(OpCodes.Call, typeof(MethodBase).GetMethod("GetMethodFromHandle", new Type[] { typeof(RuntimeMethodHandle) })); 528internal static bool ShouldLdtoken(Type t) { 538Type dt = mb.DeclaringType; 543private static bool TryEmitILConstant(this ILGenerator il, object value, Type type) { 544switch (Type.GetTypeCode(type)) { 596internal static void EmitConvertToType(this ILGenerator il, Type typeFrom, Type typeTo, bool isChecked) { 608Type nnExprType = TypeUtils.GetNonNullableType(typeFrom); 609Type nnType = TypeUtils.GetNonNullableType(typeTo); 637private static void EmitCastToType(this ILGenerator il, Type typeFrom, Type typeTo) { 654private static void EmitNumericConversion(this ILGenerator il, Type typeFrom, Type typeTo, bool isChecked) { 666TypeCode tc = Type.GetTypeCode(typeTo); 772private static void EmitNullableToNullableConversion(this ILGenerator il, Type typeFrom, Type typeTo, bool isChecked) { 789Type nnTypeFrom = TypeUtils.GetNonNullableType(typeFrom); 790Type nnTypeTo = TypeUtils.GetNonNullableType(typeTo); 793ConstructorInfo ci = typeTo.GetConstructor(new Type[] { nnTypeTo }); 807private static void EmitNonNullableToNullableConversion(this ILGenerator il, Type typeFrom, Type typeTo, bool isChecked) { 812Type nnTypeTo = TypeUtils.GetNonNullableType(typeTo); 814ConstructorInfo ci = typeTo.GetConstructor(new Type[] { nnTypeTo }); 821private static void EmitNullableToNonNullableConversion(this ILGenerator il, Type typeFrom, Type typeTo, bool isChecked) { 831private static void EmitNullableToNonNullableStructConversion(this ILGenerator il, Type typeFrom, Type typeTo, bool isChecked) { 840Type nnTypeFrom = TypeUtils.GetNonNullableType(typeFrom); 845private static void EmitNullableToReferenceConversion(this ILGenerator il, Type typeFrom) { 853private static void EmitNullableConversion(this ILGenerator il, Type typeFrom, Type typeTo, bool isChecked) { 866internal static void EmitHasValue(this ILGenerator il, Type nullableType) { 873internal static void EmitGetValue(this ILGenerator il, Type nullableType) { 880internal static void EmitGetValueOrDefault(this ILGenerator il, Type nullableType) { 881MethodInfo mi = nullableType.GetMethod("GetValueOrDefault", System.Type.EmptyTypes); 911internal static void EmitArray(this ILGenerator il, Type elementType, int count, Action<int> emit) { 933internal static void EmitArray(this ILGenerator il, Type arrayType) { 941Type[] types = new Type[rank]; 958il.EmitNew(typeof(Decimal).GetConstructor(new Type[] { typeof(int) })); 962il.EmitNew(typeof(Decimal).GetConstructor(new Type[] { typeof(long) })); 978il.EmitNew(typeof(decimal).GetConstructor(new Type[] { typeof(int), typeof(int), typeof(int), typeof(bool), typeof(byte) })); 985internal static void EmitDefault(this ILGenerator il, Type type) { 986switch (Type.GetTypeCode(type)) { 1039il.Emit(OpCodes.Newobj, typeof(Decimal).GetConstructor(new Type[] { typeof(int) }));
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (16)
29private void EmitAddress(Expression node, Type type) { 37private void EmitAddress(Expression node, Type type, CompilationFlags flags) { 78private void AddressOf(BinaryExpression node, Type type) { 84Type rightType = node.Right.Type; 92Type indexType = TypeUtils.GetNonNullableType(rightType); 102private void AddressOf(ParameterExpression node, Type type) { 115private void AddressOf(MemberExpression node, Type type) { 118Type objectType = null; 129private void EmitMemberAddress(MemberInfo member, Type objectType) { 163private void AddressOf(MethodCallExpression node, Type type) { 181private void AddressOf(IndexExpression node, Type type) { 197private void AddressOf(UnaryExpression node, Type type) { 206private void EmitExpressionAddress(Expression node, Type type) { 220private WriteBack EmitAddressWriteBack(Expression node, Type type) { 250Type instanceType = null; 288Type instanceType = null;
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (23)
105Type resultType = null; 136private void EmitBinaryOperator(ExpressionType op, Type leftType, Type rightType, Type resultType, bool liftedToNull) { 161private void EmitUnliftedBinaryOp(ExpressionType op, Type leftType, Type rightType) { 303private void EmitConvertArithmeticResult(ExpressionType op, Type resultType) { 306switch (Type.GetTypeCode(resultType)) { 322private void EmitUnliftedEquality(ExpressionType op, Type type) { 336private void EmitLiftedBinaryOp(ExpressionType op, Type leftType, Type rightType, Type resultType, bool liftedToNull) { 382private void EmitLiftedRelational(ExpressionType op, Type leftType, Type rightType, Type resultType, bool liftedToNull) { 492private void EmitLiftedBinaryArithmetic(ExpressionType op, Type leftType, Type rightType, Type resultType) { 543ConstructorInfo ci = resultType.GetConstructor(new Type[] { TypeUtils.GetNonNullableType(resultType) }); 563Type type = typeof(bool?); 616ConstructorInfo ci = type.GetConstructor(new Type[] { typeof(bool) }); 635Type type = typeof(bool?); 688ConstructorInfo ci = type.GetConstructor(new Type[] { typeof(bool) });
Microsoft\Scripting\Compiler\LambdaCompiler.cs (7)
76private readonly KeyedQueue<Type, LocalBuilder> _freeLocals = new KeyedQueue<Type, LocalBuilder>(); 88Type[] parameterTypes = GetParameterTypes(lambda).AddFirst(typeof(Closure)); 124Type[] paramTypes = GetParameterTypes(lambda); 246internal LocalBuilder GetLocal(Type type) { 264internal LocalBuilder GetNamedLocal(Type type, ParameterExpression variable) { 303private FieldBuilder CreateStaticField(string name, Type type) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (28)
129private void EmitExpressionAsType(Expression node, Type type, CompilationFlags flags) { 182expr = Expression.Call(expr, expr.Type.GetMethod("Compile", new Type[0])); 222Type objectType = null; 242Type objectType = null; 272private void EmitGetIndexCall(IndexExpression node, Type objectType) { 286private void EmitSetIndexCall(IndexExpression node, Type objectType) { 320Type objectType = null; 334private void EmitMethodCall(MethodInfo mi, IArgumentProvider args, Type objectType) { 339private void EmitMethodCall(MethodInfo mi, IArgumentProvider args, Type objectType, CompilationFlags flags) { 377private void EmitCall(Type objectType, MethodInfo method) { 440Type type = parameter.ParameterType; 470private void EmitConstant(object value, Type type) { 488Type siteType = site.GetType(); 540Type type = node.Expression.Type; 653Type objectType = null; 690Type instanceType = null; 699private void EmitMemberGet(MemberInfo member, Type objectType) { 717private void EmitInstance(Expression instance, Type type) { 781private void EmitBinding(MemberBinding binding, Type objectType) { 797private void EmitMemberAssignment(MemberAssignment binding, Type objectType) { 813Type type = GetMemberType(binding.Member); 826Type type = GetMemberType(binding.Member); 854private void EmitMemberInit(ReadOnlyCollection<MemberBinding> bindings, bool keepOnStack, Type objectType) { 887private void EmitListInit(ReadOnlyCollection<ElementInit> initializers, bool keepOnStack, Type objectType) { 910private static Type GetMemberType(MemberInfo member) { 937private void EmitLift(ExpressionType nodeType, Type resultType, MethodCallExpression mc, ParameterExpression[] paramList, Expression[] argList) { 978ConstructorInfo ci = resultType.GetConstructor(new Type[] { mc.Type }); 1069ConstructorInfo ci = resultType.GetConstructor(new Type[] { mc.Type });
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (5)
79_ilg.EmitNew(typeof(Closure).GetConstructor(new Type[] { typeof(object[]), typeof(object[]) })); 89Type delegateType = inner._lambda.Type; 104_ilg.Emit(OpCodes.Callvirt, typeof(MethodInfo).GetMethod("CreateDelegate", new Type[] { typeof(Type), typeof(object) })); 141private static Type[] GetParameterTypes(LambdaExpression lambda) {
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (5)
122Type nnLeftType = TypeUtils.GetNonNullableType(b.Left.Type); 223Type type = typeof(bool?); 265ConstructorInfo ci = type.GetConstructor(new Type[] { typeof(bool) }); 339Type type = typeof(bool?); 381ConstructorInfo ci = type.GetConstructor(new Type[] { typeof(bool) });
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (8)
211private static Type GetTestValueType(SwitchExpression node) { 219Type result = node.Comparison.GetParametersCached()[1].ParameterType.GetNonRefType(); 244internal readonly Type Type; 254var code = Type.GetTypeCode(Type); 300private static bool CanOptimizeSwitchType(Type valueType) { 302switch (Type.GetTypeCode(valueType)) { 327Type type = node.SwitchValue.Type; 715Type tryType = expr.Type;
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (10)
97private void EmitUnaryOperator(ExpressionType op, Type operandType, Type resultType) { 125Type nnOperandType = TypeUtils.GetNonNullableType(operandType); 129ConstructorInfo ci = resultType.GetConstructor(new Type[] { typeof(bool) }); 160Type nnOperandType = TypeUtils.GetNonNullableType(resultType); 164ConstructorInfo ci = resultType.GetConstructor(new Type[] { nnOperandType }); 245private void EmitConstantOne(Type type) { 246switch (Type.GetTypeCode(type)) { 304Type paramType = pis[0].ParameterType; 340Type resultType = TypeUtils.GetNullableType(mc.Type);
Microsoft\Scripting\Compiler\StackSpiller.cs (2)
446Type element = node.Type.GetElementType(); 981if (instance != null && instance.Type.IsValueType && Type.GetTypeCode(instance.Type) == TypeCode.Object) {
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (2)
55internal ParameterExpression Temp(Type type) { 248private ParameterExpression MakeTemp(Type type) {
Microsoft\Scripting\Utils\TypeExtensions.cs (6)
29internal static Delegate CreateDelegate(this MethodInfo methodInfo, Type delegateType, object target) { 40internal static Type GetReturnType(this MethodBase mi) { 52Type t = method.DeclaringType; 73this Type type, 77Type[] types, 95private static bool MatchesArgumentTypes(this MethodInfo mi, Type[] argTypes) {
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (1)
1306public static Array ConvertToArray(UnsafeNativeMethods.EvtVariant val, Type objType, int size) {
System\IO\Pipes\PipeSecurity.cs (3)
453public override Type AccessRightType { 459public override Type AccessRuleType { 465public override Type AuditRuleType {
System\Linq\IQueryable.cs (2)
17Type ElementType { get; } 84Type enumType = TypeHelper.FindGenericType(typeof(IEnumerable<>), source.GetType());
System\Linq\SequenceQuery.cs (25)
20internal static IQueryable Create(Type elementType, IEnumerable sequence){ 21Type seqType = typeof(EnumerableQuery<>).MakeGenericType(elementType); 29internal static IQueryable Create(Type elementType, Expression expression) { 30Type seqType = typeof(EnumerableQuery<>).MakeGenericType(elementType); 73Type IQueryable.ElementType { 80Type iqType = TypeHelper.FindGenericType(typeof(IQueryable<>), expression.Type); 104Type execType = typeof(EnumerableExecutor<>).MakeGenericType(expression.Type); 151Type execType = typeof(EnumerableExecutor<>).MakeGenericType(expression.Type); 198Type[] typeArgs = (m.Method.IsGenericMethod) ? m.Method.GetGenericArguments() : null; 246private Expression FixupQuotedExpression(Type type, Expression expression) { 256Type strippedType = StripExpression(expr.Type); 258Type elementType = type.GetElementType(); 274private static Type GetPublicType(Type t) 285foreach (Type iType in t.GetInterfaces()) 300Type t = GetPublicType(sq.Enumerable.GetType()); 313static MethodInfo FindEnumerableMethod(string name, ReadOnlyCollection<Expression> args, params Type[] typeArgs) { 325internal static MethodInfo FindMethod(Type type, string name, ReadOnlyCollection<Expression> args, Type[] typeArgs, BindingFlags flags) { 337private static bool ArgsMatch(MethodInfo m, ReadOnlyCollection<Expression> args, Type[] typeArgs) { 356Type parameterType = mParams[i].ParameterType; 375private static Type StripExpression(Type type) { 377Type tmp = isArray ? type.GetElementType() : type; 378Type eType = TypeHelper.FindGenericType(typeof(Expression<>), tmp);
System\Linq\TypeHelper.cs (14)
7internal static bool IsEnumerableType(Type enumerableType) { 10internal static bool IsKindOfGeneric(Type type, Type definition) { 13internal static Type GetElementType(Type enumerableType) { 14Type ienumType = FindGenericType(typeof(IEnumerable<>), enumerableType); 19internal static Type FindGenericType(Type definition, Type type) { 24foreach(Type itype in type.GetInterfaces()) { 25Type found = FindGenericType(definition, itype); 34internal static bool IsNullableType(Type type) { 37internal static Type GetNonNullableType(Type type) {
System\Management\Automation\UMPAttributes.cs (12)
230public Type Schema 235private Type _schema; 266public Type Schema 271private Type _schema; 301public Type Schema 306private Type _schema; 323public Type Schema 328private Type _schema; 361public Type Schema 366private Type _schema; 440public Type Schema 446private Type _schema;
System\Runtime\InteropServices\ComAwareEventInfo.cs (6)
15public ComAwareEventInfo(Type type, string eventName) { 83public override Type DeclaringType { 87public override object[] GetCustomAttributes(Type attributeType, bool inherit) { 95public override bool IsDefined(Type attributeType, bool inherit) { 103public override Type ReflectedType { 123Type sourceItf = ((ComEventInterfaceAttribute)comEventInterfaces[0]).SourceInterface;
System.Data (1682)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (3)
19public static string GetDisplayName(Type type, bool fullName) 70private Type[] generics = null; 74public GenericsMatchEvaluator(Type[] generics, bool fullName)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderReader.cs (2)
214Type underlyingType = this.underlyingReader.Type.UnderlyingType; 215Type targetType = underlyingType.IsGenericType ? underlyingType.GetGenericArguments()[0] : null;
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderXamlMembers.cs (1)
18internal static XamlMember ActivityTemplateFactoryImplementationMemberForReader(Type activityTemplateFactoryType, XamlSchemaContext schemaContext)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeConverter.cs (3)
37public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 47public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 52public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DefaultValueAttributeInfo.cs (2)
28Type defaultValueAttributeType = typeof(DefaultValueAttribute); 29ConstructorInfo constructor = defaultValueAttributeType.GetConstructor(new Type[] { typeof(object) });
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignerAttributeInfo.cs (4)
17return new List<object>() { Type.GetType(attribute.DesignerTypeName) }; 22Type designerAttributeType = typeof(DesignerAttribute); 23ConstructorInfo constructor = designerAttributeType.GetConstructor(new Type[] { typeof(Type) });
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\EditorAttributeInfo.cs (6)
17return new List<object>() { Type.GetType(attribute.EditorTypeName), Type.GetType(attribute.EditorBaseTypeName) }; 22Type editorAttributeType = typeof(EditorAttribute); 23ConstructorInfo constructor = editorAttributeType.GetConstructor(new Type[] { typeof(Type), typeof(Type) });
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ImportAttributeInfo.cs (6)
51return typeof(ImportAttribute).GetConstructor(Type.EmptyTypes); 60nameConstructor = typeof(ImportAttribute).GetConstructor(new Type[] { typeof(string) }); 72nameAndTypeConstructor = typeof(ImportAttribute).GetConstructor(new Type[] { typeof(string), typeof(Type) }); 84typeConstructor = typeof(ImportAttribute).GetConstructor(new Type[] { typeof(Type) });
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ImportManyAttributeInfo.cs (6)
54return typeof(ImportManyAttribute).GetConstructor(Type.EmptyTypes); 63nameConstructor = typeof(ImportManyAttribute).GetConstructor(new Type[] { typeof(string) }); 75nameAndTypeConstructor = typeof(ImportManyAttribute).GetConstructor(new Type[] { typeof(Type) }); 87typeConstructor = typeof(ImportManyAttribute).GetConstructor(new Type[] { typeof(string), typeof(Type) });
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\MultiTargetingTypeResolver.cs (2)
17public static ResolverResult Resolve(MultiTargetingSupportService multiTargetingService, Type type) 29Type reflectionType = multiTargetingService.GetReflectionType(type);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverCache.cs (4)
14private Dictionary<Type, WeakReference> cache; 18this.cache = new Dictionary<Type, WeakReference>(); 21public void Update(Type type, ResolverResult result) 36public ResolverResult Lookup(Type type)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlSchemaContext.cs (9)
28Dictionary<Type, XamlType> customXamlTypes; 34private static List<Type> supportedTypes; 35private static List<Type> conversionRequiredTypes; 40supportedTypes = new List<Type>(); 44conversionRequiredTypes = new List<Type>(); 145public override XamlType GetXamlType(Type type) 171this.customXamlTypes = new Dictionary<Type, XamlType>(); 232XamlType GetCustomType(Type type) 261XamlType GetCustomMefType(Type type)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlTypeWithExtraPropertiesRemoved.cs (1)
18public XamlTypeWithExtraPropertiesRemoved(Type underlyingType, XamlSchemaContext schemaContext, ICollection<string> propertiesToBeRemoved)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\VisualStudio\Activities\WorkflowDesignerExtensionManager.cs (6)
76Type hostServiceType = Type.GetType(extensionTypeAssemblyQualifiedName); 100Type hostServiceType = Type.GetType(extensionTypeAssemblyQualifiedName); 124private object GetExtension(Type hostServiceType) 129private IEnumerable<object> GetExtensions(Type hostServiceType)
cdf\src\NetFx40\Tools\System.Activities.Core.Presentation\System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (13)
36typeof(Type), 90Type CaseType 92get { return (Type)GetValue(CaseTypeProperty); } 120static List<Type> defaultTypes; 121static List<Type> DefaultTypes 127defaultTypes = new List<Type> 165Type modelItemType = this.ModelItem.ItemType; 166Type[] types = modelItemType.GetGenericArguments(); 302Type type = typeof(Switch<>); 409Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { this.CaseType, typeof(Activity) }); 426Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { this.CaseType, typeof(Activity) });
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateInfo.cs (1)
25public Type DelegateType { get; private set; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (3)
17public static ActivityDelegateMetadata GetMetadata(Type type) 59public static bool HasActivityDelegate(Type type) 82private static List<PropertyInfo> GetPropertiesByHeuristics(Type activityType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\ContextItem.cs (1)
33public abstract Type ItemType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\ContextItemManager.cs (4)
56public abstract bool Contains(Type itemType); 85public abstract ContextItem GetValue(Type itemType); 138public abstract void Subscribe(Type contextItemType, SubscribeContextCallback callback); 180public abstract void Unsubscribe(Type contextItemType, SubscribeContextCallback callback);
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\manifestimages.cs (2)
41public static object GetImage(Type type, Size desiredSize) 80Type type,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeData.cs (3)
23private Type _attributeType; 32internal AttributeData(Type attributeType) 41internal Type AttributeType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (13)
105internal static IEnumerable<object> GetMetadataStoreAttributes(Type type, string memberName, AttributeTable[] tables) { 157internal static AttributeData GetAttributeData(Type attributeType) 184Type type = member as Type; 190Type targetType = member.DeclaringType.BaseType; 216private static MemberInfo GetBaseConstructorInfo(MemberInfo info, Type targetType) 224private static MemberInfo GetBaseMethodInfo(MemberInfo info, Type targetType) 234private static MemberInfo GetBasePropertyInfo(MemberInfo info, Type targetType) 244private static MemberInfo GetBaseEventInfo(MemberInfo info, Type targetType) 254private static Type[] ToTypeArray(ParameterInfo[] parameterInfo) { 260Type[] parameterTypes = new Type[parameterInfo.Length]; 270private delegate MemberInfo GetBaseMemberCallback(MemberInfo member, Type targetType);
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\Automation\TextFormatConverter.cs (2)
38public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 44public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (4)
36public static bool IsConcreteWithDefaultCtor(Type type) 48ConstructorInfo defaultCtor = type.GetConstructor(Type.EmptyTypes); 95public static bool IsNullableEnumType(Type t) 99Type[] genericArgs = t.GetGenericArguments();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (3)
21DependencyProperty.Register("FlagType", typeof(Type), typeof(FlagEditor), new PropertyMetadata(null)); 23public Type FlagType 25get { return (Type)GetValue(FlagTypeProperty); }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (8)
20typeof(Type), 24public Type FlagType 26get { return (Type)GetValue(FlagTypeProperty); } 38Type flagType = args.NewValue as Type; 79public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 93public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 111Type flagType = panel.FlagType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (5)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 26public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 28Type flagType = parameter as Type; 63static Dictionary<string, object> GenerateFlagDictionary(Type flagType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\ImageSourceToImageConverter.cs (2)
26public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 41public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\NewItemFactoryTypeModelToDisplayNameConverter.cs (2)
40public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 57public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\newitemfactorytypemodeltotypenameconverter.cs (2)
20public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 36public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\NonZeroToBoolConverter.cs (2)
34public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 44public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToDisplayNameConverter.cs (2)
45public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 102public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\PropertyValueToStandardValuesConverter.cs (2)
31public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 46public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\RTLValueConverter.cs (2)
27public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { 53public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (6)
456Type containerValueType = ((ModelPropertyEntryBase)containedProperty).CommonValueType; 458Type defaultItemType = GetDefaultItemType(property); 525private static Type GetDefaultItemType(ModelProperty property) 532Type propertyType = property.PropertyType; 615public override object CreateInstance(Type type) 622public override string GetDisplayName(Type type)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\ValueToToolTipConverter.cs (2)
22public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { 31public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (20)
35private static Dictionary<Type, string> _defaultPropertyCache = new Dictionary<Type, string>(); 125Type genericType = property.PropertyType.GetGenericTypeDefinition(); 151Type genericType = property.Parent.ItemType.GetGenericTypeDefinition(); 183public static IEnumerable<Type> GetCategoryEditorTypes(Type ownerType) 186List<Type> editorTypes = null; 192Type editorType = ExtensibilityMetadataHelper.GetCategoryEditorType(editorAttribute, MessageLogger.Instance); 200editorTypes = new List<Type>(); 252public static string GetDefaultProperty(Type type) 352Type propertyType = properties[0].PropertyType; 464foreach (Type type in newItemTypesAttribute.Types) 500foreach (Type type in attribute.Types) 569public static object SafeCreateInstance(Type type) 616Type valueType = valueItem.ItemType; 715private static bool IsStaticExtension(Type type) 834Type typeConverterType = Type.GetType(typeConverterAttribute.ConverterTypeName); 860public static T GetAttribute<T>(Type type) where T : Attribute 870public static IEnumerable<T> GetAttributes<T>(Type type) where T : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\AppendSuffixConverter.cs (2)
43public object ConvertBack(object o, Type targetType, object value, CultureInfo culture) 49public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\BoolToDoubleConverter.cs (2)
60public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 66public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\BoolToVisibilityCollpasedConverter.cs (2)
33public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 39public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\BoolToVisibilityHiddenConverter.cs (2)
34public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 45public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ComposingConverter.cs (2)
27public object Convert(object o, Type targetType, object parameter, CultureInfo culture) 36public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\EqualsConverter.cs (2)
18public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 30public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\IntegerToVisibilityConverter.cs (2)
42public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 48public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\IsNullConverter.cs (2)
21public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 26public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\NotConverter.cs (2)
23public object Convert(object o, Type targetType, object parameter, CultureInfo culture) 28public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\NullToBoolConverter.cs (2)
27public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 33public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\SwitchConverter.cs (5)
47public object Convert(object o, Type targetType, object parameter, CultureInfo culture) 60public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 99static readonly DependencyProperty TypeProperty = DependencyProperty.Register("Type", typeof(Type), typeof(TypeReference)); 101public Type Type 103get { return (Type)this.GetValue(TypeProperty); }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ValueConverters.cs (2)
75public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) 85public object Convert(object o, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\VisibilityOrConverter.cs (2)
22public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 35public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (1)
194public void RemoveCategoryEditor(Type categoryEditor)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (5)
41Type editorType = Type.GetType(editorAttribute.EditorTypeName); 69public static Type GetCategoryEditorType(EditorAttribute attribute, IMessageLogger exceptionLogger) 73Type editorType = Type.GetType(attribute.EditorTypeName);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\NewItemFactoryTypeModel.cs (4)
16private Type type; 21public NewItemFactoryTypeModel(Type type, NewItemFactory factory) 29public NewItemFactoryTypeModel(Type type, NewItemFactory factory, IMessageLogger exceptionLogger) : this(type, factory) 39public Type Type
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ValueToIconConverter.cs (2)
31public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 46public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Metadata\PropertyInspectorMetadata.cs (1)
63private static void MakeBasic(AttributeTableBuilder builder, Type owningType, DependencyProperty property)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntry.cs (11)
116public override Type PropertyType 223public override Type CommonValueType 336internal IEnumerable<Type> CategoryEditorTypes 731private static readonly Type NoCommonValueType = typeof(CachedValues); // some private type that we can use as a marker 732private static readonly List<Type> NoCategoryEditorTypes = new List<Type>(); 755private Type _commonValueType; 757private IEnumerable<Type> _categoryEditorTypes; 1204public Type CommonValueType 1215Type valueType = value.GetType(); 1260public IEnumerable<Type> CategoryEditorTypes
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\Internal\PropertyEditing\Model\ModelPropertyIndexer.cs (2)
133public override Type PropertyType 191public override Type CommonValueType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelUtilities.cs (10)
19public static Type GetPropertyType(IEnumerable<ModelProperty> propertySet) 175public static bool ImplementsIList(Type type) 182Type[] interfaceTypes = type.GetInterfaces(); 183foreach (Type interfaceType in interfaceTypes) 202public static bool ImplementsICollection(Type type) 209Type[] interfaceTypes = type.GetInterfaces(); 210foreach (Type interfaceType in interfaceTypes) 228public static Type GetCommonAncestor(Type t1, Type t2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (13)
68private Dictionary<Type, string> _activeCategoryEditors = new Dictionary<Type, string>(); 275static string GetStringRepresentation(Type type) 781Dictionary<Type, object> newCategoryEditorTypes = _propertyToolBar.CurrentViewManager.GetCategoryEditors( 786List<Type> editorTypesToRemove = null; 787foreach (KeyValuePair<Type, string> item in _activeCategoryEditors) 797editorTypesToRemove = new List<Type>(); 811foreach (Type editorTypeToRemove in editorTypesToRemove) 824foreach (Type editorTypeToAdd in newCategoryEditorTypes.Keys) 844private bool IsCategoryShown(Type categoryEditorType) 904private static Type FindCommonType(IEnumerable<ModelItem> modelItems) 906Type commonType = null; 930Type type = null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Views\AlphabeticalViewManager.cs (3)
103public Dictionary<Type, object> GetCategoryEditors(Type ownerType, CategoryList categoryList) 106return new Dictionary<Type, object>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Views\ByCategoryViewManager.cs (11)
126public Dictionary<Type, object> GetCategoryEditors(Type ownerType, CategoryList categoryList) 128Dictionary<Type, object> editorSet = new Dictionary<Type, object>(); 136private static void AddAttachedPropertiesCategoryEditors(Dictionary<Type, object> categoryEditorSet, IEnumerable<CategoryBase> categories) 146IEnumerable<Type> editorTypes = property.CategoryEditorTypes; 152foreach (Type editorType in editorTypes) 162private static void AddTypeCategoryEditors(Dictionary<Type, object> categoryEditorSet, Type type) 166IEnumerable<Type> editorTypes = ExtensibilityAccessor.GetCategoryEditorTypes(type); 169foreach (Type editorType in editorTypes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Views\IPropertyViewManager.cs (2)
46Dictionary<Type, object> GetCategoryEditors(Type ownerType, CategoryList categoryList);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeCallbackBuilder.cs (3)
27private Type _callbackType; 29internal AttributeCallbackBuilder(MutableAttributeTable table, Type callbackType) 38public Type CallbackType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeTable.cs (7)
47public IEnumerable<Type> AttributedTypes 72public bool ContainsAttributes(Type type) 88public IEnumerable GetCustomAttributes(Type type) 105public IEnumerable GetCustomAttributes(Type ownerType, MemberDescriptor descriptor) 126public IEnumerable GetCustomAttributes(Type ownerType, DependencyProperty dp) 147public IEnumerable GetCustomAttributes(Type ownerType, MemberInfo member) 168public IEnumerable GetCustomAttributes(Type ownerType, string memberName)
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\Base\Core\PropertyEditing\CategoryEditor.cs (1)
69public static EditorAttribute CreateEditorAttribute(Type categoryEditorType) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemfactory.cs (5)
21private Type[] NoTypes = new Type[0]; 44public virtual object GetImage(Type type, Size desiredSize) { 60public virtual string GetDisplayName(Type type) 77public virtual object CreateInstance(Type type) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemtypesattribute.cs (8)
21private Type _factoryType; 22private Type[] _types; 29public NewItemTypesAttribute(Type type) 35_types = new Type[] { type }; 44public NewItemTypesAttribute(params Type[] types) 58public Type Type 70public IEnumerable<Type> Types 84public Type FactoryType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (1)
687Type propertyType = this.PropertyEntry.PropertyType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\propertyentry.cs (1)
49public abstract Type PropertyType { get; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (1)
70public static EditorAttribute CreateEditorAttribute(Type propertyValueEditorType) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PublishServiceCallback.cs (1)
12public delegate object PublishServiceCallback(Type serviceType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\ServiceManager.cs (10)
19public abstract class ServiceManager : IServiceProvider, IEnumerable<Type> 33public abstract bool Contains(Type serviceType); 87public abstract object GetService(Type serviceType); 94public abstract IEnumerator<Type> GetEnumerator(); 106public abstract void Subscribe(Type serviceType, SubscribeServiceCallback callback); 140public abstract void Publish(Type serviceType, PublishServiceCallback callback); 150public abstract void Publish(Type serviceType, object serviceInstance); 204public abstract void Unsubscribe(Type serviceType, SubscribeServiceCallback callback); 322private object PublishService(Type serviceType) 388private void SubscribeService(Type serviceType, object service)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\SubscribeServiceCallback.cs (1)
11public delegate void SubscribeServiceCallback(Type serviceType, object serviceInstance);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Documents\ViewManagerAttribute.cs (3)
18private Type _viewManagerType; 34public ViewManagerAttribute(Type viewManagerType) 50public Type ViewManagerType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelFactory.cs (3)
35public static ModelItem CreateItem(EditingContext context, Type itemType, params object[] arguments) { 59public static ModelItem CreateItem(EditingContext context, Type itemType, CreateOptions options, params object[] arguments) { 104public static ModelItem CreateStaticMemberItem(EditingContext context, Type type, string memberName) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItem.cs (1)
64public abstract Type ItemType { get; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelProperty.cs (2)
78public abstract Type AttachedOwnerType { get; } 149public abstract Type PropertyType { get; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionConverter.cs (3)
19public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 35public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 57Type argumentType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionModelItemConverter.cs (3)
20public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 44public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) 65Type argumentType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ModelItemToAnnotationEnabledConverter.cs (2)
14public object Convert(object value, Type targetType, object parameter, Globalization.CultureInfo culture) 30public object ConvertBack(object value, Type targetType, object parameter, Globalization.CultureInfo culture)
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\ModelPropertyEntryToOwnerActivityConverter.cs (3)
17public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 43Type itemType = convertedValue.ItemType; 58public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ModelToObjectValueConverter.cs (2)
15public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 32public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\ObjectToModelValueConverter.cs (2)
20public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 38public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\OutlineViewTextConverter.cs (2)
18public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 48public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\SearchableStringConverterAttribute.cs (1)
12public SearchableStringConverterAttribute(Type type)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\TypeSearchableStringConverter.cs (2)
16if (value is Type) 18results.Add(TypePresenter.ResolveTypeName(value as Type));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\VBIdentifierTrimConverter.cs (2)
11public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 16public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.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\CutCopyPasteHelper.cs (7)
47static IList<Type> disallowedTypesForCopy; 49static IEnumerable<Type> DisallowedTypesForCopy 55disallowedTypesForCopy = new List<Type>(); 65internal static void AddDisallowedTypeForCopy(Type type) 566internal static void PutCallbackOnClipBoard(Func<ModelItem, object, object> callbackMethod, Type callbackResultType, object context) 686private static bool CanCopy(Type type) 688foreach (Type disallowedType in CutCopyPasteHelper.DisallowedTypesForCopy)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\AllowBreakpointAttribute.cs (1)
18internal static bool IsBreakpointAllowed(Type breakpointCandidateType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DefaultTypeArgumentAttribute.cs (3)
14Type type; 16public DefaultTypeArgumentAttribute(Type type) 22public Type Type
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignerMetadata.cs (3)
36builder.AddCustomAttributes(typeof(Type), PropertyValueEditor.CreateEditorAttribute(typeof(TypePropertyEditor))); 61builder.AddCustomAttributes(typeof(Type), new SearchableStringConverterAttribute(typeof(TypeSearchableStringConverter))); 88Type type = typeof(ActivityDelegate);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (17)
63static IDictionary<Type, PropertyDescriptorCollection> TypePropertyCollection = new Dictionary<Type, PropertyDescriptorCollection>(); 201return (TypeConverter)Activator.CreateInstance(Type.GetType(attribute.ConverterTypeName)); 274public object GetEditor(Type editorBaseType) 280return Activator.CreateInstance(Type.GetType(attribute.EditorTypeName)); 302Type type = this.GetType(); 385Type editorType = this.GetDynamicPropertyValueEditorType(propertyName); 398internal Type GetDynamicPropertyValueEditorType(string propertyName) 401var editorType = this.OnGetDynamicPropertyValueEditorType(propertyName); 418protected virtual Type OnGetDynamicPropertyValueEditorType(string propertyName) 571Type type = this.GetType(); 614public override Type ComponentType 630public override Type PropertyType 712public Type OwnerType { get; set; } 714public Type PropertyType { get; set; } 823public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 837public object[] ConvertBack(object value, Type[] targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignTimeValidationFeature.cs (2)
15public override void Initialize(EditingContext context, Type modelType) 30protected abstract Type ApplyTo
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (16)
183public static bool AllowDrop(IDataObject draggedDataObject, EditingContext context, params Type[] allowedItemTypes) 207List<Type> draggedTypes = GetDraggedTypes(draggedDataObject); 210&& draggedTypes.All<Type>((p) => 237internal static bool AllowDrop(Type draggedType, Type allowedItemType) 246Type factoryType; 277internal static List<Type> GetDraggedTypes(IDataObject draggedDataObject) 279List<Type> types = new List<Type>(); 309types.Add(Type.GetType(text)); 339Type type = null; 346type = Type.GetType(text); 398internal static object GetDroppedObjectInstance(DependencyObject dropTarget, EditingContext context, Type type, IDataObject dataObject) 424Type templateFactoryInterface2 = type.GetInterface(typeof(IActivityTemplateFactory<>).FullName); 460static Type ResolveGenericParameters(DependencyObject dropTarget, EditingContext context, Type type)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ErrorItem.cs (1)
15public override Type ItemType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpandButtonVisibilityConverter.cs (2)
19public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 32public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpandCollapseIsCheckedConverter.cs (2)
11public object Convert(object[] values, Type targetType, object parameter, global::System.Globalization.CultureInfo culture) 24public object[] ConvertBack(object value, Type[] targetTypes, object parameter, global::System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (12)
40Type expressionType = expression.GetType(); 41Type expressionArgumentType = expressionType.IsGenericType ? expressionType.GetGenericArguments()[0] : typeof(object); 42bool isLiteral = expressionType.IsGenericType ? Type.Equals(typeof(Literal<>), expressionType.GetGenericTypeDefinition()) : false; 94internal static ActivityWithResult TryCreateLiteral(Type type, string expressionText, ParserContext context) 125var concreteExpType = typeof(Literal<>).MakeGenericType(type); 135internal static bool CanTypeBeSerializedAsLiteral(Type type) 154Type expressionType = expression.ResultType; 158internal static bool TryMorphExpression(ActivityWithResult originalExpression, bool isLocation, Type targetType, 165Type resultType = originalExpression.ResultType; 175Type expressionType = originalExpression.GetType(); 208internal static bool TryInferReturnType(ActivityWithResult expression, EditingContext context, out Type returnType) 212Type expressionType = expression.GetType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\CreateExpressionFromString.cs (1)
14public delegate ActivityWithResult CreateExpressionFromStringCallback(string expressionText, bool useLocationExpression, Type expressionType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionActivityEditor.cs (3)
27public static readonly DependencyProperty ExpressionTypeProperty = DependencyProperty.Register("ExpressionType", typeof(Type), typeof(ExpressionActivityEditor), 76public Type ExpressionType 78get { return (Type)GetValue(ExpressionTypeProperty); }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionMorphHelper.cs (2)
10public virtual bool TryInferReturnType(ActivityWithResult expression, EditingContext context, out Type returnType) 16public abstract bool TryMorphExpression(ActivityWithResult expression, bool isLocationExpression, Type newType,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionMorphHelperAttribute.cs (3)
15Type helperType; 17public ExpressionMorphHelperAttribute(Type expressionMorphHelperType) 30public Type ExpressionMorphHelperType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionSelection.cs (1)
28public override Type ItemType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Feature.cs (1)
9public abstract void Initialize(EditingContext context, Type modelType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FeatureAttribute.cs (3)
14Type type; 16public FeatureAttribute(Type type) 24public Type Type
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (3)
15HashSet<Type> initializedTypes; 20initializedTypes = new HashSet<Type>(); 23public void InitializeFeature(Type modelType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (2)
19public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) 37public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorIdentityConverter.cs (2)
14public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 23public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorLabelMarginConverter.cs (2)
20public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 43public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorLabelVisibilityConverter.cs (2)
20public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 36public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToArrowMarginConverter.cs (2)
19public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 52public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToArrowTransformConverter.cs (2)
21public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 32public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToSegmentsConverter.cs (2)
18public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 59public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorStartDotConverter.cs (2)
18public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 37public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\GenericTypeParameterConverter.cs (2)
37public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 42public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Hosting\IMultiTargetingSupportService.cs (3)
20Type GetRuntimeType(Type reflectionType); 21bool IsSupportedType(Type type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Hosting\MultiTargetingSupportService.cs (5)
32public abstract Type GetRuntimeType(Type reflectionType); 39public abstract bool IsSupportedType(Type type); 46public abstract Type GetReflectionType(Type objectType);
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\AttachedPropertiesService.cs (1)
35internal IEnumerable<AttachedProperty> GetAttachedProperties(Type modelItemType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedProperty.cs (4)
17Type ownerType = typeof(object); 20public abstract Type Type 47public Type OwnerType 87public override Type Type
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyDescriptor.cs (2)
41public override Type ComponentType 54public override Type PropertyType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\FakeModelItemImpl.cs (1)
16public FakeModelItemImpl(ModelTreeManager modelTreeManager, Type itemType, object instance, FakeModelItemImpl parent)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (8)
26public void AddSupportForUpdatingTypeArgument(Type modelItemType) 28AttachedProperty<Type> typeArgumentProperty = new AttachedProperty<Type> 39private static void UpdateTypeArgument(ModelItem modelItem, Type value) 43Type oldModelItemType = modelItem.ItemType; 45Type newModelItemType = oldModelItemType.GetGenericTypeDefinition().MakeGenericType(value); 74private static Type GetTypeArgument(ModelItem modelItem) 80private static string GetActivityDefaultName(Type activityType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (3)
25Type itemType; 38public ModelItemCollectionImpl(ModelTreeManager modelTreeManager, Type itemType, Object instance, ModelItem parent) 112public override Type ItemType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (12)
25Type itemType; 40public ModelItemDictionaryImpl(ModelTreeManager modelTreeManager, Type itemType, Object instance, ModelItem parent) 68Type itemsCollectionKVPType = null; 69Type ItemsCollectionKVPType 77Type itemsCollectionType = ItemsCollectionModelItemCollection.ItemType; 78Type[] genericArguments = itemsCollectionType.GetGenericArguments(); 273public override Type ItemType 1040Type keyValuePairType = typeof(KeyValuePair<object, object>); 1044Type instanceType = instance.GetType(); 1122bool GetDictionaryInterface(Type type, object dummy) 1136Type keyValuePairType = type.GetGenericArguments()[0]; 1237object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
37internal static ModelItem FindParentModelItem(this ModelItem item, Type parentType) 762var designerType = this.ViewService.GetDesignerType(p.ItemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (5)
29Type itemType; 44public ModelItemImpl(ModelTreeManager modelTreeManager, Type itemType, object instance, ModelItem parent) 93public override Type ItemType 360object ICustomTypeDescriptor.GetEditor(Type editorBaseType) 501Type itemType = valueModelitem.ItemType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyCollectionImpl.cs (1)
80Type instanceType = instance.GetType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (4)
55public override Type ComponentType 66public override Type PropertyType 86public override object GetEditor(Type editorBaseType) 105Type itemType = value.ItemType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyImpl.cs (2)
32public override Type AttachedOwnerType 160public override Type PropertyType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (9)
222delegate(Type type) 257Type type = item.ItemType; 294TypeNameHelper.GetDisplayName(variable.Properties[DesignTimeVariable.VariableTypeProperty].ComputedValue as Type, false), null)); 371TypeNameHelper.GetDisplayName(argument.Properties["Type"].ComputedValue as Type, false), null)); 424Type type = computedValue.GetType(); 438Type generictype = type.GetGenericTypeDefinition(); 445Type converterType = Type.GetType(attribute.ConverterTypeName); 774Type designerType = viewService.GetDesignerType(itemToFocus.ItemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelService.cs (6)
58protected abstract ModelItem CreateItem(Type itemType, CreateOptions options, params object[] arguments); 83protected abstract ModelItem CreateStaticMemberItem(Type type, string memberName); 103public abstract IEnumerable<ModelItem> Find(ModelItem startingItem, Type type); 124public abstract IEnumerable<ModelItem> Find(ModelItem startingItem, Predicate<Type> match); 174internal ModelItem InvokeCreateItem(Type itemType, CreateOptions options, params object[] arguments) { 181internal ModelItem InvokeCreateStaticMemberItem(Type type, string memberName) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (4)
38public override IEnumerable<ModelItem> Find(ModelItem startingItem, Predicate<Type> match) 43public override IEnumerable<ModelItem> Find(ModelItem startingItem, Type type) 135protected override ModelItem CreateItem(Type itemType, CreateOptions options, params object[] arguments) 141protected override ModelItem CreateStaticMemberItem(Type type, string memberName)
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\Model\ModelTypeConverter.cs (3)
41public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 51public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 81public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeDescriptorContextWrapper.cs (3)
95public object GetService(Type serviceType) 128public override Type ComponentType 132public override Type PropertyType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (1)
32internal static bool IsModelItemKeyValuePair(Type type)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (4)
23static Dictionary<Type, PropertyValueMorphHelper> morphExtensions = new Dictionary<Type, PropertyValueMorphHelper>(); 27public static void AddPropertyValueMorphHelper(Type propertyType, PropertyValueMorphHelper extension) 42public static PropertyValueMorphHelper GetPropertyValueMorphHelper(Type propertyType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (5)
21public static TypeConverter GetConverter(Type itemType) 45Type type = Type.GetType(tca.ConverterTypeName); 48ConstructorInfo ctor = type.GetConstructor(new Type[] { typeof(Type) });
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceHelper.cs (1)
143foreach (Type type in assembly.GetTypes())
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceListProperty.cs (2)
31public override Type ComponentType 44public override Type PropertyType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (2)
25static Type WorkflowServiceType = typeof(WorkflowService); 145public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NonTextualExpressionMorphHelper.cs (1)
24public override bool TryMorphExpression(ActivityWithResult expression, bool isLocationExpression, Type newType,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NotConverter.cs (2)
15public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 20public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NullToBooleanConverter.cs (2)
13public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 18public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ReadOnlyState.cs (1)
13public override Type ItemType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ShowExpandedMultiValueConverter.cs (2)
23public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 50public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\SQM\ActivityUsageCounter.cs (2)
119static internal ActivityTypeId MapTypeToId(Type activityType) 133static internal void ReportUsage(IVSSqmService sqmService, Type activityType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TextFormattingConverter.cs (2)
16public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 28public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
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\Toolbox\ActivityTemplateFactoryExtension.cs (4)
9public static bool IsActivityTemplateFactory(this Type type) 15public static bool TryGetActivityTemplateFactory(this Type type, out Type argumentType) 24Type activityFactoryInterfaceType = type.GetInterface(typeof(IActivityTemplateFactory<>).FullName);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemImageConverter.cs (2)
23object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture) 42object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (9)
37Type toolType; 49public ToolboxItemWrapper(Type toolType) 54public ToolboxItemWrapper(Type toolType, string displayName) 59public ToolboxItemWrapper(Type toolType, string bitmapName, string displayName) 192public Type Type 197bool isChanged = !Type.Equals(this.toolType, value); 220Type discoveredToolType = toolAssembly.GetType(this.ToolName, true, true); 358void ValidateTool(Type toolType) 363ConstructorInfo ctor = toolType.GetConstructor(Type.EmptyTypes);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\TreeViewContainerStyleSelector.cs (2)
140public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 171public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TypeNameConverter.cs (5)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 16Type type = value as Type; 23type = modelItem.GetCurrentValue() as Type; 32public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (10)
16public static bool CanSubstituteGenericParameter(Type genericParameter, Type candidate) 53foreach (Type constraint in genericParameter.GetGenericParameterConstraints()) 71public static bool CanCreateInstanceUsingDefaultConstructor(Type type) 75return type.IsValueType || (!type.IsAbstract && type.GetConstructor(Type.EmptyTypes) != null); 78public static bool IsTypeCompatible(Type childObjectType, Type parentObjectType) 86Type[] interfaceTypes = childObjectType.GetInterfaces(); 87foreach (Type interfaceType in interfaceTypes) 102Type current = childObjectType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\UpdatableGenericsFeature.cs (1)
12public override void Initialize(EditingContext context, Type modelType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (5)
29Dictionary<Type, IValidationErrorSourceLocator> validationErrorSourceLocators; 928internal void RegisterValidationErrorSourceLocator(Type activityType, IValidationErrorSourceLocator validationErrorSourceLocator) 950IValidationErrorSourceLocator GetValidationErrorSourceLocator(Type typeOfActivityWithValidationError) 981Dictionary<Type, IValidationErrorSourceLocator> ValidationErrorSourceLocators 987this.validationErrorSourceLocators = new Dictionary<Type, IValidationErrorSourceLocator>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ValidationErrorSourceLocatorFeature.cs (1)
18public override void Initialize(EditingContext context, Type modelType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\VariableExpressionConverter.cs (2)
14public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 19public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeDesigner.xaml.cs (1)
112Type propertyType = changeInfo.Subject.ItemType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (13)
29typeof(Type), 56public Type ConcreteType 64public Type EditedType 66get { return (Type)GetValue(EditedTypeProperty); } 160Type[] generics = this.EditedType.GetGenericArguments(); 161foreach (Type type in generics) 163Type temp = type; // reference this temp variable instead of reference type in the anonymous delegate 167Filter = delegate(Type t) 218Type type = ResolveType(); 273Type ResolveType() 275Type result = null; 278Type[] arguments = new Type[this.GenericTypeMapping.Count];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (32)
164Type GetDefaultType() 418var editorType = argument.GetDynamicPropertyValueEditorType(DesignTimeArgument.ArgumentDefaultValueProperty); 758static readonly Type inArgumentTypeReference = typeof(InArgument); 759static readonly Type outArgumentTypeReference = typeof(OutArgument); 760static readonly Type inOutArgumentTypeReference = typeof(InOutArgument); 761static readonly Type stringTypeReference = typeof(string); 814PropertyType = typeof(Type), 815PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 818((DesignTimeArgument)instance).SetArgumentType((Type)newValue); 969internal Type GetArgumentType() 971Type result = (Type)this.ReflectedObject.Properties["Type"].ComputedValue; 979void SetArgumentType(Type type) 984Type propertyType = GetTypeReference(currentDirection, type); 995Type argumentType = (Type)this.ReflectedObject.Properties["Type"].ComputedValue; 1015Type currentType = this.GetArgumentType(); 1016Type propertyType = GetTypeReference(direction, currentType); 1027Type GetTypeReference(PropertyKind direction, Type type) 1029Type targetType = null; 1195internal bool Filter(Type type) 1206protected override Type OnGetDynamicPropertyValueEditorType(string propertyName) 1208var type = this.GetArgumentType(); 1226Type argumentType = null; 1246var referenceType = typeof(PropertyValueEditor); 1247var expressionEditorType = typeof(ExpressionValueEditor); 1254var customEditorType = TypeDescriptor 1259Type currentType = Type.GetType(p.EditorTypeName); 1262.Select(p => Type.GetType(p.EditorTypeName)) 1378void TryUpdateArgumentType(Type newType, PropertyKind newDirection)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (1)
35public override Type ItemType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (2)
22public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) 68public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\CanExpandCollapseAllConverter.cs (2)
13public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 24public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (8)
67static Dictionary<Type, Type> EditorBehaviorTypeMapping = new Dictionary<Type, Type> 542Type controlType = control.GetType(); 543Type editorBehaviorType; 1510public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) 1571public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (6)
1422Type activityType = Type.GetType(typeName, false); 1433Type factoryType; 1459Type activityType = null; 1467activityType = Type.GetType(context["TypeName"]); 1484activityType = Type.GetType((string)dataObject.GetData(DragDropHelper.WorkflowItemTypeNameFormat));
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\IExpressionEditorService.cs (2)
17IExpressionEditorInstance CreateExpressionEditor(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces, List<ModelItem> variables, string text, Type expressionType); 18IExpressionEditorInstance CreateExpressionEditor(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces, List<ModelItem> variables, string text, Type expressionType, Size initialSize);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (2)
640IEnumerable<Type> types = null; 654foreach (Type type in types)
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\ModelPropertyPathExpanderConverter.cs (2)
16public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 49public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (2)
196public object GetService(Type serviceType) 210public ValueSerializer GetValueSerializerFor(Type type)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\PropertyEntryToEditingContextConverter.cs (2)
13public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 27public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\PropertyEntryToEditorOptionConverter.cs (2)
20public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 60public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (1)
166public sealed override Type ItemType {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (2)
332Type modelItemType = this.VisualValue.ItemType; 468Type[] arguments = property.PropertyType.GetGenericArguments();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (3)
29internal static Dictionary<Type, DrawingBrush> IconCache = new Dictionary<Type, DrawingBrush>(); 442Type[] arguments = property.PropertyType.GetGenericArguments();
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\TypeKeyValue.cs (15)
15Type genericType; 21Type targetType; 26Func<Type, bool> filter; 27ObservableCollection<Type> mostRecentlyUsedTypes; 32public TypeKeyValue(Type genericType, Action<TypeKeyValue> typeChangedCallBack) 50public Type GenericType 70public Func<Type, bool> Filter 80public ObservableCollection<Type> MostRecentlyUsedTypes 126public Type TargetType 142public Type GetConcreteType() 144Type result = null; 151Type[] arguments = new Type[this.subTypes.Count]; 177Type[] generics = this.targetType.GetGenericArguments(); 178foreach (Type t in generics)
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\TypeResolvingOptions.cs (9)
20public TypeResolvingOptions(IEnumerable<Type> defaultTypes) 24this.MostRecentlyUsedTypes = new ObservableCollection<Type>(); 25foreach (Type item in defaultTypes) 36public Func<Type, bool> Filter 44internal ObservableCollection<Type> MostRecentlyUsedTypes 103static Func<Type, bool> FuncAnd(Func<Type, bool> lhs, Func<Type, bool> rhs) 114return new Func<Type, bool>((e) => lhs(e) && rhs(e));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeToArgumentTypeConverter.cs (4)
17public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 20Type type = value as Type; 31public object ConvertBack(object value, Type targetType, object parameter, 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\ViewUtilities.cs (6)
26Type parentDesignerType = GetParentDesignerType(modelItem, context); 63Type viewType = viewService.GetDesignerType(item.ItemType); 70Type viewType = viewService.GetDesignerType(modelItem.ItemType); 162static bool IsParentOfType(ModelItem modelItem, Type parentType, EditingContext context) 164Type parentDesignerType = GetParentDesignerType(modelItem, context); 168static Type GetParentDesignerType(ModelItem modelItem, EditingContext context)
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)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicReferenceValidationFeature.cs (2)
17private static readonly Type VisualBasicReferenceType = typeof(VisualBasicReference<>); 19public override void Initialize(EditingContext context, Type modelType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicValueValidationFeature.cs (2)
17private static readonly Type VisualBasicValueType = typeof(VisualBasicValue<>); 19public override void Initialize(EditingContext context, Type modelType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewManager.cs (2)
105internal static string GetF1HelpTypeKeyword(Type type) 110Type genericTypeDefinition = type.GetGenericTypeDefinition();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (13)
114DesignerAttribute GetDesignerAttribute(Type type) 125internal static T GetAttribute<T>(Type type) where T : Attribute 136internal Type GetDesignerType(Type type) 141internal Type GetDesignerType(Type type, bool throwOnFailure) 143Type designerType = null; 148designerType = Type.GetType(designerAttribute.DesignerTypeName, throwOnFailure); 152if (type.IsGenericType && Type.Equals(designerType, typeof(ActivityDesigner))) 154Type genericType = type.GetGenericTypeDefinition(); 159designerType : Type.GetType(genericDesignerAttribute.DesignerTypeName, throwOnFailure)); 170Type designerType = GetDesignerType(modelItem.ItemType, true); 220Type designerType = this.GetDesignerType(modelItem.ItemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ViewStateAttachedPropertyFeature.cs (2)
14Type modelType; 19public sealed override void Initialize(EditingContext context, Type modelType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\VisualBasicExpressionMorphHelper.cs (2)
16public override bool TryInferReturnType(ActivityWithResult expression, EditingContext context, out Type returnType) 55public override bool TryMorphExpression(ActivityWithResult expression, bool isLocationExpression, Type newType,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowFileItem.cs (1)
15public sealed override Type ItemType
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (5)
54DependencyProperty.Register("AllowedItemType", typeof(Type), typeof(WorkflowItemPresenter), new UIPropertyMetadata(typeof(object))); 348public Type AllowedItemType 350get { return (Type)GetValue(AllowedItemTypeProperty); } 738(itemsToPaste[0] is Type && this.AllowedItemType.IsAssignableFrom((Type)itemsToPaste[0])) ||
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (5)
56DependencyProperty.Register("AllowedItemType", typeof(Type), typeof(WorkflowItemsPresenter), new UIPropertyMetadata(typeof(object))); 112public Type AllowedItemType 114get { return (Type)GetValue(AllowedItemTypeProperty); } 707else if (droppedObject is Type && this.AllowedItemType.IsAssignableFrom((Type)droppedObject))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (3)
1103Type itemType = null; 1118Type[] argumentTypes = itemType.GetGenericArguments(); 1121foreach (Type argument in argumentTypes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (2)
59Type variableType = null; 64Type propertyType = property.Type;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (4)
210internal static bool IsErrorActivity(Type objectType) 981public Type Type { get; set; } 985public static bool IsActivityType(Type type) 997Type errorType;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ShimAsPublicXamlType.cs (1)
13public ShimAsPublicXamlType(Type type, XamlSchemaContext schemaContext) :
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\XNameConverter.cs (3)
17public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 33public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 38public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
fx\src\bid\inc\cs\bidPrivateBase.cs (3)
1215internal BidArgumentTypeAttribute(Type bidArgumentType) 1223internal BidArgumentTypeAttribute(Type bidArgumentType, int index) 1229public readonly Type ArgumentType;
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (18)
189Type udtType, 208else if (Type.GetTypeCode(value.GetType()) == TypeCode.Int64) 229else if (Type.GetTypeCode(value.GetType()) == TypeCode.Boolean) 250else if (Type.GetTypeCode(value.GetType()) == TypeCode.Char) 252else if (Type.GetTypeCode(value.GetType()) == TypeCode.String) 267else if (Type.GetTypeCode(value.GetType()) == TypeCode.DateTime) 275else if (Type.GetTypeCode(value.GetType()) == TypeCode.Decimal) 283else if (Type.GetTypeCode(value.GetType()) == TypeCode.Single) 291else if (Type.GetTypeCode(value.GetType()) == TypeCode.Int32) 300else if (Type.GetTypeCode(value.GetType()) == TypeCode.Decimal) 308else if (Type.GetTypeCode(value.GetType()) == TypeCode.Double) 322else if (Type.GetTypeCode(value.GetType()) == TypeCode.Int16) 330else if (Type.GetTypeCode(value.GetType()) == TypeCode.Byte) 396static internal ExtendedClrTypeCode DetermineExtendedTypeCodeFromType(Type clrType) { 444static internal SqlDbType InferSqlDbTypeFromType(Type type) { 462static internal SqlDbType InferSqlDbTypeFromType_Katmai(Type type) { 750Type colType = (Type)temp;
fx\src\data\Microsoft\SqlServer\Server\SmiContextFactory.cs (3)
42Type smiLinkType = Type.GetType("Microsoft.SqlServer.Server.InProcLink, SqlAccess, PublicKeyToken=89845dcd8080cc91"); 130private System.Reflection.FieldInfo GetStaticField(Type aType, string fieldName) {
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\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
61public virtual Type GetFieldType( int ordinal ) { 243public virtual Type GetSqlFieldType(int ordinal) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (2)
1122Type t = metaData.Type; 2380Type t = metaData.Type;
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\ColumnTypeConverter.cs (9)
24private static Type[] types = new Type[] { 71public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 81public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 103if (value is Type || value is string) { 104System.Reflection.MethodInfo method = typeof(Type).GetMethod("GetType", new Type[] {typeof(string)}); // change done for security review 106return new InstanceDescriptor(method, new object[] {((Type)newValue).AssemblyQualifiedName}); 114public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
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\BigIntegerStorage.cs (1)
74internal static object ConvertFromBigInteger(BigInteger value, Type type, IFormatProvider formatProvider) {
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\DataColumnMappingCollection.cs (2)
77private Type ItemType { 369static public DataColumn GetDataColumn(DataColumnMappingCollection columnMappings, string sourceColumn, Type dataType, DataTable dataTable, MissingMappingAction mappingAction, MissingSchemaAction schemaAction) {
fx\src\data\System\Data\Common\DataRecordInternal.cs (3)
80public override Type GetFieldType(int i) { 312object ICustomTypeDescriptor.GetEditor(Type editorBaseType) { 344public Type type;
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\DataTableMappingCollection.cs (1)
80private Type ItemType {
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (2)
393Type vtype; 491object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (6)
62private Type _componentType; 63private Type _propertyType; 67internal DbConnectionStringBuilderDescriptor(string propertyName, Type componentType, Type propertyType, bool isReadOnly, Attribute[] attributes) : base(propertyName, attributes) { 83public override Type ComponentType { 93public override Type PropertyType {
fx\src\data\System\Data\Common\DBDataPermission.cs (1)
323Type type = this.GetType();
fx\src\data\System\Data\Common\DbDataReader.cs (2)
83abstract public Type GetFieldType(int ordinal); 141virtual public Type GetProviderSpecificFieldType(int ordinal) {
fx\src\data\System\Data\Common\dbdatarecord.cs (2)
59public abstract Type GetFieldType(int i); 113object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
fx\src\data\System\Data\Common\dbenumerator.cs (4)
110Type _type; 112internal DbColumnDescriptor(int ordinal, string name, Type type) 118public override Type ComponentType { 130public override Type PropertyType {
fx\src\data\System\Data\Common\DbProviderFactories.cs (7)
69Type providerType = Type.GetType(assemblyQualifiedName); 124Type sysDataType = typeof(System.Data.SqlClient.SqlClientFactory); 140Type providerType = Type.GetType(dbFactoriesConfigSection[i].AssemblyQualifiedName); 186Type providerType = Type.GetType(configDataTable.Rows[i][AssemblyQualifiedName].ToString());
fx\src\data\System\Data\Common\DbProviderFactoriesConfigurationHandler.cs (2)
34Type factType; 40public DbProviderFactoryConfigSection(Type FactoryType, string FactoryName, string FactoryDescription)
fx\src\data\System\Data\Common\DBSchemaRow.cs (2)
341internal System.Type DataType { 346return(System.Type) value;
fx\src\data\System\Data\Common\GreenMethods.cs (4)
27internal static Type SystemDataCommonDbProviderServices_Type = Type.GetType(SystemDataCommonDbProviderServices_TypeName, false); 36Type t = Type.GetType(SystemDataSqlClientSqlProviderServices_TypeName, false);
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\Common\SQLConvert.cs (20)
23Type valueType = value.GetType(); 41Type valueType = value.GetType(); 62Type valueType = value.GetType(); 90Type valueType = value.GetType(); 123Type valueType = value.GetType(); 171Type valueType = value.GetType(); 213Type valueType = value.GetType(); 257Type valueType = value.GetType(); 298Type valueType = value.GetType(); 316Type valueType = value.GetType(); 334Type valueType = value.GetType(); 352Type valueType = value.GetType(); 370Type valueType = value.GetType(); 388Type valueType = value.GetType(); 403Type valueType = value.GetType(); 417public static object ChangeTypeForDefaultValue(object value, Type type, IFormatProvider formatProvider) { 430public static object ChangeType2(object value, StorageType stype, Type type, IFormatProvider formatProvider) { 472Type valueType = value.GetType(); 616public static object ChangeTypeForXML(object value, Type type) { 619Type valueType = value.GetType();
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (7)
30private static readonly Dictionary<Type,object> TypeToNull = new Dictionary<Type,object>(); 32public SqlUdtStorage(DataColumn column, Type type) 36private SqlUdtStorage(DataColumn column, Type type, object nullValue) 43internal static object GetStaticNullForUdtType(Type type) { 168Type type = (typeName == null)? DataType : Type.GetType(typeName);
fx\src\data\System\Data\Common\TimeSpanStorage.cs (1)
164Type typeofValue= value.GetType();
fx\src\data\System\Data\ConstraintConverter.cs (4)
28public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 42public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 50System.Reflection.ConstructorInfo ctor = typeof(UniqueConstraint).GetConstructor(new Type[] { typeof(string), typeof(string[]), typeof(bool) } ); 56System.Reflection.ConstructorInfo ctor = typeof(ForeignKeyConstraint).GetConstructor(new Type[] { typeof(string), typeof(string), typeof(string[]),
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\DataColumnCollection.cs (2)
197public DataColumn Add(string columnName, Type type, string expression) { 208public DataColumn Add(string columnName, Type type) {
fx\src\data\System\Data\DataColumnPropertyDescriptor.cs (2)
43public override Type ComponentType { 55public override Type PropertyType {
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\DataRelationPropertyDescriptor.cs (2)
30public override Type ComponentType { 42public override Type PropertyType {
fx\src\data\System\Data\DataRowView.cs (1)
283object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
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\DataTable.cs (3)
431dc.DataType = (Type) info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.DataType", i), typeof(Type)); 3202protected virtual Type GetRowType() {
fx\src\data\System\Data\DataTablePropertyDescriptor.cs (2)
28public override Type ComponentType { 40public override Type PropertyType {
fx\src\data\System\Data\DataTableReader.cs (4)
281override public Type GetProviderSpecificFieldType(int ordinal) { 411return ((Type)GetFieldType(ordinal)).Name; 450override public Type GetFieldType (int ordinal) { 613DataColumn DataType = new DataColumn(SchemaTableColumn.DataType, typeof(System.Type));
fx\src\data\System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
84object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
fx\src\data\System\Data\DefaultValueTypeConverter.cs (1)
30public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
fx\src\data\System\Data\Filter\BinaryNode.cs (4)
118internal void SetTypeMismatchError(int op, Type left, Type right) { 253Type typeofLeft = vLeft.GetType(); 254Type typeofRight = vRight.GetType();
fx\src\data\System\Data\Filter\DataExpression.cs (2)
26private readonly Type _dataType; // This set if the expression is part of ExpressionCoulmn 32internal DataExpression(DataTable table, string expression, Type type) {
fx\src\data\System\Data\Filter\FilterException.cs (10)
169static public Exception DatatypeConvertion(Type type1, Type type2) { 173static public Exception DatavalueConvertion(object value, Type type, Exception innerException) { 205static public Exception Overflow(Type type) { 209static public Exception ArgumentType(string function, int arg, Type type) { 217static public Exception TypeMismatchInBinop(int op, Type type1, Type type2) { 221static public Exception AmbiguousBinop(int op, Type type1, Type type2) { 297static public Exception UnsupportedDataType(Type type)
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\IDataRecord.cs (1)
26Type GetFieldType(int i);
fx\src\data\System\Data\Odbc\DbDataRecord.cs (1)
23internal Type _type;
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\OdbcConnectionStringbuilder.cs (4)
306override public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 313override public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 327Type[] ctorParams = new Type[] { typeof(string) };
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
358override public Type GetFieldType(int i) {
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (2)
1024resultTable.Columns.Add(row["ColumnName"] as string, (Type)row["DataType"] as Type);
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\Odbc\OdbcParameterCollection.cs (1)
27private static Type ItemType = typeof(OdbcParameter);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (2)
118private Type ExpectedType { 1463private Exception CheckTypeValueStatusValue(Type expectedType) { // MDAC 71644
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (2)
210internal readonly Type dataType; // CLR Type 221private NativeDBType(Byte maxpre, int fixlen, bool isfixed, bool islong, OleDbType enumOleDbType, short dbType, string dbstring, Type dataType, short wType, DbType enumDbType) {
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (4)
228static internal InvalidOperationException SignMismatch(Type type) { 231static internal InvalidOperationException DataOverflow(Type type) { 234static internal InvalidOperationException CantCreate(Type type) { 237static internal InvalidOperationException Unavailable(Type type) {
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (2)
644Type datalink = Type.GetTypeFromCLSID(ODB.CLSID_DataLinks, true);
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (7)
673public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 702public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 707public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) { 745override public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 752override public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 766Type[] ctorParams = new Type[] { typeof(string) };
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (2)
312DataColumn dataType = new DataColumn("DataType", typeof(System.Type)); 922override public Type GetFieldType(int index) {
fx\src\data\System\Data\OleDb\OleDbEnumerator.cs (4)
33static public OleDbDataReader GetEnumerator(Type type) { 39static internal OleDbDataReader GetEnumeratorFromType(Type type) { // WebData 99005 87Type msdaenum = Type.GetTypeFromProgID(PROGID_MSDAENUM, true);
fx\src\data\System\Data\OleDb\OleDbException.cs (1)
142override public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
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\OleDb\OleDbParameterCollection.cs (1)
26private static Type ItemType = typeof(OleDbParameter);
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (2)
29public Type _type; 141internal static Type FromVtType(int vartype) {
fx\src\data\System\Data\PrimaryKeyTypeConverter.cs (2)
26public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 33public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
fx\src\data\System\Data\ProviderBase\DataReaderContainer.cs (4)
44internal abstract Type GetFieldType(int ordinal); 90internal override Type GetFieldType(int ordinal) { 91Type fieldType = _providerSpecificDataReader.GetProviderSpecificFieldType(ordinal); 122internal override Type GetFieldType(int ordinal) {
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
190resultTable.Columns.Add(row["ColumnName"] as string, (Type)row["DataType"] as Type);
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (4)
497Type fieldType = _dataReader.GetFieldType(i); 588Type fieldType = chapterValue.GetType(); 681Type fieldType = schemaRow.DataType; 888Type fieldType = chapterValue.GetType();
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\SimpleType.cs (1)
358internal static SimpleType CreateSimpleType(StorageType typeCode, Type type) {
fx\src\data\System\Data\Sql\invalidudtexception.cs (1)
39internal static InvalidUdtException Create(Type udtType, string resourceReason) {
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\Sql\sqlnorm.cs (5)
67private FieldInfo[] GetFields (Type t) { 71internal BinaryOrderedUdtNormalizer(Type t, bool isTopLevelUdt) { 135internal object DeNormalizeTopObject(Type t, Stream s) { 141private object DeNormalizeInternal(Type t, Stream s) { 231internal static Normalizer GetNormalizer(Type t) {
fx\src\data\System\Data\Sql\sqlser.cs (13)
45internal static int SizeInBytes(Type t) { 51Type t = instance.GetType(); 63internal static object Deserialize(Stream s, Type resultType) { 67private static Format GetFormat(Type t) { 80private static Serializer GetSerializer(Type t) { 92internal static int GetUdtMaxLength(Type t) { 106private static object[] GetCustomAttributes (Type t) { 110internal static SqlUserDefinedTypeAttribute GetUdtAttribute(Type t) { 124private static Serializer GetNewSerializer(Type t) { 144protected Type m_type; 146protected Serializer(Type t) { 156internal NormalizedSerializer(Type t): base(t) { 174internal BinarySerializeSerializer(Type t): base(t) {
fx\src\data\System\Data\SqlClient\assemblycache.cs (2)
53internal static SqlUdtInfo GetInfoFromType(Type t) { 56Type orig = t;
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
738internal Type GetTypeFromStorageType (bool isSqlType) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
1072Type t;
fx\src\data\System\Data\SqlClient\SqlClientFactory.cs (1)
68object IServiceProvider.GetService(Type serviceType) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
2234Type.GetType(typeName:metaData.udtAssemblyQualifiedName, assemblyResolver:asmRef => ResolveTypeAssembly(asmRef, fThrow), typeResolver:null, throwOnError: fThrow); 2252Type t = metaData.udtType;
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (7)
1232public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 1260public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 1264public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) { 1435override public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 1442override public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 1456Type[] ctorParams = new Type[] { typeof(string) };
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (11)
98internal static readonly Type _typeofINullable = typeof(INullable); 99private static readonly Type _typeofSqlString = typeof(SqlString); 436DataColumn DataType = new DataColumn(SchemaTableColumn.DataType, typeof(System.Type)); 437DataColumn ProviderSpecificDataType = new DataColumn(SchemaTableOptionalColumn.ProviderSpecificDataType, typeof(System.Type)); 1226override public Type GetFieldType(int i) { 1239private Type GetFieldTypeInternal(_SqlMetaData metaData) { 1240Type fieldType = null; 1315override public Type GetProviderSpecificFieldType(int i) { 1328private Type GetProviderSpecificFieldTypeInternal(_SqlMetaData metaData) { 1329Type providerSpecificFieldType = null; 2633Type typeofT = typeof(T);
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (4)
74public override Type GetFieldType(int ordinal) { 85override public Type GetProviderSpecificFieldType(int ordinal) { 476DataColumn DataType = new DataColumn(SchemaTableColumn.DataType, typeof(System.Type)); 477DataColumn ProviderSpecificDataType = new DataColumn(SchemaTableOptionalColumn.ProviderSpecificDataType, typeof(System.Type));
fx\src\data\System\Data\SqlClient\SqlDependency.cs (1)
1176Type type = value.GetType();
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[] {
fx\src\data\System\Data\SqlClient\SqlParameterCollection.cs (1)
27private static Type ItemType = typeof(SqlParameter);
fx\src\data\System\Data\SqlClient\SqlUdtInfo.cs (4)
46internal static SqlUdtInfo GetFromType(Type target) { 58private static Dictionary<Type, SqlUdtInfo> m_types2UdtInfo; 60internal static SqlUdtInfo TryGetFromType(Type target) { 62m_types2UdtInfo = new Dictionary<Type, SqlUdtInfo>();
fx\src\data\System\Data\SqlClient\SqlUtil.cs (4)
380static internal ArgumentOutOfRangeException NotSupportedEnumerationValue(Type type, int value) { 778static internal Exception BulkLoadCannotConvertValue(Type sourcetype, MetaType metatype, Exception e) { 1854typeof(SysTx.Transaction).GetMethod("EnlistPromotableSinglePhase", new Type[] {typeof(SysTx.IPromotableSinglePhaseNotification), typeof(Guid)})); 1857typeof(SysTx.Transaction).GetMethod("SetDistributedTransactionIdentifier", new Type[] { typeof(SysTx.IPromotableSinglePhaseNotification), typeof(Guid) }));
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
9901Type currentType = value.GetType();
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
838internal Type udtType;
fx\src\data\System\Data\XDRSchema.cs (4)
206public Type type; 207public NameType(String n, Type t) { 276private Type ParseDataType(string dt, string dtValues) { 319Type type;
fx\src\data\System\Data\xmlsaver.cs (15)
58Converter<Type, string> targetConverter; 68internal static void AddExtendedProperties(PropertyCollection props, XmlElement node, Type type) { 120Type type = pd.PropertyType; 136type != typeof(Type) && 203internal static string XmlDataTypeName(Type type) { 357internal static void ValidateColumnMapping(Type columnType) { 956internal void Save(DataSet ds, DataTable dt, XmlWriter xw, bool writeHierarchy, Converter<Type, string> multipleTargetConverter) 1118if (col.DataType == typeof(Guid) || col.DataType == typeof(Type) ) { 1924private void SetMSDataAttribute(XmlElement root, Type type) 2240Type valuesType = columnValue.GetType(); 2273if (valuesType == typeof(Type) || valuesType == typeof(Guid)|| valuesType == typeof(Char) || 2277else if (columnValue is Type) { 2613Type valuesType = value.GetType(); 2644if (valuesType == typeof(Type) || valuesType == typeof(Guid)|| valuesType == typeof(Char) || 2648else if (value is Type) {
fx\src\data\System\Data\XMLSchema.cs (14)
24internal static TypeConverter GetConverter(Type type) { 55Type type = pd.PropertyType; 61}else if (type == typeof(Type)) { 263Type type = pd.PropertyType; 269}else if (type == typeof(Type)) { 270propValue = Type.GetType(value); 1530public readonly Type type; 1531public NameType(String n, Type t) { 1538public static Type XsdtoClr(string xsdTypeName) { 1616private Type ParseDataType(string dt) { 1697Type type = null; 1816Type type = null; 1901Type type = null; 2041Type type = null;
System.Data.DataSetExtensions (13)
System\Data\DataRowComparer.cs (2)
70switch (Type.GetTypeCode(a.GetType().GetElementType())) 213Type valueType = value.GetType();
System\Data\DataRowExtensions.cs (1)
202private static Converter<object, T> Create(Type type)
System\Data\DataSetUtil.cs (8)
76static internal ArgumentOutOfRangeException InvalidEnumerationValue(Type type, int value) 115static private readonly Type StackOverflowType = typeof(System.StackOverflowException); 116static private readonly Type OutOfMemoryType = typeof(System.OutOfMemoryException); 117static private readonly Type ThreadAbortType = typeof(System.Threading.ThreadAbortException); 118static private readonly Type NullReferenceType = typeof(System.NullReferenceException); 119static private readonly Type AccessViolationType = typeof(System.AccessViolationException); 120static private readonly Type SecurityType = typeof(System.Security.SecurityException); 125Type type = e.GetType();
System\Data\EnumerableRowCollection.cs (2)
27internal abstract Type ElementType { get; } 56internal override Type ElementType
System.Data.Entity (765)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
1842private static bool TryResolveToConstant(Type type, object value, out DbExpression constantOrNullExpression) 1846Type valueType = type;
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (3)
762var clrEnumUnderlyingType = edmEnumType.UnderlyingType.ClrEquivalentType; 2061private static bool TryGetPrimitiveTypeKind(Type clrType, out PrimitiveTypeKind primitiveTypeKind) 2082private static bool ClrEdmEnumTypesMatch(EnumType edmEnumType, Type clrEnumType)
System\Data\Common\DataRecord.cs (2)
315public override Type GetFieldType(int ordinal) 490internal static PropertyDescriptorCollection CreatePropertyDescriptorCollection(StructuralType structuralType, Type componentType, bool isReadOnly)
System\Data\Common\EntitySql\AST\Literal.cs (2)
42private Type _type; 184internal Type Type
System\Data\Common\EntitySql\SemanticAnalyzer.cs (4)
4342private static readonly Dictionary<Type, AstExprConverter> _astExprConverters = CreateAstExprConverters(); 4346private static Dictionary<Type, AstExprConverter> CreateAstExprConverters() 4349Dictionary<Type, AstExprConverter> astExprConverters = new Dictionary<Type, AstExprConverter>(NumberOfElements);
System\Data\Common\EntityUtil.cs (46)
129internal static bool IsAnICollection(Type type) 144internal static bool TryGetICollectionElementType(Type collectionType, out Type elementType) 150Type collectionInterface = 174internal static Type GetCollectionElementType(Type propertyType) 176Type elementType; 199internal static Type DetermineCollectionType(Type requestedType) 203var elementType = EntityUtil.GetCollectionElementType(requestedType); 212requestedType.GetConstructor(constructorBinding, null, System.Type.EmptyTypes, null) != null) 217var hashSetOfT = typeof(HashSet<>).MakeGenericType(elementType); 223var listOfT = typeof(List<>).MakeGenericType(elementType); 239internal static Type GetEntityIdentityType(Type entityType) 936internal static void ThrowSetInvalidValue(object value, Type destinationType, string className, string propertyName) 953internal static InvalidOperationException ValueInvalidCast(Type valueType, Type destinationType) 970internal static InvalidOperationException ValueNullReferenceCast(Type destinationType) 976internal static NotSupportedException RecyclingEntity(EntityKey key, Type newEntityType, Type existingEntityType) { 1006internal static InvalidOperationException CannotResolveTheEntitySetforGivenEntity(Type type) { 1189internal static InvalidOperationException ProxyMetadataIsUnavailable(Type type, Exception inner) { 1192internal static InvalidOperationException DuplicateTypeForProxyType(Type type) { 1248internal static InvalidOperationException InvalidEntityType(Type type) { 1285internal static InvalidOperationException ExecuteFunctionTypeMismatch(Type typeArgument, EdmType expectedElementType) { 1331internal static ArgumentException InvalidEntitySetOnEntity(string entitySetName, Type entityType, string parameter) { 1577static internal ArgumentException UnknownDataTypeCode(Type dataType, TypeCode typeCode) { 1826static internal ArgumentOutOfRangeException InvalidEnumerationValue(Type type, int value) { 1838var connectionProviderFactoryType = providerFactory.GetType(); 1849Type.GetType( 1948static private readonly Type StackOverflowType = typeof(System.StackOverflowException); 1949static private readonly Type OutOfMemoryType = typeof(System.OutOfMemoryException); 1950static private readonly Type ThreadAbortType = typeof(System.Threading.ThreadAbortException); 1951static private readonly Type NullReferenceType = typeof(System.NullReferenceException); 1952static private readonly Type AccessViolationType = typeof(System.AccessViolationException); 1953static private readonly Type SecurityType = typeof(System.Security.SecurityException); 1954static private readonly Type CommandExecutionType = typeof(EntityCommandExecutionException); 1955static private readonly Type CommandCompilationType = typeof(EntityCommandCompilationException); 1956static private readonly Type QueryType = typeof(EntitySqlException); 1961Type type = e.GetType(); 1974Type type = e.GetType(); 2004static internal PropertyInfo GetTopProperty(Type t, string propertyName) 2016static internal PropertyInfo GetTopProperty(ref Type t, string propertyName) 2064public static Type[] GetTypesSpecial(Assembly assembly) 2067? new Type[0]
System\Data\Common\Internal\Materialization\ColumnMapKeyBuilder.cs (1)
66internal void Append(string prefix, Type type)
System\Data\Common\Internal\Materialization\CompensatingCollection.cs (1)
76Type IQueryable.ElementType
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (4)
32private readonly Type _elementType; 49internal CoordinatorScratchpad(Type elementType) 321private Type _userArgumentType; 530private Expression CreateInitializationArgumentReplacement(Expression original, Type expressionType)
System\Data\Common\Internal\Materialization\Shaper.cs (7)
748Type clrType = typeof(TEntity); 826var underlyingType = Nullable.GetUnderlyingType(typeof(T)); 832var type = typeof(ErrorHandlingValueReader<>).MakeGenericType(underlyingType); 885Type resultType = null == untypedResult ? null : untypedResult.GetType(); 907protected abstract Exception CreateWrongTypeException(Type resultType); 926protected override Exception CreateWrongTypeException(Type resultType) 959protected override Exception CreateWrongTypeException(Type resultType)
System\Data\Common\Internal\Materialization\ShaperFactory.cs (1)
25internal static ShaperFactory Create(Type elementType, QueryCacheManager cacheManager, ColumnMap columnMap, MetadataWorkspace metadata, SpanIndex spanInfo, MergeOption mergeOption, bool valueLayer)
System\Data\Common\Internal\Materialization\Translator.cs (73)
36internal readonly Type RequestedType; 38internal TranslatorArg(Type requestedType) 52private readonly Type RequestedType; 54internal TranslatorResult(Expression returnedExpression, Type requestedType) 110internal CollectionTranslatorResult(Expression returnedExpression, ColumnMap columnMap, Type requestedType, Expression expressionToGetCoordinator) 265internal static object Compile(Type resultType, Expression body) 327private Type DetermineClrType(TypeUsage typeUsage) 335private Type DetermineClrType(EdmType edmType) 337Type result = null; 431private ConstructorInfo GetConstructor(Type type) 518Type delegateReturnType = body.Type; 551private static readonly ConstructorInfo EntityKey_ctor_SingleKey = typeof(EntityKey).GetConstructor(BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(EntitySet), typeof(object) }, null); 552private static readonly ConstructorInfo EntityKey_ctor_CompositeKey = typeof(EntityKey).GetConstructor(BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(EntitySet), typeof(object[]) }, null); 556private static readonly MethodInfo IEqualityComparerOfString_Equals = typeof(IEqualityComparer<String>).GetMethod("Equals", new Type[] { typeof(string), typeof(string) }); 560null, new Type[] { typeof(MetadataWorkspace), typeof(TypeUsage), typeof(object[]) }, 587private static readonly MethodInfo Translator_Compile = typeof(Translator).GetMethod("Compile", BindingFlags.NonPublic | BindingFlags.Static, null, new Type[] { typeof(Expression) }, null); 595private static readonly ConstructorInfo PocoPropertyAccessorStrategy_ctor = typeof(PocoPropertyAccessorStrategy).GetConstructor(new Type[] { typeof(object) }); 596private static readonly ConstructorInfo EntityWithChangeTrackerStrategy_ctor = typeof(EntityWithChangeTrackerStrategy).GetConstructor(new Type[] { typeof(IEntityWithChangeTracker) }); 597private static readonly ConstructorInfo EntityWithKeyStrategy_ctor = typeof(EntityWithKeyStrategy).GetConstructor(new Type[] { typeof(IEntityWithKey) }); 598private static readonly ConstructorInfo PocoEntityKeyStrategy_ctor = typeof(PocoEntityKeyStrategy).GetConstructor(new Type[0]); 675internal static Expression Emit_NullConstant(Type type) 699internal static Expression Emit_WrappedNullConstant(Type type) 710internal static Expression Emit_EnsureType(Expression input, Type type) 743internal static Expression Emit_EnsureTypeAndWrap(Expression input, Expression keyReader, Expression entitySetReader, Type requestedType, Type identityType, Type actualType, MergeOption mergeOption, bool isProxy) 757private static Expression CreateEntityWrapper(Expression input, Expression keyReader, Expression entitySetReader, Type actualType, Type identityType, MergeOption mergeOption, bool isProxy) 767Type genericType = typeof(LightweightEntityWrapper<>).MakeGenericType(actualType); 769new Type[] { actualType, typeof(EntityKey), typeof(EntitySet), typeof(ObjectContext), typeof(MergeOption), typeof(Type) }, null); 770result = Expression.New(ci, input, keyReader, entitySetReader, Shaper_Context, Expression.Constant(mergeOption, typeof(MergeOption)), Expression.Constant(identityType, typeof(Type))); 790Type genericType = isIEntityWithRelationships ? 795new Type[] { actualType, typeof(EntityKey), typeof(EntitySet), typeof(ObjectContext), typeof(MergeOption), typeof(Type), 797result = Expression.New(ci, input, keyReader, entitySetReader, Shaper_Context, Expression.Constant(mergeOption, typeof(MergeOption)), Expression.Constant(identityType, typeof(Type)), 808internal static Expression Emit_UnwrapAndEnsureType(Expression input, Type type) 827Type valueType = value.GetType(); 1015private static Expression Emit_Reader_GetValue(int ordinal, Type type) 1046private static Expression Emit_Shaper_GetPropertyValueWithErrorHandling(Type propertyType, int ordinal, string propertyName, string typeName, TypeUsage columnType) 1066private static Expression Emit_Shaper_GetColumnValueWithErrorHandling(Type resultType, int ordinal, TypeUsage columnType) 1106private static Expression Emit_Shaper_GetState(int stateSlotNumber, Type type) 1139Type type = translator.DetermineClrType(columnMap.Type); 1166Type clrType = DetermineClrType(complexType); 1221Type clrType = oSpaceType.ClrType; 1254Type actualType = proxyTypeInfo == null ? clrType : proxyTypeInfo.ProxyType; 1310Type clrType = oSpaceType.ClrType; 1311Type actualType; 1353private List<MemberBinding> CreatePropertyBindings(StructuredColumnMap columnMap, Type clrType, ReadOnlyMetadataCollection<EdmProperty> properties) 1365Type propertyType; 1387Type entityDeclaringType = Type.GetTypeFromHandle(edmProperty.EntityDeclaringType); 1401private static PropertyInfo GetProperty(MethodInfo setterMethod, Type declaringType) 1446Type type = DetermineClrType(typeChoice.Value.Type); 1503Type typeDelegatePairType = typeof(KeyValuePair<EntityType, Func<Shaper, TElement>>); 1504ConstructorInfo typeDelegatePairConstructor = typeDelegatePairType.GetConstructor(new Type[] { typeof(EntityType), typeof(Func<Shaper, TElement>) }); 1667Type type = pair.Value; 1746Type elementType = spannedResultReader.Type.GetGenericArguments()[0]; 1803Type elementType = DetermineElementType(arg.RequestedType, columnMap); 1882Type innerElementType; 1887var typeToInstantiate = EntityUtil.DetermineCollectionType(arg.RequestedType); 1894Type listOfElementType = typeof(List<>).MakeGenericType(innerElementType); 1911Type compensatingCollectionType = typeof(CompensatingCollection<>).MakeGenericType(elementType); 1924private Type DetermineElementType(Type collectionType, CollectionColumnMap columnMap) 1926Type result = null; 1977private Expression BuildExpressionToGetCoordinator(Type elementType, Expression element, Expression[] keyReaders, Expression discriminator, object discriminatorValue, CoordinatorScratchpad coordinatorScratchpad) 2063Type type = arg.RequestedType; 2092Type nonNullableType = TypeSystem.GetNonNullableType(type); 2129private static Expression Emit_Conditional_NotDBNull(Expression result, int ordinal, Type columnType) 2137internal static MethodInfo GetReaderMethod(Type type, out bool isNullable) 2145Type underlyingType = Nullable.GetUnderlyingType(type); 2152TypeCode typeCode = Type.GetTypeCode(type);
System\Data\Common\QueryCache\EntitySqlQueryCacheKey.cs (2)
60private readonly Type _resultType; 77Type resultType)
System\Data\Common\QueryCache\LinqQueryCacheKey.cs (2)
54private readonly Type _resultType; 77Type resultType)
System\Data\Common\Utils\Boolean\IdentifierService.cs (4)
32Type identifierType = typeof(T_Identifier); 37Type[] genericArguments = identifierType.GetGenericArguments(); 38Type variableType = genericArguments[0]; 39Type elementType = genericArguments[1];
System\Data\Common\Utils\MetadataHelper.cs (2)
164internal static bool TryDetermineCSpaceModelType(Type type, MetadataWorkspace workspace, out EdmType modelEdmType) 167Type nonNullabelType = TypeSystem.GetNonNullableType(type);
System\Data\EntityClient\EntityDataReader.cs (2)
305public override Type GetFieldType(int ordinal) 387override public Type GetProviderSpecificFieldType(int ordinal)
System\Data\EntityClient\EntityParameterCollection.cs (1)
23private static Type ItemType = typeof(EntityParameter);
System\Data\EntityClient\EntityProviderFactory.cs (1)
108object IServiceProvider.GetService(Type serviceType) {
System\Data\EntityKey.cs (2)
1103Type entitySetKeyType = ((PrimitiveType)keyMemberEdmType).ClrEquivalentType; 1123var expectedClrEnumType = ((ClrEnumType)expectedEnumType).ClrType;
System\Data\Mapping\EntityViewGenerationAttribute.cs (4)
23public EntityViewGenerationAttribute(Type viewGenerationType) 25EntityUtil.CheckArgumentNull<Type>(viewGenerationType, "viewGenType"); 31private Type m_viewGenType; 35public Type ViewGenerationType
System\Data\Mapping\FunctionImportMapping.cs (5)
586this._convertedValues = new Memoizer<Type, object>(this.GetConditionValue, null); 590private readonly Memoizer<Type, object> _convertedValues; 606Type columnValueType = columnValue.GetType(); 613private object GetConditionValue(Type columnValueType) 627internal object GetConditionValue(Type columnValueType, Action handleTypeNotComparable, Action handleInvalidConditionValue)
System\Data\Mapping\ObjectTypeMapping.cs (1)
136Debug.Assert(!Type.ReferenceEquals(m_memberMapping, EmptyMemberMapping),
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
380Type viewContainerType = viewGenAttribute.ViewGenerationType;
System\Data\Mapping\StorageMappingItemLoader.cs (2)
3260Type clrMemberType = memberType.ClrEquivalentType; 3464private static bool TryGetTypedAttributeValue(XPathNavigator nav, string attributeName, Type clrType, string sourceLocation, IList<EdmSchemaError> parsingErrors, out object value)
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
536private static object Cast(object value, Type clrPrimitiveType)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (2)
467Type principalType = principalValue.GetType(); 474var columnClrEquivalentType = ((PrimitiveType)propertyType.EdmType).ClrEquivalentType;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (3)
541Type clrType; 542Type clrEnumType = null; 572Type userClrType = clrEnumType ?? clrType;
System\Data\Metadata\AspProxy.cs (4)
154Type hostingEnvType = _webAssembly.GetType("System.Web.Hosting.HostingEnvironment", true); 199Type buildManager; 204private bool TryGetBuildManagerType(out Type buildManager) 219Type buildManager;
System\Data\Metadata\ClrPerspective.cs (1)
43internal bool TryGetType(Type clrType, out TypeUsage outTypeUsage)
System\Data\Metadata\Converter.cs (1)
1058Type clrEnumUnderlyingType = enumUnderlyingType.Type.ClrEquivalentType;
System\Data\Metadata\Edm\ComplexType.cs (4)
109internal ClrComplexType(Type clrType, string cspaceNamespaceName, string cspaceTypeName) 120internal static ClrComplexType CreateReadonlyClrComplexType(Type clrType, string cspaceNamespaceName, string cspaceTypeName) 141internal override System.Type ClrType 143get { return Type.GetTypeFromHandle(_type); }
System\Data\Metadata\Edm\EdmType.cs (1)
208internal virtual System.Type ClrType
System\Data\Metadata\Edm\EntityType.cs (3)
245internal ClrEntityType(Type type, string cspaceNamespaceName, string cspaceTypeName) 272internal override System.Type ClrType 274get { return Type.GetTypeFromHandle(_type); }
System\Data\Metadata\Edm\EnumType.cs (4)
86internal EnumType(Type clrType) : 193internal ClrEnumType(Type clrType, string cspaceNamespaceName, string cspaceTypeName) 207internal override System.Type ClrType 209get { return Type.GetTypeFromHandle(_type); }
System\Data\Metadata\Edm\Facet.cs (1)
92Type valueType = value.GetType();
System\Data\Metadata\Edm\ItemCollection.cs (5)
43private Memoizer<Type, ICollection> _itemsCache; 197Memoizer<Type, ICollection> currentValueForItemCache = _itemsCache; 201Memoizer<Type, ICollection> itemsCache = 202new Memoizer<Type, ICollection>(InternalGetItems, null); 218internal ICollection InternalGetItems(Type type)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (24)
109internal static Action<object, object> CreateNavigationPropertySetter(Type declaringType, PropertyInfo navigationProperty) 112Type realType = navigationProperty.PropertyType; 129DynamicMethod method = CreateDynamicMethod(mi.Name, typeof(void), new Type[] { typeof(object), typeof(object) }); 150internal static ConstructorInfo GetConstructorForType(Type type) 153ConstructorInfo ci = type.GetConstructor(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, System.Type.EmptyTypes, null); 166internal static Delegate CreateConstructor(Type type) 171DynamicMethod method = CreateDynamicMethod(ci.DeclaringType.Name, typeof(object), Type.EmptyTypes); 210Type realType = mi.ReturnType; 221DynamicMethod method = CreateDynamicMethod(mi.Name, typeof(object), new Type[] { typeof(object) }); 232Type elementType; 310Type realType; 315DynamicMethod method = CreateDynamicMethod(mi.Name, typeof(void), new Type[] { typeof(object), typeof(object) }); 319Type elementType = realType; 372gen.Emit(OpCodes.Newobj, realType.GetConstructor(new Type[] { elementType })); 385gen.Emit(OpCodes.Call, typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public)); 388Debug.Assert(null != (Action<Object,Type,String,String>)EntityUtil.ThrowSetInvalidValue, "missing method ThrowSetInvalidValue(object,Type,string,string)"); 389gen.Emit(OpCodes.Call, typeof(EntityUtil).GetMethod("ThrowSetInvalidValue", BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(object),typeof(Type),typeof(string),typeof(string)},null)); 394internal static void ValidateSetterProperty(RuntimeTypeHandle entityDeclaringType, RuntimeMethodHandle setterMethodHandle, out MethodInfo setterMethodInfo, out Type realType) 454internal static bool IsPublic(Type type) 475MethodInfo genericCreateRelatedEndMethod = typeof(LightweightCodeGenerator).GetMethod("CreateGetRelatedEndMethod", BindingFlags.NonPublic | BindingFlags.Static, null, new Type[] { typeof(AssociationEndMember), typeof(AssociationEndMember), typeof(NavigationPropertyAccessor), typeof(NavigationPropertyAccessor) }, null); 527private static void ThrowConstructorNoParameterless(Type type) 590internal static DynamicMethod CreateDynamicMethod(string name, Type returnType, Type[] parameterTypes)
System\Data\Metadata\Edm\MetadataPropertyAttribute.cs (1)
48internal MetadataPropertyAttribute(Type type, bool isCollection)
System\Data\Metadata\Edm\MetadataPropertyCollection.cs (6)
34private readonly static Memoizer<Type, ItemTypeInformation> s_itemTypeMemoizer = 35new Memoizer<Type, ItemTypeInformation>(clrType => new ItemTypeInformation(clrType), null); 41Type type = item.GetType(); 47private static ItemTypeInformation GetItemTypeInformation(Type clrType) 62internal ItemTypeInformation(Type clrType) 82private static List<ItemPropertyInfo> GetItemProperties(Type clrType)
System\Data\Metadata\Edm\PrimitiveType.cs (3)
66internal PrimitiveType(Type clrType, 90internal override System.Type ClrType 145public Type ClrEquivalentType
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (4)
58internal bool TryGetPrimitiveType(Type clrType, out PrimitiveType primitiveType) 78internal bool TryGetPrimitiveTypeKind(Type clrType, out PrimitiveTypeKind resolvedPrimitiveTypeKind) 84switch (Type.GetTypeCode(clrType)) 235private PrimitiveType CreatePrimitiveType(Type clrType, PrimitiveTypeKind primitiveTypeKind)
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (1)
212Type clrType)
System\Data\Metadata\Helper.cs (1)
72Type clrType)
System\Data\Metadata\MetadataWorkspace.cs (1)
397internal void ImplicitLoadAssemblyForType(Type type, Assembly callingAssembly)
System\Data\Metadata\ObjectItemCollection.cs (11)
191internal bool ImplicitLoadAssemblyForType(Type type, EdmItemCollection edmItemCollection) 209foreach (Type t in type.GetGenericArguments()) 223internal AssociationType GetRelationshipType(Type entityClrType, string relationshipName) 263internal static AssociationType GetRelationshipTypeExpensiveWay(Type entityClrType, string relationshipName) 448public Type GetClrType(StructuralType objectSpaceType) 461public bool TryGetClrType(StructuralType objectSpaceType, out Type clrType) 472public Type GetClrType(EnumType objectSpaceType) 485public bool TryGetClrType(EnumType objectSpaceType, out Type clrType) 496private static Type GetClrType(EdmType objectSpaceType) 501Type clrType; 518private static bool TryGetClrType(EdmType objectSpaceType, out Type clrType)
System\Data\Metadata\ObjectLayer\ObjectItemAssemblyLoader.cs (1)
156protected bool TryGetPrimitiveType(Type type, out PrimitiveType primitiveType)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (13)
86private bool TryGetLoadedType(Type clrType, out EdmType edmType) 107Type genericType = clrType.GetGenericTypeDefinition(); 137private bool TryGetCachedEdmType(Type clrType, out EdmType edmType) 168foreach (Type type in EntityUtil.GetTypesSpecial(SourceAssembly)) 237Type r1Type = roleAttribute.Role1Type; 244Type r2Type = roleAttribute.Role2Type; 256private void ResolveAssociationEnd(AssociationType associationType, string roleName, Type clrType, RelationshipMultiplicity multiplicity) 274private void LoadType(Type clrType) 368private EdmType ResolveBaseType(Type type) 427private bool TryGetRelationshipEndEntityType(Type type, out EntityType entityType) 615private EdmMember LoadScalarProperty(Type clrType, PropertyInfo property, out bool isEntityKeyProperty) 716private void TrackClosure(Type type) 736foreach (Type genericArgument in type.GetGenericArguments())
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (20)
37foreach (Type type in EntityUtil.GetTypesSpecial(SourceAssembly)) 86private bool TryGetCSpaceTypeMatch(Type type, out EdmType cspaceType) 116private bool TryCreateType(Type type, EdmType cspaceType, out EdmType newOSpaceType) 151private bool TryCreateStructuralType(Type type, StructuralType cspaceType, out EdmType newOSpaceType) 216private bool TryCreateEnumType(Type enumType, EnumType cspaceEnumType, out EdmType newOSpaceType) 244private bool UnderlyingEnumTypesMatch(Type enumType, EnumType cspaceEnumType) 280private bool EnumMembersMatch(Type enumType, EnumType cspaceEnumType) 288var enumUnderlyingType = enumType.GetEnumUnderlyingType(); 335private EdmType ResolveBaseType(StructuralType baseCSpaceType, Type type) 353private bool TryCreateMembers(Type type, StructuralType cspaceType, StructuralType ospaceType, List<Action> referenceResolutionListForCurrentType) 383private bool TryFindComplexProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties, List<Action> referenceResolutionListForCurrentType) 417private bool TryFindNavigationProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties, List<Action> referenceResolutionListForCurrentType) 459private void TrackClosure(Type type) 478foreach (Type genericArgument in type.GetGenericArguments()) 485private void CreateAndAddComplexType(Type type, StructuralType ospaceType, EdmProperty cspaceProperty, PropertyInfo clrProperty) 561private bool TryFindAndCreatePrimitiveProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties) 599private bool TryFindAndCreateEnumProperties(Type type, StructuralType cspaceType, StructuralType ospaceType, PropertyInfo[] clrProperties, List<Action> referenceResolutionListForCurrentType) 638private void CreateAndAddEnumProperty(Type type, StructuralType ospaceType, EdmProperty cspaceProperty, PropertyInfo clrProperty) 734internal static bool TypesMatchByConvention(Type type, EdmType cspaceType) 739private void AddScalarMember(Type type, PropertyInfo clrProperty, StructuralType ospaceType, EdmProperty cspaceProperty, EdmType propertyType)
System\Data\Metadata\TypeHelpers.cs (3)
698internal static DbType ConvertClrTypeToDbType(Type clrType) 700switch (Type.GetTypeCode(clrType)) 764throw EntityUtil.UnknownDataTypeCode(clrType, Type.GetTypeCode(clrType));
System\Data\Objects\CompiledQuery.cs (4)
571Type elementType = GetElementType(typeof(TResult), out isSingleton); 592private static Type GetElementType(Type resultType, out bool isSingleton) 594Type elementType = TypeSystem.GetElementType(resultType);
System\Data\Objects\DataClasses\EdmRelationshipRoleAttribute.cs (8)
25private readonly Type _role1Type; 26private readonly Type _role2Type; 39Type role1Type, 42Type role2Type) 66Type role1Type, 69Type role2Type, 121public Type Role1Type 144public Type Role2Type
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
574Type parameterClrType = Helper.IsPrimitiveType(parameterEdmType) ?
System\Data\Objects\DataClasses\RelationshipManager.cs (4)
494Type sourceType = sourceEntityType.ClrType; 700internal static bool TryGetRelationshipType(IEntityWrapper wrappedOwner, Type entityClrType, string relationshipName, out AssociationType associationType) 715private AssociationType GetRelationshipType(Type entityClrType, string relationshipName) 764private IEnumerable<AssociationEndMember> GetAllTargetEnds(Type entityClrType)
System\Data\Objects\DataRecordObjectView.cs (6)
39internal DataRecordObjectView(IObjectViewData<DbDataRecord> viewData, object eventDataSource, RowType rowType, Type propertyComponentType) 56/// <see cref="Type"/> that may define the appropriate indexer. 70private static PropertyInfo GetTypedIndexer(Type type) 113private static Type GetListItemType(Type type) 115Type itemType;
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (1)
41internal CompiledELinqQueryState(Type elementType, ObjectContext context, LambdaExpression lambda, Guid cacheToken, object[] parameterValues)
System\Data\Objects\ELinq\ELinqQueryState.cs (2)
50internal ELinqQueryState(Type elementType, ObjectContext context, Expression expression) 72internal ELinqQueryState(Type elementType, ObjectQuery query, Expression expression)
System\Data\Objects\ELinq\ExpressionConverter.cs (25)
41private Dictionary<Type, InitializerMetadata> _initializers; 305_initializers = new Dictionary<Type, InitializerMetadata>(); 524private TypeUsage GetCastTargetType(TypeUsage fromType, Type toClrType, Type fromClrType, bool preserveCastForDateTime) 554private static TypeUsage ValidateAndAdjustCastTypes(TypeUsage toType, TypeUsage fromType, Type toClrType, Type fromClrType) 627private TypeUsage GetIsOrAsTargetType(TypeUsage fromType, ExpressionType operationType, Type toClrType, Type fromClrType) 751private DbExpression CreateCastExpression(DbExpression source, Type toClrType, Type fromClrType) 928private DbExpression AlignTypes(DbExpression cqt, Type toClrType) 930Type fromClrType = null; // not used in this code path 943private void CheckInitializerType(Type type) 1003private TypeUsage GetValueLayerType(Type linqType) 1014private bool TryGetValueLayerType(Type linqType, out TypeUsage type) 1017Type nonNullableType = TypeSystem.GetNonNullableType(linqType); 1035Type elementType = TypeSystem.GetElementType(nonNullableType); 1070private static void VerifyTypeSupportedForComparison(Type clrType, TypeUsage edmType, Stack<EdmMember> memberPath) 1113private static void VerifyRowTypeSupportedForComparison(Type clrType, RowType rowType, Stack<EdmMember> memberPath) 1130internal static string DescribeClrType(Type clrType) 1168private DbExpression CreateIsNullExpression(DbExpression operand, Type operandClrType) 1178private DbExpression CreateEqualsExpression(DbExpression left, DbExpression right, EqualsPattern pattern, Type leftClrType, Type rightClrType) 1537Type memberType; 1565Type memberType;
System\Data\Objects\ELinq\Funcletizer.cs (5)
288private bool TryGetTypeUsageForTerminal(Type type, out TypeUsage typeUsage) 550private Expression InlineObjectQuery(ObjectQuery inlineQuery, Type expressionType) 601private readonly Type _type; 643Type delegateType = TypeSystem.GetDelegateType(_compiledQueryParameters.Select(p => p.Type), _type); 676public override Type Type
System\Data\Objects\ELinq\InitializerFacet.cs (22)
32internal readonly Type ClrType; 38private InitializerMetadata(Type clrType) 61internal static InitializerMetadata CreateGroupingInitializer(EdmItemCollection itemCollection, Type resultType) 86internal static InitializerMetadata CreateEntityCollectionInitializer(EdmItemCollection itemCollection, Type type, NavigationProperty navigationProperty) 144internal abstract IEnumerable<Type> GetChildTypes(); 207internal GroupingInitializerMetadata(Type type) 223Type keyType = this.ClrType.GetGenericArguments()[0]; 224Type groupElementType = this.ClrType.GetGenericArguments()[1]; 225Type groupType = typeof(Grouping<,>).MakeGenericType(keyType, groupElementType); 234internal override IEnumerable<Type> GetChildTypes() 239Type keyType = this.ClrType.GetGenericArguments()[0]; 240Type groupElementType = this.ClrType.GetGenericArguments()[1]; 312internal override IEnumerable<Type> GetChildTypes() 341internal override IEnumerable<Type> GetChildTypes() 414internal override IEnumerable<Type> GetChildTypes() 420Type memberType; 443internal EntityCollectionInitializerMetadata(Type type, NavigationProperty navigationProperty) 474Type elementType = GetElementType(); 507internal override IEnumerable<Type> GetChildTypes() 509Type elementType = GetElementType(); 522private Type GetElementType() 526Type elementType;
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (2)
261Type parameterType = m.Method.GetParameters()[0].ParameterType; 282Type declaringType = m.Method.DeclaringType;
System\Data\Objects\ELinq\MethodCallTranslator.cs (81)
75Type[] genericArguments; 335Type declaringType = method.DeclaringType; 348Type argumentType = convertExpression.Operand.Type; 586Type stringsType = vbAssembly.GetType(s_stringsTypeFullName); 589stringsType.GetMethod("Mid", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(int) }, null), 590stringsType.GetMethod("Mid", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(int), typeof(int) }, null)); 728private DbExpression ValidateReturnType(DbExpression result, TypeUsage actualReturnType, ExpressionConverter parent, MethodCallExpression call, Type clrReturnType, bool isElementOfCollection) 740Type genericType = clrReturnType.GetGenericTypeDefinition(); 745Type elementType = clrReturnType.GetGenericArguments()[0]; 822typeof(Math).GetMethod("Ceiling", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null), 823typeof(Math).GetMethod("Ceiling", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double) }, null), 824typeof(Math).GetMethod("Floor", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null), 825typeof(Math).GetMethod("Floor", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double) }, null), 826typeof(Math).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null), 827typeof(Math).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double) }, null), 828typeof(Math).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal), typeof(int) }, null), 829typeof(Math).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double), typeof(int) }, null), 832typeof(Decimal).GetMethod("Floor", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null), 833typeof(Decimal).GetMethod("Ceiling", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null), 834typeof(Decimal).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal) }, null), 835typeof(Decimal).GetMethod("Round", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(decimal), typeof(int) }, null), 838typeof(String).GetMethod("Replace", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(String), typeof(String) }, null), 839typeof(String).GetMethod("ToLower", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { }, null), 840typeof(String).GetMethod("ToUpper", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { }, null), 841typeof(String).GetMethod("Trim", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { }, null), 845foreach (Type argType in new [] { typeof(decimal), typeof(double), typeof(float), typeof(int), typeof(long), typeof(sbyte), typeof(short) }) 847result.Add(typeof(Math).GetMethod("Abs", BindingFlags.Public | BindingFlags.Static, null, new Type[] { argType }, null)); 919yield return typeof(EntityFunctions).GetMethod(ExpressionConverter.AsUnicode, BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null); 930yield return typeof(EntityFunctions).GetMethod(ExpressionConverter.AsNonUnicode, BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null); 940typeof(Math).GetMethod("Pow", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(double), typeof(double) }, null), 960typeof(Guid).GetMethod("NewGuid", BindingFlags.Public | BindingFlags.Static, null, Type.EmptyTypes, null), 980yield return typeof(String).GetMethod("Contains", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null); 1010yield return typeof(String).GetMethod("IndexOf", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null); 1032yield return typeof(String).GetMethod("StartsWith", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null); 1063yield return typeof(String).GetMethod("EndsWith", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null); 1096yield return typeof(String).GetMethod("Substring", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int) }, null); 1097yield return typeof(String).GetMethod("Substring", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(int) }, null); 1135yield return typeof(String).GetMethod("Remove", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int) }, null); 1136yield return typeof(String).GetMethod("Remove", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(int) }, null); 1217yield return typeof(String).GetMethod("Insert", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(string) }, null); 1260yield return typeof(String).GetMethod("IsNullOrEmpty", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null); 1289yield return typeof(String).GetMethod("Concat", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(string) }, null); 1290yield return typeof(String).GetMethod("Concat", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(string), typeof(string) }, null); 1291yield return typeof(String).GetMethod("Concat", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(string), typeof(string), typeof(string) }, null); 1365yield return typeof(String).GetMethod("Trim", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(Char[]) }, null); 1375yield return typeof(String).GetMethod("TrimStart", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(Char[]) }, null); 1385yield return typeof(String).GetMethod("TrimEnd", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(Char[]) }, null); 1402Type stringsType = vbAssembly.GetType(s_stringsTypeFullName); 1403yield return stringsType.GetMethod("Trim", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null); 1404yield return stringsType.GetMethod("LTrim", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null); 1405yield return stringsType.GetMethod("RTrim", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string) }, null); 1406yield return stringsType.GetMethod("Left", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(int) }, null); 1407yield return stringsType.GetMethod("Right", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(string), typeof(int) }, null); 1410Type dateTimeType = vbAssembly.GetType(s_dateAndTimeTypeFullName); 1411yield return dateTimeType.GetMethod("Year", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null); 1412yield return dateTimeType.GetMethod("Month", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null); 1413yield return dateTimeType.GetMethod("Day", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null); 1414yield return dateTimeType.GetMethod("Hour", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null); 1415yield return dateTimeType.GetMethod("Minute", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null); 1416yield return dateTimeType.GetMethod("Second", BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(DateTime) }, null); 1438Type stringsType = vbAssembly.GetType(s_stringsTypeFullName); 1439yield return GetMethod(stringsType, "Len", ExpressionConverter.Length, new Type[] { typeof(string) }); 1440yield return GetMethod(stringsType, "Mid", ExpressionConverter.Substring, new Type[] { typeof(string), typeof(int), typeof(int) }); 1441yield return GetMethod(stringsType, "UCase", ExpressionConverter.ToUpper, new Type[] { typeof(string) }); 1442yield return GetMethod(stringsType, "LCase", ExpressionConverter.ToLower, new Type[] { typeof(string) }); 1445private static MethodInfo GetMethod(Type declaringType, string methodName, string canonicalFunctionName, Type[] argumentTypes) 1485Type dateAndTimeType = vbAssembly.GetType(s_dateAndTimeTypeFullName); 1486Type dateIntervalEnum = vbAssembly.GetType(s_DateIntervalFullName); 1487Type firstDayOfWeekEnum = vbAssembly.GetType(s_FirstDayOfWeekFullName); 1488Type firstWeekOfYearEnum = vbAssembly.GetType(s_FirstWeekOfYearFullName); 1491new Type[] { dateIntervalEnum, typeof(DateTime), firstDayOfWeekEnum, firstWeekOfYearEnum }, null); 2064Type clrType = call.Method.GetGenericArguments()[0]; 2211private static DbExpression GetDefaultValue(ExpressionConverter parent, Type resultType) 2213Type elementType = TypeSystem.GetElementType(resultType); 2231private static DbExpression TranslateContainsHelper(ExpressionConverter parent, CqtExpression left, IEnumerable<DbExpression> rightList, EqualsPattern pattern, Type leftType, Type rightType) 2245Type sourceArgumentType = TypeSystem.GetElementType(sourceExpression.Type); 2322internal static CqtExpression AddDefaultCase(ExpressionConverter parent, CqtExpression element, Type elementType) 2721Type toClrType = TypeSystem.GetElementType(call.Type); 2722Type fromClrType = TypeSystem.GetElementType(call.Arguments[0].Type);
System\Data\Objects\ELinq\ObjectQueryProvider.cs (2)
110Type elementType = TypeSystem.GetElementType(expression.Type); 161private ObjectQuery CreateQuery(Expression expression, Type ofType)
System\Data\Objects\ELinq\ReflectionUtil.cs (5)
432Dictionary<Type, int> genericArgumentOrdinals = null; 437.Select((t, i) => new KeyValuePair<Type, int>(t, i)) 465private static void AppendCanonicalTypeDescription(Type type, Dictionary<Type, int> genericArgumentOrdinals, StringBuilder description) 483foreach (Type genericArgument in type.GetGenericArguments())
System\Data\Objects\ELinq\Translator.cs (27)
82Type elementType = TypeSystem.GetElementType(linq.Type); 143var nonNullableLinqType = TypeSystem.GetNonNullableType(linq.Type); 165Type memberType; 365Type propertyType = ((PropertyInfo)clrMember).PropertyType; 381private static DbExpression TranslateCount(ExpressionConverter parent, Type sequenceElementType, Expression sequence) 439private readonly Type _elementType; 441private GenericICollectionTranslator(Type elementType) : base(Enumerable.Empty<PropertyInfo>()) 464foreach (KeyValuePair<Type, Type> implementedCollectionInfo in GetImplementedICollections(propertyInfo.DeclaringType)) 466Type implementedCollection = implementedCollectionInfo.Key; 467Type elementType = implementedCollectionInfo.Value; 482private static bool IsICollection(Type candidateType, out Type elementType) 494private static IEnumerable<KeyValuePair<Type, Type>> GetImplementedICollections(Type type) 496Type collectionElementType; 499yield return new KeyValuePair<Type, Type>(type, collectionElementType); 503foreach (Type interfaceType in type.GetInterfaces()) 507yield return new KeyValuePair<Type, Type>(interfaceType, collectionElementType); 583private static PropertyInfo GetProperty(Type declaringType, string propertyName, BindingFlags bindingFlages, string canonicalFunctionName) 728Type memberType; 837Type memberType; 1268Type toClrType = unary.Type; 1269Type fromClrType = unary.Operand.Type;
System\Data\Objects\ELinq\TypeSystem.cs (30)
28internal static object GetDefaultValue(Type type) 42internal static bool IsSequenceType(Type seqType) 47internal static Type GetDelegateType(IEnumerable<Type> inputTypes, Type returnType) 52inputTypes = inputTypes ?? Enumerable.Empty<Type>(); 54Type[] typeArgs = new Type[argCount + 1]; 56foreach (Type typeArg in inputTypes) 63Type delegateType; 89internal static Expression EnsureType(Expression expression, Type requiredType) 107internal static MemberInfo PropertyOrField(MemberInfo member, out string name, out Type type) 151private static Type FindIEnumerable(Type seqType) 160foreach (Type arg in seqType.GetGenericArguments()) 162Type ienum = typeof(IEnumerable<>).MakeGenericType(arg); 169Type[] ifaces = seqType.GetInterfaces(); 172foreach (Type iface in ifaces) 174Type ienum = FindIEnumerable(iface); 184internal static Type GetElementType(Type seqType) 186Type ienum = FindIEnumerable(seqType); 190internal static bool IsNullableType(Type type) 192var nonNullableType = GetNonNullableType(type); 196internal static Type GetNonNullableType(Type type) 206internal static bool IsImplementationOfGenericInterfaceMethod(this MethodInfo test, Type match, out Type[] genericTypeArguments) 223foreach (Type testInterface in test.DeclaringType.GetInterfaces()) 240internal static bool IsImplementationOf(this PropertyInfo propertyInfo, Type interfaceType)
System\Data\Objects\EntityEntry.cs (1)
920override internal Type GetFieldType(int ordinal, StateManagerTypeMetadata metadata)
System\Data\Objects\FieldDescriptor.cs (7)
24private readonly Type _fieldType; 25private readonly Type _itemType; 39internal FieldDescriptor(Type itemType, bool isReadOnly, EdmProperty property) 54private Type DetermineClrType(TypeUsage typeUsage) 56Type result = null; 112public override Type ComponentType 120public override Type PropertyType
System\Data\Objects\Internal\BaseEntityWrapper.cs (3)
37private Type _identityType; 69protected BaseEntityWrapper(TEntity entity, RelationshipManager relationshipManager, EntitySet entitySet, ObjectContext context, MergeOption mergeOption, Type identityType) 202public Type IdentityType
System\Data\Objects\Internal\EntityProxyFactory.cs (80)
49private static Dictionary<Tuple<Type, string>, EntityProxyTypeInfo> s_ProxyNameMap = new Dictionary<Tuple<Type, string>, EntityProxyTypeInfo>(); 53private static Dictionary<Type, EntityProxyTypeInfo> s_ProxyTypeMap = new Dictionary<Type, EntityProxyTypeInfo>(); 74ConstructorInfo securityTransparentAttributeConstructor = typeof(SecurityTransparentAttribute).GetConstructor(Type.EmptyTypes); 78ConstructorInfo securityRulesAttributeConstructor = typeof(SecurityRulesAttribute).GetConstructor(new Type[] { typeof(SecurityRuleSet) }); 102internal static bool TryGetProxyType(Type clrType, string entityTypeName, out EntityProxyTypeInfo proxyTypeInfo) 107return s_ProxyNameMap.TryGetValue(new Tuple<Type, string>(clrType, entityTypeName), out proxyTypeInfo); 115internal static bool TryGetProxyType(Type proxyType, out EntityProxyTypeInfo proxyTypeInfo) 240Tuple<Type, string> proxyIdentiy = new Tuple<Type, string>(clrEntityType.ClrType, clrEntityType.HashedDescription); 275internal static bool IsProxyType(Type type) 291internal static IEnumerable<Type> GetKnownProxyTypes() 307public Func<object, object> CreateBaseGetter(Type declaringType, PropertyInfo propertyInfo) 321Type type = entity.GetType(); 334private static bool TryGetBasePropertyValue(Type proxyType, string propertyName, object entity, out object value) 346public Action<object, object> CreateBaseSetter(Type declaringType, PropertyInfo propertyInfo) 355Type type = entity.GetType(); 367private static bool TrySetBasePropertyValue(Type proxyType, string propertyName, object entity, object value) 396Type proxyType = proxyTypeBuilder.CreateType(moduleBuilder); 458private static void InterceptMember(EdmMember member, Type proxyType, EntityProxyTypeInfo proxyTypeInfo) 495private static void SetResetFKSetterFlagDelegate(Type proxyType, EntityProxyTypeInfo proxyTypeInfo) 539private static void SetCompareByteArraysDelegate(Type proxyType, EntityProxyTypeInfo proxyTypeInfo) 568ConstructorInfo ctor = ospaceEntityType.ClrType.GetConstructor(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, Type.EmptyTypes, null); 631public Type BaseType 636public DynamicMethod CreateInitalizeCollectionMethod(Type proxyType) 662public Type CreateType(ModuleBuilder moduleBuilder) 675PropertyBuilder propertyBuilder = TypeBuilder.DefineProperty(member.Name, System.Reflection.PropertyAttributes.None, baseProperty.PropertyType, Type.EmptyTypes); 743MethodBuilder getterBuilder = typeBuilder.DefineMethod("get_" + baseProperty.Name, getterAccess | getterAttributes, baseProperty.PropertyType, Type.EmptyTypes); 763MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 785private static readonly ConstructorInfo s_NonSerializedAttributeConstructor = typeof(NonSerializedAttribute).GetConstructor(Type.EmptyTypes); 786private static readonly ConstructorInfo s_IgnoreDataMemberAttributeConstructor = typeof(IgnoreDataMemberAttribute).GetConstructor(Type.EmptyTypes); 787private static readonly ConstructorInfo s_XmlIgnoreAttributeConstructor = typeof(System.Xml.Serialization.XmlIgnoreAttribute).GetConstructor(Type.EmptyTypes); 788private static readonly ConstructorInfo s_ScriptIgnoreAttributeConstructor = TryGetScriptIgnoreAttributeType().GetConstructor(Type.EmptyTypes); 790private static Type TryGetScriptIgnoreAttributeType() 888Type interceptorType = typeof(Func<,,>).MakeGenericType(typeBuilder, baseProperty.PropertyType, typeof(bool)); 893MethodBuilder getterBuilder = typeBuilder.DefineMethod("get_" + baseProperty.Name, getterAccess | getterAttributes, baseProperty.PropertyType, Type.EmptyTypes); 979static readonly MethodInfo s_StringEquals = typeof(string).GetMethod("op_Equality", new Type[] { typeof(string), typeof(string) }); 980static readonly ConstructorInfo s_InvalidOperationConstructor = typeof(InvalidOperationException).GetConstructor(Type.EmptyTypes); 985MethodBuilder getterBuilder = typeBuilder.DefineMethod("GetBasePropertyValue", MethodAttributes.Public | MethodAttributes.HideBySig, typeof(object), new Type[] { typeof(string) }); 1007MethodBuilder setterBuilder = typeBuilder.DefineMethod("SetBasePropertyValue", MethodAttributes.Public | MethodAttributes.HideBySig, typeof(void), new Type[] { typeof(string), typeof(object) }); 1051static readonly MethodInfo s_EntityMemberChanging = typeof(IEntityChangeTracker).GetMethod("EntityMemberChanging", new Type[] { typeof(string) }); 1052static readonly MethodInfo s_EntityMemberChanged = typeof(IEntityChangeTracker).GetMethod("EntityMemberChanged", new Type[] { typeof(string) }); 1053static readonly MethodInfo s_CreateRelationshipManager = typeof(RelationshipManager).GetMethod("Create", new Type[] { typeof(IEntityWithRelationships) }); 1055static readonly MethodInfo s_GetRelatedReference = typeof(RelationshipManager).GetMethod("GetRelatedReference", new Type[] { typeof(string), typeof(string) }); 1056static readonly MethodInfo s_GetRelatedCollection = typeof(RelationshipManager).GetMethod("GetRelatedCollection", new Type[] { typeof(string), typeof(string) }); 1057static readonly MethodInfo s_GetRelatedEnd = typeof(RelationshipManager).GetMethod("GetRelatedEnd", new Type[] { typeof(string), typeof(string) }); 1058static readonly MethodInfo s_ObjectEquals = typeof(object).GetMethod("Equals", new Type[] { typeof(object), typeof(object) }); 1059static readonly ConstructorInfo s_InvalidOperationConstructor = typeof(InvalidOperationException).GetConstructor(new Type[] { typeof(string) }); 1061static readonly MethodInfo s_Action_Invoke = typeof(Action<object>).GetMethod("Invoke", new Type[] { typeof(object) }); 1062static readonly MethodInfo s_Func_object_object_bool_Invoke = typeof(Func<object, object, bool>).GetMethod("Invoke", new Type[] { typeof(object), typeof(object) }); 1064private static readonly ConstructorInfo s_BrowsableAttributeConstructor = typeof(BrowsableAttribute).GetConstructor(new Type[] { typeof(bool) }); 1068Type baseType = ospaceEntityType.ClrType; 1145public Type[] Interfaces 1149List<Type> types = new List<Type>(); 1156public DynamicMethod CreateInitalizeCollectionMethod(Type proxyType) 1160DynamicMethod initializeEntityCollections = LightweightCodeGenerator.CreateDynamicMethod(proxyType.Name + "_InitializeEntityCollections", typeof(IEntityWrapper), new Type[] { typeof(IEntityWrapper) }); 1230MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1247Type propertyType = baseProperty.PropertyType; 1278MethodInfo op_inequality = propertyType.GetMethod("op_Inequality", new Type[] { propertyType, propertyType }); 1354MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1376MethodBuilder setterBuilder = typeBuilder.DefineMethod("set_" + baseProperty.Name, methodAccess | methodAttributes, null, new Type[] { baseProperty.PropertyType }); 1407_entityMemberChanging = typeBuilder.DefineMethod("EntityMemberChanging", MethodAttributes.Private | MethodAttributes.HideBySig, typeof(void), new Type[] { typeof(string) }); 1421_entityMemberChanged = typeBuilder.DefineMethod("EntityMemberChanged", MethodAttributes.Private | MethodAttributes.HideBySig, typeof(void), new Type[] { typeof(string) }); 1436typeof(void), new Type[] { typeof(IEntityChangeTracker) }); 1449PropertyBuilder relationshipManagerProperty = typeBuilder.DefineProperty("RelationshipManager", System.Reflection.PropertyAttributes.None, typeof(RelationshipManager), Type.EmptyTypes); 1453typeof(RelationshipManager), Type.EmptyTypes); 1515private static readonly ConstructorInfo s_DataContractAttributeConstructor = typeof(DataContractAttribute).GetConstructor(Type.EmptyTypes); 1520private readonly Type _baseClrType; 1556private readonly Type _baseClrType; 1581_serializationConstructor = _baseClrType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { typeof(SerializationInfo), typeof(StreamingContext) }, null); 1616Type[] parameterTypes = new Type[] { typeof(SerializationInfo), typeof(StreamingContext) }; 1617MethodInfo getTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle", new Type[] { typeof(RuntimeTypeHandle) }); 1618MethodInfo addValue = typeof(SerializationInfo).GetMethod("AddValue", new Type[] { typeof(string), typeof(object), typeof(Type) }); 1619MethodInfo getValue = typeof(SerializationInfo).GetMethod("GetValue", new Type[] { typeof(string), typeof(Type) });
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (5)
26private readonly Type _proxyType; 46internal EntityProxyTypeInfo(Type proxyType, ClrEntityType ospaceEntityType, DynamicMethod initializeCollections, List<PropertyInfo> baseGetters, List<PropertyInfo> baseSetters) 113MethodInfo baseGetterMethod = proxyType.GetMethod("GetBasePropertyValue", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string) }, null); 122MethodInfo baseSetterMethod = proxyType.GetMethod("SetBasePropertyValue", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string), typeof(object) }, null); 141internal Type ProxyType
System\Data\Objects\Internal\EntitySqlQueryBuilder.cs (5)
113private static ObjectQueryState NewBuilderQuery(ObjectQueryState sourceQuery, Type elementType, StringBuilder queryText, Span newSpan, IEnumerable<ObjectParameter> enumerableParams) 118private static ObjectQueryState NewBuilderQuery(ObjectQueryState sourceQuery, Type elementType, StringBuilder queryText, bool allowsLimit, Span newSpan, IEnumerable<ObjectParameter> enumerableParams) 200private static ObjectQueryState BuildSelectOrSelectValue(ObjectQueryState query, string alias, string projection, ObjectParameter[] parameters, string projectOp, Type elementType) 402internal static ObjectQueryState OfType(ObjectQueryState query, EdmType newType, Type clrOfType) 466internal static ObjectQueryState SelectValue(ObjectQueryState query, string alias, string projection, ObjectParameter[] parameters, Type projectedType)
System\Data\Objects\Internal\EntitySqlQueryState.cs (2)
63internal EntitySqlQueryState(Type elementType, string commandText, bool allowsLimit, ObjectContext context, ObjectParameterCollection parameters, Span span) 84internal EntitySqlQueryState(Type elementType, string commandText, DbExpression expression, bool allowsLimit, ObjectContext context, ObjectParameterCollection parameters, Span span)
System\Data\Objects\Internal\EntityWrapper.cs (3)
41internal EntityWrapperWithoutRelationships(TEntity entity, EntityKey key, EntitySet entitySet, ObjectContext context, MergeOption mergeOption, Type identityType, 102internal EntityWrapperWithRelationships(TEntity entity, EntityKey key, EntitySet entitySet, ObjectContext context, MergeOption mergeOption, Type identityType, 194protected EntityWrapper(TEntity entity, RelationshipManager relationshipManager, EntityKey key, EntitySet set, ObjectContext context, MergeOption mergeOption, Type identityType,
System\Data\Objects\Internal\EntityWrapperFactory.cs (4)
29private static readonly Memoizer<Type, Func<object, IEntityWrapper>> _delegateCache = new Memoizer<Type, Func<object, IEntityWrapper>>(CreateWrapperDelegate, null); 80private static Func<object, IEntityWrapper> CreateWrapperDelegate(Type entityType) 143Type entityType = typeof(TEntity);
System\Data\Objects\Internal\IEntityWrapper.cs (1)
123Type IdentityType { get; }
System\Data\Objects\Internal\LazyLoadBehavior.cs (2)
128Type propertyValueType = propertyInfo.PropertyType; 132Type elementType;
System\Data\Objects\Internal\LightweightEntityWrapper.cs (1)
56internal LightweightEntityWrapper(TEntity entity, EntityKey key, EntitySet entitySet, ObjectContext context, MergeOption mergeOption, Type identityType)
System\Data\Objects\Internal\NullEntityWrapper.cs (1)
149public Type IdentityType
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (1)
51internal static ObjectQueryExecutionPlan Prepare(ObjectContext context, DbQueryCommandTree tree, Type elementType, MergeOption mergeOption, Span span, CompiledQueryParameters compiledQueryParameters, AliasGenerator aliasGenerator)
System\Data\Objects\Internal\ObjectQueryState.cs (4)
47private readonly Type _elementType; 81protected ObjectQueryState(Type elementType, ObjectContext context, ObjectParameterCollection parameters, Span span) 103protected ObjectQueryState(Type elementType, ObjectQuery query) 112internal Type ElementType { get { return _elementType; } }
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (19)
49Type type = GetDeclaringType(relatedEnd); 81Type type = GetDeclaringType(relatedEnd); 101private static Type GetDeclaringType(RelatedEnd relatedEnd) 115private static Type GetNavigationPropertyType(Type entityType, string propertyName) 117Type navPropType; 181private static Action<object, object> CreateCollectionAddFunction(Type type, string propertyName) 183Type navPropType = GetNavigationPropertyType(type, propertyName); 184Type elementType = EntityUtil.GetCollectionElementType(navPropType); 185Type collectionType = typeof(ICollection<>).MakeGenericType(elementType); 241private static Func<object, object, bool> CreateCollectionRemoveFunction(Type type, string propertyName) 243Type navPropType = GetNavigationPropertyType(type, propertyName); 244Type elementType = EntityUtil.GetCollectionElementType(navPropType); 245Type collectionType = typeof(ICollection<>).MakeGenericType(elementType); 280Type entityType = _entity.GetType(); 282Type navPropType = GetNavigationPropertyType(entityType, propName); 294private static Func<object> CreateCollectionCreateDelegate(Type entityType, Type navigationPropertyType, string propName) 296var typeToInstantiate = EntityUtil.DetermineCollectionType(navigationPropertyType);
System\Data\Objects\ObjectContext.cs (11)
1284private EntitySet GetEntitySetForType(Type entityCLRType, string exceptionParameterName) 1327private EntitySet GetEntitySetFromContainer(EntityContainer container, Type entityCLRType, string exceptionParameterName) 1378private EntitySet GetEntitySetForNameAndType(string entitySetName, Type entityCLRType, string exceptionParameterName) 1903private void ValidateEntitySet(EntitySet entitySet, Type entityType) 1912internal TypeUsage GetTypeUsage(Type entityCLRType) 2888public void CreateProxyTypes(IEnumerable<Type> types) 2914public static IEnumerable<Type> GetKnownProxyTypes() 2931public static Type GetObjectType(Type type) 2956Type clrType = typeof(T); 3168Type unwrappedTElement = Nullable.GetUnderlyingType(typeof(TElement)) ?? typeof(TElement);
System\Data\Objects\ObjectParameter.cs (5)
78public ObjectParameter (string name, Type type) 188private Type _type; 196private Type _mappableType; 232public Type ParameterType 291internal Type MappableType
System\Data\Objects\ObjectQuery.cs (1)
93Type IQueryable.ElementType
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (1)
367Type clrOfType = typeof(TResultType);
System\Data\Objects\ObjectQuery_TResultType.cs (1)
130Type objectQueryType = typeof(ObjectQuery<T>);
System\Data\Objects\ObjectResult.cs (1)
60public abstract Type ElementType
System\Data\Objects\ObjectResult_TResultType.cs (1)
144public override Type ElementType
System\Data\Objects\ObjectStateEntry.cs (1)
324abstract internal Type GetFieldType(int ordinal, StateManagerTypeMetadata metadata);
System\Data\Objects\ObjectStateEntryBaseUpdatableDataRecord.cs (2)
219return ((Type)GetFieldType(ordinal)).Name; 253public override Type GetFieldType(int ordinal)
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (1)
186public override Type GetFieldType(int ordinal)
System\Data\Objects\ObjectStateEntryOriginalDbUpdatableDataRecord.cs (1)
106Type memberClrType = member.ClrType;
System\Data\Objects\ObjectStateManager.cs (3)
309var identityType = wrappedEntity.IdentityType; 310var actualType = wrappedEntity.Entity.GetType(); 2973internal StateManagerTypeMetadata GetOrAddStateManagerTypeMetadata(Type entityType, EntitySet entitySet)
System\Data\Objects\ObjectStateManagerMetadata.cs (4)
23internal readonly Type ClrType; 26internal EntitySetQualifiedType(Type type, EntitySet set) 78internal Type ClrType 215internal Type GetFieldType(int ordinal)
System\Data\Objects\ObjectViewFactory.cs (20)
38private static readonly Type genericObjectViewType = typeof(ObjectView<>); 40private static readonly Type genericObjectViewDataInterfaceType = typeof(IObjectViewData<>); 41private static readonly Type genericObjectViewQueryResultDataType = typeof(ObjectViewQueryResultData<>); 42private static readonly Type genericObjectViewEntityCollectionDataType = typeof(ObjectViewEntityCollectionData<,>); 81Type clrElementType = null; 120Type objectViewDataType = genericObjectViewQueryResultDataType.MakeGenericType(clrElementType); 124new Type[] { typeof(IEnumerable), typeof(ObjectContext), typeof(bool), typeof(EntitySet) }, 160Type clrElementType = null; 203Type objectViewDataType = genericObjectViewEntityCollectionDataType.MakeGenericType(clrElementType, typeof(TElement)); 207new Type[] { typeof(EntityCollection<TElement>) }, 231private static IBindingList CreateObjectView(Type clrElementType, Type objectViewDataType, object viewData, object eventDataSource) 233Type objectViewType = genericObjectViewType.MakeGenericType(clrElementType); 235Type[] viewDataInterfaces = objectViewDataType.FindInterfaces((Type type, object unusedFilter) => type.Name == genericObjectViewDataInterfaceType.Name, null); 240new Type[] { viewDataInterfaces[0], typeof(object) }, 306/// <see cref="Type"/> instance that represents the CLR type that corresponds to the supplied EDM item type; 311private static Type GetClrType<TElement>(EdmType ospaceEdmType) 313Type clrType; 332Type elementType = typeof(TElement);
System\Data\Objects\ObjectViewQueryResultData.cs (1)
92private bool IsEditable(Type elementType)
System\Data\Objects\ProxyDataContractResolver.cs (5)
26public override Type ResolveName(string typeName, string typeNamespace, Type declaredType, DataContractResolver knownTypeResolver) 36public override bool TryResolveType(Type dataContractType, Type declaredType, DataContractResolver knownTypeResolver, out System.Xml.XmlDictionaryString typeName, out System.Xml.XmlDictionaryString typeNamespace) 42Type nonProxyType = ObjectContext.GetObjectType(dataContractType);
System\Data\Objects\RelationshipEntry.cs (1)
293override internal Type GetFieldType(int ordinal, StateManagerTypeMetadata metadata)
System\Data\Query\InternalTrees\ColumnMapFactory.cs (4)
128internal static CollectionColumnMap CreateColumnMapFromReaderAndClrType(DbDataReader reader, Type type, MetadataWorkspace workspace) 136null, Type.EmptyTypes, null); 148var propertyUnderlyingType = Nullable.GetUnderlyingType(prop.PropertyType) ?? prop.PropertyType; 149Type propType = propertyUnderlyingType.IsEnum ? propertyUnderlyingType.GetEnumUnderlyingType() : prop.PropertyType;
System\Data\Query\ResultAssembly\BridgeDataReader.cs (5)
189internal static Type GetClrTypeFromTypeMetadata(TypeUsage typeUsage) { 190Type result; 503override public Type GetFieldType(int ordinal) { 505Type result; 557override public Type GetProviderSpecificFieldType(int ordinal) {
System\Data\Query\ResultAssembly\BridgeDataRecord.cs (1)
357override public Type GetFieldType(int ordinal) {
System\Data\Spatial\Internal\SpatialExceptions.cs (1)
97internal static Exception SqlSpatialServices_ProviderValueNotSqlType(Type requiredType)
System\Data\SqlClient\SqlProviderServices.cs (1)
415Type.GetTypeCode(value.GetType()) == TypeCode.Object)
System\Data\SqlClient\SqlSpatialDataReader.cs (1)
85private static Func<BinaryReader, object> CreateBinaryReadDelegate(Type spatialType)
System\Data\SqlClient\SqlSpatialServices.cs (6)
125private object NormalizeProviderValue(object providerValue, Type expectedSpatialType) 128Type providerValueType = providerValue.GetType(); 257private MethodInfo FindSqlGeographyMethod(string methodName, params Type[] argTypes) 262private MethodInfo FindSqlGeographyStaticMethod(string methodName, params Type[] argTypes) 272private MethodInfo FindSqlGeometryStaticMethod(string methodName, params Type[] argTypes) 277private MethodInfo FindSqlGeometryMethod(string methodName, params Type[] argTypes)
System\Data\SqlClient\SqlTypesAssembly.cs (28)
28internal static Expression Null(Type nullType) 42return Expression.Call(exp, methodName, Type.EmptyTypes); 45internal static Expression ConvertTo(this Expression exp, Type convertToType) 156Type sqlGeog = sqlSpatialAssembly.GetType("Microsoft.SqlServer.Types.SqlGeography", throwOnError: true); 157Type sqlGeom = sqlSpatialAssembly.GetType("Microsoft.SqlServer.Types.SqlGeometry", throwOnError: true); 173MethodInfo asTextMethod = this.SqlGeometryType.GetMethod("STAsText", BindingFlags.Public | BindingFlags.Instance, null, Type.EmptyTypes, null); 240internal Type SqlBooleanType { get; private set; } 241internal Type SqlBytesType { get; private set; } 242internal Type SqlCharsType { get; private set; } 243internal Type SqlStringType { get; private set; } 244internal Type SqlDoubleType { get; private set; } 245internal Type SqlInt32Type { get; private set; } 246internal Type SqlXmlType { get; private set; } 415internal Type SqlGeographyType { get; private set; } 416internal Type SqlGeometryType { get; private set; } 460private object GetSqlTypesSpatialValue(IDbSpatialValue spatialValue, Type requiredProviderValueType) 517private static Func<TArg, int, object> CreateStaticConstructorDelegate<TArg>(Type spatialType, string methodName) 533private static Expression BuildConvertToSqlType(Expression toConvert, Type convertTo) 562private static Expression BuildConvertToSqlBytes(Expression toConvert, Type sqlBytesType) 566ConstructorInfo byteArrayCtor = sqlBytesType.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { toConvert.Type }, null); 572private static Expression BuildConvertToSqlChars(Expression toConvert, Type sqlCharsType) 576Type sqlString = sqlCharsType.Assembly.GetType("System.Data.SqlTypes.SqlString", throwOnError: true); 577ConstructorInfo sqlCharsFromSqlStringCtor = sqlCharsType.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { sqlString }, null); 579ConstructorInfo sqlStringFromStringCtor = sqlString.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(string) }, null); 584private static Expression BuildConvertToSqlString(Expression toConvert, Type sqlStringType) 588ConstructorInfo sqlStringFromStringCtor = sqlStringType.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(string) }, null); 594private static Expression BuildConvertToSqlXml(Expression toConvert, Type sqlXmlType) 598ConstructorInfo readerCtor = sqlXmlType.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] { toConvert.Type }, null);
System.Data.Entity.Design (69)
System\Data\Entity\Design\Common\MetadataUtil.cs (7)
235static private readonly Type StackOverflowType = typeof(System.StackOverflowException); 236static private readonly Type OutOfMemoryType = typeof(System.OutOfMemoryException); 237static private readonly Type ThreadAbortType = typeof(System.Threading.ThreadAbortException); 238static private readonly Type NullReferenceType = typeof(System.NullReferenceException); 239static private readonly Type AccessViolationType = typeof(System.AccessViolationException); 240static private readonly Type SecurityType = typeof(System.Security.SecurityException); 246Type type = e.GetType();
System\Data\Entity\Design\EntityCodeGenerator.cs (15)
483static Type _vbCodeGeneratorTypeV2 = null; 484static Type _vbCodeGeneratorTypeV3 = null; 485static Type _csharpCodeGeneratorTypeV2 = null; 486static Type _csharpCodeGeneratorTypeV3 = null; 501Type type = CreateCodeGeneratorType(new Microsoft.CSharp.CSharpCodeProvider(), CSharpTemplateCodeGenResourceV2, CSharpTemplateCodeGenTypeName); 512Type type = CreateCodeGeneratorType(new Microsoft.CSharp.CSharpCodeProvider(), CSharpTemplateCodeGenResourceV3, CSharpTemplateCodeGenV3TypeName); 523Type type = CreateCodeGeneratorType(new Microsoft.VisualBasic.VBCodeProvider(), VBTemplateCodeGenResourceV2, VBTemplateCodeGenTypeName); 534Type type = CreateCodeGeneratorType(new Microsoft.VisualBasic.VBCodeProvider(), VBTemplateCodeGenResourceV3, VBTemplateCodeGenV3TypeName); 541private static Type CreateCodeGeneratorType(System.CodeDom.Compiler.CodeDomProvider compilerProvider, string resourceName, string typeName) 603Type type = _instance.GetType(); 605_transformText = type.GetMethod("TransformText", flags, null, new Type[0], null); 608_sourceCsdlPath = type.GetProperty("SourceCsdlPath", flags, null, typeof(String), new Type[0], null); 611_referenceCsdlPaths = type.GetProperty("ReferenceCsdlPaths", flags, null, typeof(IEnumerable<String>), new Type[0], null); 614_errors = type.GetProperty("Errors", flags, null, typeof(CompilerErrorCollection), new Type[0], null); 617_edmToObjectNamespaceMap = type.GetProperty("EdmToObjectNamespaceMap", flags, null, typeof(Dictionary<string, string>), new Type[0], null);
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (2)
489getViewAtMethod.ReturnType = new CodeTypeReference(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) })); 543viewMethod.ReturnType = new CodeTypeReference(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) }));
System\Data\Entity\Design\SSDLGenerator\RelationshipDetailsCollection.cs (1)
298protected override System.Type GetRowType()
System\Data\Entity\Design\SSDLGenerator\TableDetailsCollection.cs (1)
316protected override System.Type GetRowType()
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (4)
572Type parameterType = DetermineParameterType(parameter); 632Type clrType = DetermineParameterType(parameter); 643private static Type DetermineParameterType(FunctionParameter parameter) 657Type clrType = parameterType.ClrType;
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (8)
31private static Pair<Type, CreateEmitter>[] EmitterCreators = new Pair<Type, CreateEmitter>[] 33new Pair<Type,CreateEmitter>(typeof(EntityType), delegate (ClientApiGenerator generator, GlobalItem element) { return new EntityTypeEmitter(generator,(EntityType)element); }), 34new Pair<Type,CreateEmitter>(typeof(ComplexType), delegate (ClientApiGenerator generator, GlobalItem element) { return new ComplexTypeEmitter(generator,(ComplexType)element); }), 35new Pair<Type,CreateEmitter>(typeof(EntityContainer), delegate (ClientApiGenerator generator, GlobalItem element) { return new EntityContainerEmitter(generator,(EntityContainer)element); }), 36new Pair<Type,CreateEmitter>(typeof(AssociationType), delegate (ClientApiGenerator generator, GlobalItem element) { return new AssociationTypeEmitter(generator,(AssociationType)element); }), 162Type typeOfElement = element.GetType(); 163foreach ( Pair<Type, CreateEmitter> pair in EmitterCreators )
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
505Type type = typeof(T); 807Type type = primitiveType.ClrEquivalentType;
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (2)
98List<Type> additionalInterfaces) 104foreach (Type interfaceType in additionalInterfaces)
System\Data\EntityModel\Emitters\TypeReference.cs (11)
26internal static readonly Type ComplexTypeBaseClassType = typeof(System.Data.Objects.DataClasses.ComplexObject); 27internal static readonly Type EntityTypeBaseClassType = typeof(System.Data.Objects.DataClasses.EntityObject); 42private readonly Memoizer<Type, CodeTypeReference> _forTypeMemoizer; 43private readonly Memoizer<Type, CodeTypeReference> _nullableForTypeMemoizer; 51_forTypeMemoizer = new Memoizer<Type, CodeTypeReference>(ComputeForType, null); 53_nullableForTypeMemoizer = new Memoizer<Type, CodeTypeReference>(ComputeNullableForType, null); 64public CodeTypeReference ForType(Type type) 69private CodeTypeReference ComputeForType(Type type) 85public CodeTypeReference ForType(Type generic, CodeTypeReference argument) 220public CodeTypeReference NullableForType(Type innerType) 225private CodeTypeReference ComputeNullableForType(Type innerType)
System\Data\EntityModel\Emitters\Utils.cs (13)
55private static List<KeyValuePair<string, Type>> _typeReservedNames = InitializeTypeReservedNames(); 60static List<KeyValuePair<string, Type>> InitializeTypeReservedNames() 62Dictionary<string, Type> typeReservedNames = new Dictionary<string, Type>(StringComparer.Ordinal); 95List<KeyValuePair<string, Type>> pairs = new List<KeyValuePair<string, Type>>(); 96foreach (KeyValuePair<string, Type> pair in typeReservedNames) 124Debug.Assert(member is Type, "Did you add a new type of member?"); 125return ShouldReserveName((Type)member); 185private static bool ShouldReserveName(Type member) 338Type reservingType = null; 353public static bool TryGetReservedName(string name, StringComparison comparison, out Type applyToSpecificType) 356foreach(KeyValuePair<string, Type> pair in _typeReservedNames)
System\Data\EntityModel\TypeGeneratedEventArgs.cs (3)
28private List<Type> _additionalInterfaces = new List<Type>(); 84public List<Type> AdditionalInterfaces
System.Data.Linq (656)
ChangeDirector.cs (11)
239return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type, resultSelector.Body.Type }, Expression.Constant(item.Current), resultSelector); 242return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type }, Expression.Constant(item.Current)); 336return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.Body.Type }, Expression.Constant(tracked.Current), check, resultSelector); 339return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.Body.Type }, Expression.Constant(tracked.Current), resultSelector); 343return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type }, Expression.Constant(tracked.Current), check); 346return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type }, Expression.Constant(tracked.Current)); 391return Expression.Call(typeof(DataManipulation), "Delete", new Type[] { rowTypeRoot.Type }, Expression.Constant(original), check); 394return Expression.Call(typeof(DataManipulation), "Delete", new Type[] { rowTypeRoot.Type }, Expression.Constant(original)); 403Expression where = Expression.Call(typeof(Queryable), "Where", new Type[] { table.ElementType }, table.Expression, pred); 405Expression select = Expression.Call(typeof(Queryable), "Select", new Type[] { table.ElementType, typeof(int?) }, where, selector); 406Expression singleOrDefault = Expression.Call(typeof(Queryable), "SingleOrDefault", new Type[] { typeof(int?) }, select);
ChangeTracker.cs (3)
153Type type = obj.GetType(); 446Type instanceType = freshInstance.GetType(); 523Type instanceType = instance.GetType();
DataBindingList.cs (1)
17Type bindingType = typeof(DataBindingList<>).MakeGenericType(metaTable.RowType.Type);
DataContext.cs (12)
175Type providerType; 376public ITable GetTable(Type type) { 396Type tbType = typeof(Table<>).MakeGenericType(metaTable.RowType.Type); 419Type ft = fi.FieldType; 423Type rowType = ft.GetGenericArguments()[0]; 741public IEnumerable ExecuteQuery(Type elementType, string query, params object[] parameters) { 813Type pType = pis[i].ParameterType; 899public IEnumerable Translate(Type elementType, DbDataReader reader) { 1135Type IQueryable.ElementType { 1150Type eType = System.Data.Linq.SqlClient.TypeSystem.GetElementType(expression.Type); 1151Type qType = typeof(IQueryable<>).MakeGenericType(eType); 1155Type dqType = typeof(DataQuery<>).MakeGenericType(eType);
DataQuery.cs (4)
29Type IQueryable.ElementType { 37Type eType = System.Data.Linq.SqlClient.TypeSystem.GetElementType(expression.Type); 38Type qType = typeof(IQueryable<>).MakeGenericType(eType); 41Type dqType = typeof(DataQuery<>).MakeGenericType(eType);
DataServices.cs (9)
228return Expression.Call(typeof(Queryable), "Where", new Type[] { table.ElementType }, table.Expression, Expression.Lambda(whereExpression, serverItem)); 238Type rootType = association.ThisMember.DeclaringType.InheritanceRoot.Type; 241thisSource = Expression.Call(typeof(Enumerable), "Cast", new Type[] { association.ThisMember.DeclaringType.Type }, thisSource); 243Expression thisInstance = Expression.Call(typeof(Enumerable), "FirstOrDefault", new Type[] { association.ThisMember.DeclaringType.Type }, 248otherSource = Expression.Call(typeof(Enumerable), "Cast", new Type[] { association.OtherType.Type }, otherSource); 257Type elementType = System.Data.Linq.SqlClient.TypeSystem.GetElementType(query.Type); 266return Expression.Call(typeof(Queryable), "Select", new Type[] { elementType, selector.Body.Type }, query, selector); 289Type elemType = member.IsAssociation && member.Association.IsMany 508Type elementType = System.Data.Linq.SqlClient.TypeSystem.GetElementType(query.Type);
DataShape.cs (5)
214HashSet<Type> edgeTargets = new HashSet<Type>(); 240private static Type GetIncludeTarget(MemberInfo mi) { 241Type mt = System.Data.Linq.SqlClient.TypeSystem.GetMemberType(mi); 249Type memberType = System.Data.Linq.SqlClient.TypeSystem.GetMemberType(mi);
DbConvert.cs (5)
16private static Type[] StringArg = new Type[] { typeof(string) }; 25public static object ChangeType(object value, Type type) { 29Type toType = System.Data.Linq.SqlClient.TypeSystem.GetNonNullableType(type); 30Type fromType = value.GetType();
EntitySetDataBindingList.cs (2)
29Type type = typeof(TEntity); 34if (type.GetConstructor(System.Type.EmptyTypes) == null) {
IdentityManager.cs (3)
104internal abstract Type KeyType { get; } 139internal override Type KeyType { 189internal override Type KeyType {
Mapping\Accessors.cs (7)
22internal static MetaAccessor Create(Type objectType, FieldInfo fi) { 32new Type[] { objectType }, 44new Type[] { objectType.MakeByRefType(), fi.FieldType }, 90internal static MetaAccessor Create(Type objectType, PropertyInfo pi, MetaAccessor storageAccessor) { 93Type dgetType = typeof(DGet<,>).MakeGenericType(objectType, pi.PropertyType); 109new Type[] { objectType.MakeByRefType(), pi.PropertyType }, 124Type saType = (storageAccessor != null) ? storageAccessor.Type : pi.PropertyType;
Mapping\AttributedMetaModel.cs (59)
18internal static MethodInfo FindMethod(Type type, string name, BindingFlags flags, Type[] argTypes) { 22internal static MethodInfo FindMethod(Type type, string name, BindingFlags flags, Type[] argTypes, bool allowInherit) { 39var clrType = derivedType.Type; // start 40var rootClrType = derivedType.InheritanceRoot.Type; // end 62Type contextType; 63Type providerType; 64Dictionary<Type, MetaType> metaTypes; 65Dictionary<Type, MetaTable> metaTables; 72internal AttributedMetaModel(MappingSource mappingSource, Type contextType) { 75this.metaTypes = new Dictionary<Type, MetaType>(); 76this.metaTables = new Dictionary<Type, MetaTable>(); 96public override Type ContextType { 104public override Type ProviderType { 130for (Type type = this.contextType; type != typeof(DataContext); type = type.BaseType) { 133Type ft = fi.FieldType; 135Type rowType = ft.GetGenericArguments()[0]; 141Type pt = pi.PropertyType; 143Type rowType = pt.GetGenericArguments()[0]; 164for (Type type = this.contextType; type != typeof(DataContext); type = type.BaseType) { 205public override MetaTable GetTable(Type rowType) { 229internal MetaTable GetTableNoLocks(Type rowType) { 232Type root = GetRoot(rowType) ?? rowType; 254private static Type GetRoot(Type derivedType) { 264public override MetaType GetMetaType(Type type) { 323internal AttributedMetaTable(AttributedMetaModel model, TableAttribute attr, Type rowType) { 368new Type[] { rowType.Type } 374new Type[] { rowType.Type } 380new Type[] { rowType.Type } 388Dictionary<Type, MetaType> types; 393internal AttributedRootType(AttributedMetaModel model, AttributedMetaTable table, Type type) 405this.types = new Dictionary<Type, MetaType>(); 495private AttributedMetaType CreateInheritedType(Type root, Type type) { 511public override MetaType GetInheritanceType(Type type) { 529Type type; 551internal AttributedMetaType(MetaModel model, MetaTable table, Type type, MetaType inheritanceRoot) { 577Type.EmptyTypes, 675public override Type Type { 746public override MetaType GetInheritanceType(Type inheritanceType) { 892Type elementType = TypeSystem.GetElementType(mi.ReturnType); 898Type type = rat.Type; 930private MetaType GetMetaType(Type type) { 995public override Type ParameterType { 1012Type type; 1013Type declaringType; 1046Type storageType = this.storageMember != null ? TypeSystem.GetMemberType(this.storageMember) : this.type; 1098public override Type Type { 1242new Type[] { this.DeclaringType.Type } 1249private bool IsDeferredType(Type entityType) { 1254Type gtype = entityType.GetGenericTypeDefinition(); 1262private static MetaAccessor MakeMemberAccessor(Type accessorType, MemberInfo mi, MetaAccessor storage) { 1276Type objectDeclaringType, MetaAccessor accessor, 1280Type gtype = accessor.Type.GetGenericTypeDefinition(); 1281Type itemType = accessor.Type.GetGenericArguments()[0]; 1303private static MetaAccessor CreateAccessor(Type accessorType, params object[] args) { 1330Type ot = this.isMany ? TypeSystem.GetElementType(this.thisMember.Type) : this.thisMember.Type;
Mapping\Attributes.cs (8)
36Type type; 37public ResultTypeAttribute(Type type) { 41public Type Type { 99private Type type; 113public Type Type { 260Type providerType; 265public ProviderAttribute(Type type) { 270public Type Type {
Mapping\MappedMetaModel.cs (72)
22Type contextType; 23Type providerType; 26Dictionary<string, Type> types; 27Dictionary<Type, MetaType> metaTypes; 28Dictionary<Type, MetaTable> metaTables; 34internal MappedMetaModel(MappingSource mappingSource, Type contextType, DatabaseMapping mapping) { 40this.metaTypes = new Dictionary<Type, MetaType>(); 41this.metaTables = new Dictionary<Type, MetaTable>(); 42this.types = new Dictionary<string, Type>(); 80Type rowType = this.FindType(tableMapping.RowType.Name); 84Type rootType = this.GetRootType(rowType, tableMapping.RowType); 94for (Type type = this.contextType; type != typeof(DataContext); type = type.BaseType) { 97Type ft = fi.FieldType; 99Type rowType = ft.GetGenericArguments()[0]; 111Type pt = pi.PropertyType; 113Type rowType = pt.GetGenericArguments()[0]; 156public override Type ContextType { 164public override Type ProviderType { 172public override MetaTable GetTable(Type rowType) { 181public override MetaType GetMetaType(Type type) { 222private Type GetRootType(Type type, TypeMapping rootMapping) { 238Type type = this.FindType(typeName); 259internal Type FindType(string name) { 265internal Type FindType(string name, string defaultNamespace) { 266Type result = null; 282Type foundResult = this.SearchForType(name); 305private Type SearchForType(string name) { 307Type type = SearchForType(name, false); 318private Type SearchForType(string name, bool ignoreCase) { 320Type type = Type.GetType(name, false, ignoreCase); 358internal MappedTable(MappedMetaModel model, TableMapping mapping, Type rowType) { 396new Type[] { rowType.Type } 402new Type[] { rowType.Type } 408new Type[] { rowType.Type } 416Dictionary<Type, MetaType> derivedTypes; 424public MappedRootType(MappedMetaModel model, MappedTable table, TypeMapping typeMapping, Type type) 437this.derivedTypes = new Dictionary<Type, MetaType>(); 488Type type = ((MappedMetaModel)Model).FindType(typeMap.Name); 548public override MetaType GetInheritanceType(Type type) { 566Type type; 589internal MappedType(MetaModel model, MetaTable table, TypeMapping typeMapping, Type type, MetaType inheritanceRoot) { 614Type.EmptyTypes, 641Type currentType = this.type; 700Type aboveRoot = inheritanceRoot.Type.BaseType; 749public override Type Type { 844public override MetaType GetInheritanceType(Type inheritanceType) { 939Type type; 977Type storageType = this.storageMember != null ? TypeSystem.GetMemberType(this.storageMember) : this.type; 1053public override Type Type { 1147new Type[] { this.DeclaringType.Type } 1154private bool IsDeferredType(Type clrType) { 1159Type gtype = clrType.GetGenericTypeDefinition(); 1167private static MetaAccessor MakeMemberAccessor(Type accessorType, MemberInfo mi, MetaAccessor storage) { 1181Type declaringType, MetaAccessor accessor, 1185Type gtype = accessor.Type.GetGenericTypeDefinition(); 1186Type itemType = accessor.Type.GetGenericArguments()[0]; 1208private static MetaAccessor CreateAccessor(Type accessorType, params object[] args) { 1267Type ot = this.isMany ? TypeSystem.GetElementType(this.thisMember.Type) : this.thisMember.Type; 1353Type elementType = TypeSystem.GetElementType(method.ReturnType); 1359Type elementType = model.FindType(rtm.Name); 1397private MetaType GetMetaType(TypeMapping tm, Type elementType) { 1450public override Type ParameterType { 1475public override Type ParameterType { 1532Type type; 1542internal UnmappedType(MetaModel model, Type type) { 1553public override Type Type { 1589public override MetaType GetInheritanceType(Type inheritanceType) { 1710Type type; 1750public override Type Type { 1816private static MetaAccessor MakeMemberAccessor(Type accessorType, MemberInfo mi) {
Mapping\MappingSource.cs (7)
24Dictionary<Type, MetaModel> secondaryModels; 30public MetaModel GetModel(Type dataContextType) { 50Interlocked.CompareExchange<Dictionary<Type, MetaModel>>(ref this.secondaryModels, new Dictionary<Type, MetaModel>(), null); 92protected abstract MetaModel CreateModel(Type dataContextType); 103protected override MetaModel CreateModel(Type dataContextType) { 125protected override MetaModel CreateModel(Type dataContextType) {
Mapping\MetaModel.cs (10)
24public abstract Type ContextType { get; } 32public abstract Type ProviderType { get; } 38public abstract MetaTable GetTable(Type rowType); 60public abstract MetaType GetMetaType(Type type); 117public abstract Type Type { get; } 179public abstract MetaType GetInheritanceType(Type type); 269public abstract Type Type { get; } 416public abstract Type ParameterType { get; } 492public abstract Type Type { get; } 537public override Type Type {
parent\DbmlShared\Mapping.cs (6)
51internal TableMapping GetTable(Type rowType) { 60private bool IsType(TypeMapping map, Type type) { 481internal static bool IsSupportedDiscriminatorType(Type type) { 485switch (Type.GetTypeCode(type)) { 529internal static bool IsSupportedIdentityType(Type type) 540switch (Type.GetTypeCode(type))
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) {
Provider\IProvider.cs (1)
93IEnumerable Translate(Type elementType, DbDataReader reader);
SortableBindingList.cs (5)
45Type propertyType = prop.PropertyType; 71Type comparerType = typeof(Comparer<>).MakeGenericType(prop.PropertyType); 99protected static bool OkWithToString(Type t) { 111protected static bool OkWithIComparable(Type t) { 116public static bool IsAllowable(Type t) {
SqlClient\Common\Expressions.cs (4)
21internal InternalExpression(InternalExpressionType nt, Type type) 28internal static KnownExpression Known(SqlNode node, Type type) { 35internal KnownExpression(SqlNode node, Type type) 47internal LinkedTableExpression(SqlLink link, ITable table, Type type)
SqlClient\Common\SqlFactory.cs (29)
33internal SqlExpression ConvertTo(Type clrType, ProviderType sqlType, SqlExpression expr) { 37internal SqlExpression ConvertTo(Type clrType, SqlExpression expr) { 204Type returnType = asNullable ? typeof(DateTime?) : typeof(DateTime); 222Type returnType = asNullable ? typeof(DateTimeOffset?) : typeof(DateTimeOffset); 288internal SqlExpression Value(Type clrType, ProviderType sqlType, object value, bool isClientSpecified, Expression sourceExpression) { 289if (typeof(Type).IsAssignableFrom(clrType) && value != null) { 290MetaType typeOf = this.model.GetMetaType((Type)value); 305return new SqlValue(typeof(Type), this.typeProvider.From(typeof(Type)), typeOf.Type, false, sourceExpression); 307Type type = typeOf.InheritanceCode.GetType(); 313return new SqlDiscriminatedType(typeProvider.From(typeof(Type)), discriminator, targetType, discriminator.SourceExpression); 333Type clrType = null; 363internal SqlUnary UnaryConvert(Type targetClrType, ProviderType targetSqlType, SqlExpression expression, Expression sourceExpression) { 370Type valueType = TypeSystem.GetNonNullableType(expression.ClrType); 382internal SqlBinary Binary(SqlNodeType nodeType, SqlExpression left, SqlExpression right, Type clrType) { 386internal SqlBinary Binary(SqlNodeType nodeType, SqlExpression left, SqlExpression right, MethodInfo method, Type clrType) { 441internal SqlExpression Case(Type clrType, SqlExpression discriminator, List<SqlExpression> matches, List<SqlExpression> values, Expression sourceExpression) { 467Type type = value.GetType(); 480Type clrType = value.GetType(); 485internal SqlExpression ValueFromObject(object value, Type clrType, bool isClientSpecified, Expression sourceExpression) { 493public SqlExpression TypedLiteralNull(Type type, Expression sourceExpression) { 502Type clrType = TypeSystem.GetMemberType(member); 512internal SqlExpression TypeCase(Type clrType, MetaType rowType, SqlExpression discriminator, IEnumerable<SqlTypeCaseWhen> whens, Expression sourceExpression) { 525internal SqlMethodCall MethodCall(Type returnType, MethodInfo method, SqlExpression obj, SqlExpression[] args, Expression sourceExpression) { 537internal SqlSubSelect SubSelect(SqlNodeType nt, SqlSelect select, Type clrType) { 564internal SqlFunctionCall FunctionCall(Type clrType, string name, IEnumerable<SqlExpression> args, Expression source) { 569internal SqlFunctionCall FunctionCall(Type clrType, ProviderType sqlType, string name, IEnumerable<SqlExpression> args, Expression source) { 573internal SqlTableValuedFunctionCall TableValuedFunctionCall(MetaType rowType, Type clrType, string name, IEnumerable<SqlExpression> args, Expression source) { 577internal ProviderType Default(Type clrType) {
SqlClient\Common\SqlNode.cs (42)
152private Type clrType; 153internal SqlExpression(SqlNodeType nodeType, Type clrType, Expression sourceExpression) 158internal Type ClrType { 163internal void SetClrType(Type type) { 201internal SqlSimpleTypeExpression(SqlNodeType nodeType, Type clrType, ProviderType sqlType, Expression sourceExpression) 217internal SqlDiscriminatorOf(SqlExpression obj, Type clrType, ProviderType sqlType, Expression sourceExpression) 237typeof(Type), 519internal SqlUserColumn(Type clrType, ProviderType sqlType, SqlUserQuery query, string name, bool isRequired, Expression source) 590private static Type GetClrType(SqlNode node) { 721internal Type GetClrType() { 743internal SqlNop(Type clrType, ProviderType sqlType, Expression sourceExpression) 751internal SqlLift(Type type, SqlExpression liftedExpression, Expression sourceExpression) 875internal SqlRowNumber(Type clrType, ProviderType sqlType, List<SqlOrderExpression> orderByList, Expression sourceExpression) 890internal SqlUnary(SqlNodeType nt, Type clrType, ProviderType sqlType, SqlExpression expr, Expression sourceExpression) 894internal SqlUnary(SqlNodeType nt, Type clrType, ProviderType sqlType, SqlExpression expr, MethodInfo method, Expression sourceExpression) 943internal SqlBinary(SqlNodeType nt, Type clrType, ProviderType sqlType, SqlExpression left, SqlExpression right) 947internal SqlBinary(SqlNodeType nt, Type clrType, ProviderType sqlType, SqlExpression left, SqlExpression right, MethodInfo method) 1007internal SqlBetween(Type clrType, ProviderType sqlType, SqlExpression expr, SqlExpression start, SqlExpression end, Expression source) 1034internal SqlIn(Type clrType, ProviderType sqlType, SqlExpression expression, IEnumerable<SqlExpression> values, Expression sourceExpression) 1059internal SqlLike(Type clrType, ProviderType sqlType, SqlExpression expr, SqlExpression pattern, SqlExpression escape, Expression source) 1152internal SqlSearchedCase(Type clrType, IEnumerable<SqlWhen> whens, SqlExpression @else, Expression sourceExpression) 1196internal SqlSimpleCase(Type clrType, SqlExpression expr, IEnumerable<SqlWhen> whens, Expression sourceExpression) 1240internal SqlClientCase(Type clrType, SqlExpression expr, IEnumerable<SqlClientWhen> whens, Expression sourceExpression) 1320internal SqlTypeCase(Type clrType, ProviderType sqlType, MetaType rowType, SqlExpression discriminator, IEnumerable<SqlTypeCaseWhen> whens, Expression sourceExpression) 1387internal SqlValue(Type clrType, ProviderType sqlType, object value, bool isClientSpecified, Expression sourceExpression) 1406internal SqlParameter(Type clrType, ProviderType sqlType, string name, Expression sourceExpression) 1410if (typeof(Type).IsAssignableFrom(clrType)) 1429internal SqlVariable(Type clrType, ProviderType sqlType, string name, Expression sourceExpression) 1445internal SqlMember(Type clrType, ProviderType sqlType, SqlExpression expr, MemberInfo member) 1478internal SqlColumn(Type clrType, ProviderType sqlType, string name, MetaDataMember member, SqlExpression expr, Expression sourceExpression) 1480if (typeof(Type).IsAssignableFrom(clrType)) 1628internal SqlGrouping(Type clrType, ProviderType sqlType, SqlExpression key, SqlExpression group, Expression sourceExpression) 1732internal SqlMethodCall(Type clrType, ProviderType sqlType, MethodInfo method, SqlExpression obj, IEnumerable<SqlExpression> args, Expression sourceExpression) 1778internal SqlClientArray(Type clrType, ProviderType sqlType, SqlExpression[ ] exprs, Expression sourceExpression) 1798internal SqlLink(object id, MetaType rowType, Type clrType, ProviderType sqlType, SqlExpression expression, MetaDataMember member, IEnumerable<SqlExpression> keyExpressions, SqlExpression expansion, Expression sourceExpression) 1841internal SqlExprSet(Type clrType, IEnumerable <SqlExpression> exprs, Expression sourceExpression) 1870internal SqlSubSelect(SqlNodeType nt , Type clrType, ProviderType sqlType , SqlSelect select) 1934internal SqlJoinedCollection(Type clrType, ProviderType sqlType, SqlExpression expression, SqlExpression count, Expression sourceExpression) 2153internal SqlFunctionCall(Type clrType, ProviderType sqlType, string name, IEnumerable <SqlExpression > args , Expression source) 2157internal SqlFunctionCall(SqlNodeType nodeType, Type clrType, ProviderType sqlType, string name , IEnumerable <SqlExpression> args , Expression source) 2180internal SqlTableValuedFunctionCall(MetaType rowType, Type clrType, ProviderType sqlType, string name, IEnumerable <SqlExpression > args , Expression source) 2273internal SqlClientParameter(Type clrType, ProviderType sqlType, LambdaExpression accessor, Expression sourceExpression):
SqlClient\Common\SqlNodeAnnotations.cs (3)
12Dictionary<Type, string> uniqueTypes = new Dictionary<Type, string>(); 51internal bool HasAnnotationType(Type type) {
SqlClient\Common\TypeSystem.cs (41)
13internal static bool IsSequenceType(Type seqType) { 19internal static bool HasIEnumerable(Type seqType) { 22private static Type FindIEnumerable(Type seqType) { 28foreach (Type arg in seqType.GetGenericArguments()) { 29Type ienum = typeof(IEnumerable<>).MakeGenericType(arg); 35Type[] ifaces = seqType.GetInterfaces(); 37foreach (Type iface in ifaces) { 38Type ienum = FindIEnumerable(iface); 47internal static Type GetFlatSequenceType(Type elementType) { 48Type ienum = FindIEnumerable(elementType); 52internal static Type GetSequenceType(Type elementType) { 55internal static Type GetElementType(Type seqType) { 56Type ienum = FindIEnumerable(seqType); 60internal static bool IsNullableType(Type type) { 63internal static bool IsNullAssignable(Type type) { 66internal static Type GetNonNullableType(Type type) { 72internal static Type GetMemberType(MemberInfo mi) { 81internal static IEnumerable<FieldInfo> GetAllFields(Type type, BindingFlags flags) { 83Type currentType = type; 95internal static IEnumerable<PropertyInfo> GetAllProperties(Type type, BindingFlags flags) { 97Type currentType = type; 119internal static MethodInfo FindSequenceMethod(string name, Type[] args, params Type[] typeArgs) { 131return FindSequenceMethod(name, new Type[] {sequence.GetType()}, new Type[] {GetElementType(sequence.GetType())}); 135internal static MethodInfo FindQueryableMethod(string name, Type[] args, params Type[] typeArgs) { 147internal static MethodInfo FindStaticMethod(Type type, string name, Type[] args, params Type[] typeArgs) { 157private static bool ArgsMatchExact(MethodInfo m, Type[] argTypes, Type[] typeArgs) { 176Type parameterType = mParams[i].ParameterType; 179Type argType = argTypes[i]; 189internal static bool IsSimpleType(Type type) 200TypeCode tc = Type.GetTypeCode(type);
SqlClient\Common\TypeSystemProvider.cs (3)
24internal abstract ProviderType From(Type runtimeType); 34internal abstract ProviderType From(Type type, int? size); 124internal abstract Type GetClosestRuntimeType();
SqlClient\Query\MethodCallConverter.cs (3)
302Type discriminatorType = mt.Discriminator.Type; 332Type treatType = t.ClrType; 333Type originalType = model.GetMetaType(t.Operand.ClrType).InheritanceRoot.Type;
SqlClient\Query\QueryConverter.cs (46)
371if (p.Type == typeof(Type)) { 574private SqlSelect VisitOfType(Expression sequence, Type ofType) { 594private SqlNode VisitSequenceCast(Expression sequence, Type type) { 595Type sourceType = TypeSystem.GetElementType(sequence.Type); 599new Type[] { 619Type ofType = b.TypeOperand; 693private SqlNode VisitChangeType(Expression expression, Type type) { 703private SqlNode ChangeType(SqlExpression expr, Type type) { 747private ConversionMethod ChooseConversionMethod(Type fromType, Type toType) { 748Type nnFromType = TypeSystem.GetNonNullableType(fromType); 749Type nnToType = TypeSystem.GetNonNullableType(toType); 798Type type = cons.Type; 1188Type returnType = mce.Method.ReturnType; 1240private SqlUserQuery VisitUserQuery(string query, Expression[] arguments, Type resultType) { 1247Type elementType = TypeSystem.GetElementType(resultType); 1377private SqlExpression MakeCoalesce(SqlExpression left, SqlExpression right, Type resultType) { 1426Type type = TypeSystem.GetElementType(source1.Type); 1450Type type = TypeSystem.GetElementType(source1.Type); 1477private bool IsGrouping(Type t) { 1591Type elementType = typeof(IGrouping<,>).MakeGenericType(keyExpr.ClrType, elemExpr.ClrType); 1613Type elementType = typeof(IGrouping<,>).MakeGenericType(keyExpr.ClrType, elemExpr.ClrType); 1626private SqlNode VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) { 1771private SqlExpression GetAggregate(SqlNodeType aggType, Type clrType, SqlExpression exp) { 1777Type elemType = TypeSystem.GetElementType(sequence.Type); 1859Type memberType = TypeSystem.GetMemberType(ma.Member); 1861Type rowType = memberType.GetGenericArguments()[0]; 1876Type declType = mc.Method.DeclaringType; 1890if (value != null && typeof(Type).IsAssignableFrom(value.GetType())) { 1891sn = this.VisitChangeType(mc.Arguments[0], (Type)value); 1906Type[] typeArgs = mc.Method.GetGenericArguments(); 1964Type elemType = TypeSystem.GetElementType(c.Type); 2014Type declType = mc.Method.DeclaringType; 2032Type declType = mc.Method.DeclaringType; 2082Type ofType = mc.Method.GetGenericArguments()[0]; 2089Type type = mc.Method.GetGenericArguments()[0]; 2418ConstructorInfo cons = itemMetaType.Type.GetConstructor(Type.EmptyTypes); 2535private static bool IsLegalIdentityType(Type type) { 2536switch (Type.GetTypeCode(type)) { 2562Type rowType = metaTable.RowType.Type; 2578seq = Expression.Call(typeof(Enumerable), "Where", new Type[] { rowType }, seq, findPredicate); 2593Type entityType = conItem.Value.GetType(); 2616seq = Expression.Call(typeof(Enumerable), "Where", new Type[] { rowType }, seq, idPredicate); 2617seq = Expression.Call(typeof(Enumerable), "Select", new Type[] { rowType, resultSelector.Body.Type }, seq, resultSelector); 2646Type rowType = metaTable.RowType.Type; 2657Expression seq = Expression.Call(typeof(Enumerable), "Where", new Type[] { rowType }, source, findPredicate);
SqlClient\Query\SqlBinder.cs (6)
315if (typeof(Type).IsAssignableFrom(bo.Left.ClrType)) { 371if (!typeof(Type).IsAssignableFrom(typeExpression.ClrType)) { 386MetaType mt = this.model.GetMetaType((Type)val.Value); 478private SqlExpression ApplyTreat(SqlExpression target, Type type) { 710Type newClrType = null; 731Type newClrType = null;
SqlClient\Query\SqlCaseSimplifier.cs (2)
175private SqlExpression TryToWriteAsSimpleBooleanExpression(Type caseType, SqlExpression discriminator, List<SqlWhen> newWhens, bool allValuesLiteral) { 225private SqlExpression TryToWriteAsReducedCase(Type caseType, SqlExpression discriminator, List<SqlWhen> newWhens, SqlExpression elseCandidate, int originalWhenCount) {
SqlClient\Query\SqlFormatter.cs (4)
1239Type t = value.GetType(); 1242TypeCode tc = Type.GetTypeCode(t); 1274Type valueType = value as Type;
SqlClient\Query\SqlMethodCallConverter.cs (15)
652Type newType = uo.ClrType; 665Type leftType = TypeSystem.GetNonNullableType(bo.Left.ClrType); 899Type declType = mc.Method.DeclaringType; 1000System.Type clrType = mc.Object.ClrType.GetGenericArguments()[0]; 1202Type targetType = null; 1222Type nnType = TypeSystem.GetNonNullableType(expr.ClrType); 1286Type rightType = TypeSystem.GetNonNullableType(bo.Right.ClrType); 1291Type resultType = bo.ClrType; 1311Type resultType = bo.ClrType; 1491private SqlExpression CreateFunctionCallStatic1(Type type, string functionName, List<SqlExpression> arguments, Expression source) { 1495private SqlExpression CreateFunctionCallStatic2(Type type, string functionName, List<SqlExpression> arguments, Expression source) { 2104Type type = x.ClrType; 2168Type baseClrTypeOfExpr = TypeSystem.GetNonNullableType(exp.ClrType); 2385Type targetType = null; 2487Expression.Call(typeof(SqlHelpers), "TranslateVBLikePattern", Type.EmptyTypes, cp.Accessor.Body, Expression.Constant('~')),
SqlClient\Query\SqlMethodTransformer.cs (3)
40Type clrType = resultFunctionCall.SqlType.GetClosestRuntimeType(); 81private static bool SkipConversionForDateAdd(string functionName, Type expected, Type actual) {
SqlClient\Query\SqlMultiplexer.cs (1)
240Type clrType = expr.ClrType;
SqlClient\Query\SqlRetyper.cs (4)
38private static bool CanDbConvert(Type from, Type to) { 45var tcTo = Type.GetTypeCode(to); 46var tcFrom = Type.GetTypeCode(from);
SqlClient\Query\SqlSupersetValidator.cs (1)
59&& value.ClrType != typeof(Type)
SqlClient\Query\SqlTypeConverter.cs (4)
78Type oldClrType = TypeSystem.GetNonNullableType(uo.Operand.ClrType); 79Type newClrType = TypeSystem.GetNonNullableType(uo.ClrType); 121private SqlExpression ConvertDoubleToString(SqlExpression expr, Type resultClrType) { 136private SqlExpression ConvertBitToString(SqlExpression expr, Type resultClrType) {
SqlClient\Query\Translator.cs (7)
53Type dt = discriminator.Type; 111ConstructorInfo cons = rowType.Type.GetConstructor(BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic, null, System.Type.EmptyTypes, null); 165Type elementType = TypeSystem.GetElementType(source.Type); 183Expression sequenceExpression = Expression.Call(typeof(Enumerable), "Where", new Type[] {p.Type}, source, Expression.Lambda(whereExpression, p)); 232return Expression.Call(typeof(Enumerable), "Count", new Type[] {TypeSystem.GetElementType(exp.Type)}, exp); 247Type tableType = otherType.InheritanceRoot.Type; 254Type memberType = TypeSystem.GetMemberType(metaMember.Member);
SqlClient\Query\TypeSource.cs (3)
32internal Type sourceType; 40Type type = sourceExpression.ClrType; 139Type type = v.sourceType;
SqlClient\Reader\ObjectReader.cs (1)
38IObjectReaderFactory Compile(SqlExpression expression, Type elementType);
SqlClient\Reader\ObjectReaderCompiler.cs (156)
87public static Exception ErrorAssignmentToNull(Type type) { 94Type dataReaderType; 155internal ObjectReaderCompiler(Type dataReaderType, IDataServices services) { 162Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.dataReaderType); 183public IObjectReaderFactory Compile(SqlExpression expression, Type elementType) { 205Type fnMatType = typeof(Func<,>).MakeGenericType(typeof(ObjectMaterializer<>).MakeGenericType(this.dataReaderType), elementType); 208Type factoryType = typeof(ObjectReaderFactory<,>).MakeGenericType(this.dataReaderType, elementType); 259Type sessionType = typeof(ObjectReaderSession<>).MakeGenericType(this.dataReaderType); 279private DynamicMethod CompileDynamicMethod(Generator gen, SqlExpression expression, Type elementType) { 280Type objectReaderType = typeof(ObjectMaterializer<>).MakeGenericType(this.dataReaderType); 284new Type[] { objectReaderType }, 296internal Type elementType; 297internal Type dataReaderType; 302public CacheInfo(Type elementType, Type dataReaderType, object mapping, DataLoadOptions options, SqlExpression projection, IObjectReaderFactory factory) { 317internal IObjectReaderFactory GetFactory(Type elementType, Type dataReaderType, object mapping, DataLoadOptions options, SqlExpression projection) { 334internal void AddFactory(Type elementType, Type dataReaderType, object mapping, DataLoadOptions options, SqlExpression projection, IObjectReaderFactory factory) { 674Type elementType; 679internal Generator(ObjectReaderCompiler compiler, Type elementType) { 716private Type Generate(SqlNode node) { 722private Type Generate(SqlNode node, LocalBuilder locInstance) { 804private Type GenerateValue(SqlValue value) { 808private Type GenerateClientParameter(SqlClientParameter cp) { 817new Type[] { typeof(object[]) }, 825private Type GenerateValueOf(SqlUnary u) { 835private Type GenerateOptionalValue(SqlOptionalValue opt) { 841Type actualType = this.Generate(opt.HasValue); 859private Type GenerateLift(SqlLift lift) { 863private Type GenerateClientArray(SqlClientArray ca) { 867Type elemType = TypeSystem.GetElementType(ca.ClrType); 879private Type GenerateMember(SqlMember m) { 892private Type GenerateMethodCall(SqlMethodCall mc) { 895Type actualType = this.GenerateExpressionForType(mc.Object, mc.Object.ClrType); 904Type pType = pi.ParameterType; 932private Type GenerateNew(SqlNew sn) { 956ConstructorInfo ci = sn.ClrType.GetConstructor(System.Type.EmptyTypes); 977Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 987new Type[] { typeof(int), typeof(object) }, 1035Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1040new Type[] { typeof(int), typeof(object) }, 1055Type memberType = TypeSystem.GetMemberType(m); 1066Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1078Type genType = memberType.GetGenericTypeDefinition(); 1111Type memberType = TypeSystem.GetMemberType(m); 1157Type memberType = TypeSystem.GetMemberType(m); 1160Type argType = typeof(IEnumerable<>).MakeGenericType(memberType.GetGenericArguments()); 1171Type eType = this.GenerateDeferredSource(expr, locInstance); 1194ConstructorInfo ci = memberType.GetConstructor(System.Type.EmptyTypes); 1206MethodInfo miSetSource = memberType.GetMethod("SetSource", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { argType }, null); 1219Type memberType = TypeSystem.GetMemberType(m); 1222Type argType = typeof(IEnumerable<>).MakeGenericType(memberType.GetGenericArguments()); 1233Type eType = this.Generate(expr, mm.DeclaringType.IsEntity ? locInstance : null); 1256ConstructorInfo ci = memberType.GetConstructor(System.Type.EmptyTypes); 1268MethodInfo miAssign = memberType.GetMethod("Assign", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { argType }, null); 1277Type memberType = TypeSystem.GetMemberType(m); 1284Type argType = typeof(IEnumerable<>).MakeGenericType(memberType.GetGenericArguments()); 1295Type eType = this.GenerateDeferredSource(expr, locInstance); 1312ConstructorInfo ci = memberType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { argType }, null); 1345private Type GenerateGrouping(SqlGrouping grp) { 1346Type[] typeArgs = grp.ClrType.GetGenericArguments(); 1351Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1352MethodInfo miCreateGroup = TypeSystem.FindStaticMethod(orbType, "CreateGroup", new Type[] { typeArgs[0], typeof(IEnumerable<>).MakeGenericType(typeArgs[1]) }, typeArgs); 1359private Type GenerateLink(SqlLink link, LocalBuilder locInstance) { 1370Type elemType = link.Member.IsAssociation && link.Member.Association.IsMany 1408private Type GenerateDeferredSource(SqlExpression expr, LocalBuilder locInstance) { 1420private Type GenerateClientQuery(SqlClientQuery cq, LocalBuilder locInstance) { 1421Type clientElementType = cq.Query.NodeType == SqlNodeType.Multiset ? TypeSystem.GetElementType(cq.ClrType) : cq.ClrType; 1434Type clrType = cq.Arguments[i].ClrType; 1456Type actualType = typeof(IEnumerable<>).MakeGenericType(clientElementType); 1459Type resultType = typeof(List<>).MakeGenericType(clientElementType); 1465private Type GenerateJoinedCollection(SqlJoinedCollection jc) { 1468Type joinElementType = jc.Expression.ClrType; 1469Type listType = typeof(List<>).MakeGenericType(joinElementType); 1478ConstructorInfo ci = listType.GetConstructor(new Type[] { typeof(int) }); 1509Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1510MethodInfo miRead = orbType.GetMethod("Read", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null); 1522MethodInfo miAdd = listType.GetMethod("Add", BindingFlags.Instance | BindingFlags.Public, null, new Type[] { joinElementType }, null); 1550private Type GenerateExpressionForType(SqlExpression expr, Type type) { 1554private Type GenerateExpressionForType(SqlExpression expr, Type type, LocalBuilder locInstance) { 1555Type actualType = this.Generate(expr, locInstance); 1560private void GenerateConvertToType(Type actualType, Type expectedType, Type readerMethodType) { 1567private void GenerateConvertToType(Type actualType, Type expectedType) { 1571Type genActualType = actualType.IsGenericType ? actualType.GetGenericTypeDefinition() : null; 1572Type genExpectedType = expectedType.IsGenericType ? expectedType.GetGenericTypeDefinition() : null; 1573Type[] genExpectedTypeArgs = genExpectedType != null ? expectedType.GetGenericArguments() : null; 1575Type elemType = TypeSystem.GetElementType(actualType); 1576Type seqType = TypeSystem.GetSequenceType(elemType); 1600MethodInfo miCast = TypeSystem.FindSequenceMethod("Cast", new Type[] { seqType }, genExpectedTypeArgs[0]); 1606Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1607MethodInfo miConvert = TypeSystem.FindStaticMethod(orbType, "Convert", new Type[] { seqType }, genExpectedTypeArgs[0]); 1615MethodInfo miFirst = TypeSystem.FindSequenceMethod("SingleOrDefault", new Type[] { seqType }, expectedType); 1623ConstructorInfo ci = expectedType.GetConstructor(new Type[] { actualType }); 1645ConstructorInfo ci = expectedType.GetConstructor(new Type[] { genExpectedTypeArgs[0] }); 1651MethodInfo miFirst = TypeSystem.FindSequenceMethod("SingleOrDefault", new Type[] { seqType }, elemType); 1654ConstructorInfo ci = expectedType.GetConstructor(new Type[] { elemType }); 1667MethodInfo miAsQueryable = TypeSystem.FindQueryableMethod("AsQueryable", new Type[] { typeof(IEnumerable) }); 1685MethodInfo miAsQueryable = TypeSystem.FindQueryableMethod("AsQueryable", new Type[] { seqType }, elemType); 1700Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1701MethodInfo miCreateOrderedEnumerable = TypeSystem.FindStaticMethod(orbType, "CreateOrderedEnumerable", new Type[] { seqType }, elemType); 1717ConstructorInfo ci = expectedType.GetConstructor(System.Type.EmptyTypes); 1725MethodInfo miAssign = expectedType.GetMethod("Assign", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { seqType }, null); 1737Type listType = typeof(List<>).MakeGenericType(elemType); 1738ConstructorInfo ci = listType.GetConstructor(new Type[] { seqType }); 1748MethodInfo miToArray = TypeSystem.FindSequenceMethod("ToArray", new Type[] { seqType }, elemType); 1755expectedType.GetConstructor(System.Type.EmptyTypes) != null && 1781MethodInfo miGetTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public); 1784MethodInfo miChangeType = typeof(DBConvert).GetMethod("ChangeType", BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(object), typeof(Type) }, null); 1797private Type GenerateColumnReference(SqlColumnRef cref) { 1802private Type GenerateUserColumn(SqlUserColumn suc) { 1840private void GenerateColumnAccess(Type cType, ProviderType pType, int ordinal, LocalBuilder locOrdinal) { 1841Type rType = pType.GetClosestRuntimeType(); 1904private Type GenerateClientCase(SqlClientCase scc, bool isDeferred, LocalBuilder locInstance) { 1936private Type GenerateTypeCase(SqlTypeCase stc) { 1975private Type GenerateDiscriminatedType(SqlDiscriminatedType dt) { 1976System.Diagnostics.Debug.Assert(dt.ClrType == typeof(Type)); 1985private Type GenerateDiscriminatedType(MetaType targetType, LocalBuilder locDiscriminator, ProviderType discriminatorType) { 2003this.GenerateConstant(typeof(Type), imt.Type); 2012this.GenerateConstant(typeof(Type), defType.Type); 2015this.GenerateDefault(typeof(Type)); 2020return typeof(Type); 2023private Type GenerateSearchedCase(SqlSearchedCase ssc) { 2049private void GenerateEquals(Type type) { 2050switch (Type.GetTypeCode(type)) { 2074private void GenerateDefault(Type type) { 2078private void GenerateDefault(Type type, bool throwIfNotNullable) { 2088gen.Emit(OpCodes.Call, typeof(Type).GetMethod( 2104private static Type[] readMethodSignature = new Type[] { typeof(int) }; 2107private MethodInfo GetReaderMethod(Type readerType, Type valueType) { 2111TypeCode tc = Type.GetTypeCode(valueType); 2141private void GenerateHasValue(Type nullableType) { 2146private void GenerateGetValue(Type nullableType) { 2151private void GenerateGetValueOrDefault(Type nullableType) { 2152MethodInfo mi = nullableType.GetMethod("GetValueOrDefault", System.Type.EmptyTypes); 2156private Type GenerateGlobalAccess(int iGlobal, Type type) { 2161Type varType = typeof(StrongBox<>).MakeGenericType(type); 2175private int AddGlobal(Type type, object value) { 2216private void GenerateArrayAssign(Type type) { 2229TypeCode tc = Type.GetTypeCode(type); 2267private Type GenerateArrayAccess(Type type, bool address) { 2290TypeCode tc = Type.GetTypeCode(type); 2326private Type GenerateConstant(Type type, object value) { 2339TypeCode tc = Type.GetTypeCode(type); 2944public override Type GetFieldType(int i) { return reader.GetFieldType(i); }
SqlClient\SqlBuilder.cs (4)
197Type type = mm.Type; 208switch (Type.GetTypeCode(type)) { 238switch (Type.GetTypeCode(type)) { 313internal static bool IsNullable(Type type) {
SqlClient\SqlProvider.cs (13)
413Type readerType; 544Type engineType = this.conManager.Connection.GetType().Module.GetType("System.Data.SqlServerCe.SqlCeEngine"); 834private ICompiledSubQuery CompileSubQuery(SqlNode query, Type elementType, ReadOnlyCollection<Me.SqlParameter> parameters) { 970Type clientElementType = cq.Query.NodeType == SqlNodeType.Multiset ? TypeSystem.GetElementType(cq.ClrType) : cq.ClrType; 1213IEnumerable IProvider.Translate(Type elementType, DbDataReader reader) { 1226Type enumerableType = typeof(OneTimeEnumerable<>).MakeGenericType(elementType); 1294Type resultType; 1296internal QueryInfo(SqlNode query, string commandText, ReadOnlyCollection<SqlParameterInfo> parameters, ResultShape resultShape, Type resultType) { 1315internal Type ResultType { 1393private Type GetResultType(Expression query) { 1438private QueryInfo[] BuildQuery(ResultShape resultShape, Type resultType, SqlNode node, ReadOnlyCollection<Me.SqlParameter> parentParameters, SqlNodeAnnotations annotations) { 1636private IObjectReaderFactory GetReaderFactory(SqlNode node, Type elemType) { 1680Type resultType = TypeSystem.GetSequenceType(rowType.Type);
SqlClient\SqlTypeSystemProvider.cs (15)
84private static Type GetClosestRuntimeType(SqlDbType sqlDbType) { 211Type runtimeOnlyType; 231internal SqlType(Type type) { 437internal override Type GetClosestRuntimeType() { 1040Type vType = value.GetType(); 1041Type pType = type.GetClosestRuntimeType(); 1375Type clrType = (o != null) ? o.GetType() : typeof(object); 1399internal override ProviderType From(Type type) 1404internal override ProviderType From(Type type, int? size) { 1413internal override ProviderType From(Type type, int? size) { 1416TypeCode tc = System.Type.GetTypeCode(type); 1514internal override ProviderType From(Type type, int? size) 1521if (System.Type.GetTypeCode(type) == TypeCode.Object && 1533internal override ProviderType From(Type type, int? size) { 1536TypeCode tc = System.Type.GetTypeCode(type);
SubqueryRules.cs (1)
32Type declType = mi.DeclaringType;
System.Data.Services (353)
parent\Client\System\Data\Services\Client\Common.cs (3)
31private static readonly Type[] unsupportedTypes = new Type[] 51internal static bool IsUnsupportedType(Type type)
System\Data\Services\Caching\MetadataCache.cs (4)
41internal static MetadataCacheItem AddCacheItem(Type serviceType, object dataContextInstance, MetadataCacheItem item) 82internal static MetadataCacheItem TryLookup(Type serviceType, object dataContextInstance) 112private readonly Type serviceType; 117internal MetadataCacheKey(Type serviceType, ObjectContext dataContextInstance)
System\Data\Services\Caching\MetadataCacheItem.cs (7)
32private readonly Type type; 35private readonly Dictionary<Type, ResourceType> typeCache; 80internal MetadataCacheItem(Type type) 85this.typeCache = new Dictionary<Type, ResourceType>(EqualityComparer<Type>.Default); 181internal Dictionary<Type, ResourceType> TypeCache 202internal Type Type
System\Data\Services\DataService.cs (4)
451Type dataContextType = typeof(T); 566private static DataServiceConfiguration CreateConfiguration(Type dataServiceType, IDataServiceMetadataProvider provider) 1898Type dataServiceType = this.GetType(); 1899Type dataContextType = typeof(T);
System\Data\Services\DataServiceConfiguration.cs (17)
91private List<Type> knownTypes; 142this.knownTypes = new List<Type>(); 364public void RegisterKnownType(Type type) 744internal IEnumerable<Type> GetKnownTypes() 763internal void Initialize(Type type) 894private static void CheckQueryInterceptorSignature(Type type, MethodInfo method, ResourceSet container) 906Type lambdaType = typeof(Func<,>).MakeGenericType(container.ResourceType.InstanceType, typeof(bool)); 907Type expectedReturnType = typeof(Expression<>).MakeGenericType(lambdaType); 908Type returnType = method.ReturnType; 915Type nullableLambdaType = typeof(Func<,>).MakeGenericType(container.ResourceType.InstanceType, typeof(bool?)); 943private void InvokeStaticInitialization(Type type) 951MethodInfo method = type.GetMethod(XmlConstants.ClrServiceInitializationMethodName, flags, null, new Type[] { typeof(IDataServiceConfiguration) }, null); 954method = type.GetMethod(XmlConstants.ClrServiceInitializationMethodName, flags, null, new Type[] { typeof(DataServiceConfiguration) }, null); 989private void RegisterCallbacks(Type type) 1054Type elementParameterType = parameters[0].ParameterType; 1066Type actionParameterType = parameters[1].ParameterType; 1077Type returnType = method.ReturnType;
System\Data\Services\DataServiceHost.cs (1)
37public DataServiceHost(Type serviceType, Uri[] baseAddresses)
System\Data\Services\DataServiceHostFactory.cs (1)
33protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
System\Data\Services\Error.cs (1)
201internal static void ThrowObjectDisposed(Type type)
System\Data\Services\IDataServiceConfiguration.cs (1)
103void RegisterKnownType(Type type);
System\Data\Services\IgnorePropertiesAttribute.cs (1)
79internal static IEnumerable<string> GetProperties(Type type, bool inherit, BindingFlags bindingFlags)
System\Data\Services\Internal\ProjectedWrapper.cs (7)
29private static Type[] precreatedProjectedWrapperTypes = new Type[] 134internal static Type GetProjectedWrapperType(int projectedPropertyCount) 155internal static MemberBinding[] Bind(Expression[] bindingExpressions, Type projectedWrapperType) 272Type projectedWrapperType, 289private static MemberAssignment BindToProjectedProperty(Type projectedWrapperType, int propertyIndex, Expression expression) 407public Type ElementType
System\Data\Services\OpenTypes\OpenTypeMethods.cs (1)
84new Type[] { typeof(object), typeof(string) },
System\Data\Services\Parsing\FunctionDescription.cs (42)
41private readonly Type[] parameterTypes; 49public FunctionDescription(MemberInfo member, Type[] parameterTypes) 58public FunctionDescription(string name, Type[] parameterTypes, Func<Expression, Expression[], Expression> conversionFunction) 70Type[] parameterTypes, 112public Type[] ParameterTypes 158Type[] argumentTypes = new Type[this.parameterTypes.Length]; 191foreach (Type type in description.ParameterTypes) 196Type underlyingType = Nullable.GetUnderlyingType(type); 226result.Add("tolower", new FunctionDescription[] { StringInstanceFunction("ToLower", Type.EmptyTypes) }); 227result.Add("toupper", new FunctionDescription[] { StringInstanceFunction("ToUpper", Type.EmptyTypes) }); 228result.Add("trim", new FunctionDescription[] { StringInstanceFunction("Trim", Type.EmptyTypes) }); 239new FunctionDescription("SubstringOf", new Type[] { typeof(string), typeof(string) }, SubstringOf) 251CreateFunctionDescription(typeof(string), true /* instance */, false /* method */, "Length", Type.EmptyTypes) 271new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(Type) }, FunctionDescription.UnaryIsOf), 272new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(object), typeof(Type) }, FunctionDescription.BinaryIsOf), 273new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(ResourceType) }, FunctionDescription.UnaryIsOfResourceType), 274new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(object), typeof(ResourceType) }, FunctionDescription.BinaryIsOfResourceType), 286primitiveTypes[i].InstanceType != typeof(Type), 291castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { primitiveTypes[i].InstanceType, typeof(Type) }, FunctionDescription.BinaryCast)); 294castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(Type) }, FunctionDescription.UnaryCast)); 295castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(object), typeof(Type) }, FunctionDescription.BinaryCast)); 296castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(ResourceType) }, FunctionDescription.UnaryCastResourceType)); 297castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(object), typeof(ResourceType) }, FunctionDescription.BinaryCastResourceType)); 314Type[] parameterTypes = new Type[] { typeof(string) }; 327return Expression.TypeIs(target, (Type)ce.Value); 337return Expression.TypeIs(arguments[0], (Type)ce.Value); 378return Expression.Convert(target, (Type)ce.Value); 396Type targetType = (Type)ce.Value; 444Type targetType, 448params Type[] parameterTypes) 469Type[] functionParameterTypes; 472functionParameterTypes = new Type[parameterTypes.Length + 1]; 506private static FunctionDescription StringInstanceFunction(string name, params Type[] parameterTypes) 518CreateFunctionDescription(typeof(DateTime), true /* instance */, false /* method */, name, Type.EmptyTypes)
System\Data\Services\Parsing\RequestQueryParser.cs (53)
51Type selectorType = selectorLambda.Body.Type; 57new Type[] { source.ElementType, selectorType }, 85Expression.Call(typeof(Queryable), "Where", new Type[] { source.ElementType }, source.Expression, Expression.Quote(lambda))); 99private static LambdaExpression ParseLambdaForWhere(IDataService service, ResourceSetWrapper setForIt, ResourceType typeForIt, Type queryElementType, string expression) 421private static Type GetNonNullableType(Type type) 429private static bool IsSignedIntegralType(Type type) 437private static bool IsUnsignedIntegralType(Type type) 448private static int GetNumericTypeKind(Type type) 452switch (Type.GetTypeCode(type)) 474private static bool IsEnumType(Type type) 482private static IEnumerable<Type> SelfAndBaseTypes(Type type) 486List<Type> types = new List<Type>(); 497private static IEnumerable<Type> SelfAndBaseClasses(Type type) 509private static void AddInterface(List<Type> types, Type type) 514foreach (Type t in type.GetInterfaces()) 555private static object ParseNumber(string text, Type type) 557TypeCode tc = Type.GetTypeCode(GetNonNullableType(type)); 633private static bool IsCompatibleWith(Type source, Type target) 645Type sourceType = GetNonNullableType(source); 646Type targetType = GetNonNullableType(target); 658TypeCode sourceCode = sourceType.IsEnum ? TypeCode.Object : Type.GetTypeCode(sourceType); 659TypeCode targetCode = targetType.IsEnum ? TypeCode.Object : Type.GetTypeCode(targetType); 763private static bool IsBetterThan(Expression[] args, IEnumerable<Type> firstCandidate, IEnumerable<Type> secondCandidate) 767using (IEnumerator<Type> first = firstCandidate.GetEnumerator()) 768using (IEnumerator<Type> second = secondCandidate.GetEnumerator()) 816private static int CompareConversions(Type source, Type targetA, Type targetB) 1298return left.Type.GetMethod(methodName, new Type[] { left.Type, right.Type }); 1582Type signatures = equality ? typeof(OperationSignatures.IEqualitySignatures) : typeof(OperationSignatures.IRelationalSignatures); 1935if (typeExpression.Type == typeof(Type)) 1937Type castTargetType = (Type)((ConstantExpression)typeExpression).Value; 2015private Expression ParseTypedLiteral(Type targetType, string targetTypeName, ExpressionLexer l) 2036Type type = instance.Type; 2302private void CheckAndPromoteOperand(Type signatures, string operationName, ref Expression expr, int errorPos) 2322private void CheckAndPromoteOperands(Type signatures, string operationName, ref Expression left, ref Expression right, int errorPos) 2341private int FindMethod(Type type, string methodName, Expression[] args, out MethodBase method) 2344foreach (Type t in SelfAndBaseTypes(type)) 2346MemberInfo[] members = t.FindMembers(MemberTypes.Method, flags, Type.FilterName, methodName); 2466private Expression PromoteExpression(Expression expr, Type type, bool exact) 2490Type target = GetNonNullableType(type); 2492if (ce.Type == typeof(string) && (target == typeof(Type) || target == typeof(ResourceType))) 2499if (target == typeof(Type)) 2518switch (Type.GetTypeCode(ce.Type)) 2649public IEnumerable<Type> ParameterTypes
System\Data\Services\Parsing\WebConvert.cs (4)
115internal static bool IsKeyTypeQuoted(Type type) 343internal static bool TryKeyStringToPrimitive(string text, Type targetType, out object targetValue) 498internal static object StringToPrimitive(string text, Type targetType) 620Type valueType = value.GetType();
System\Data\Services\Providers\BaseServiceProvider.cs (27)
179protected Type Type 186private Dictionary<Type, ResourceType> TypeCache 248public virtual bool GetTypeIsOrdered(Type type) 259public virtual object GetService(Type serviceType) 459internal static Type GetIEnumerableElement(Type type) 473internal static Type GetGenericInterfaceElementType(Type type, TypeFilter typeFilter) 483Type[] queriables = type.FindInterfaces(typeFilter, null); 502internal void AddOperationsFromType(Type type) 569protected static Type GetIQueryableElement(Type type) 581protected static bool TryGetType(IDictionary<Type, ResourceType> knownTypes, Type type, out ResourceType resourceType) 640IDictionary<Type, ResourceType> knownTypes, 651protected abstract void PopulateMetadataForUserSpecifiedTypes(IEnumerable<Type> userSpecifiedTypes, IDictionary<Type, ResourceType> knownTypes, IDictionary<ResourceType, List<ResourceType>> childTypes, IEnumerable<ResourceSet> entitySets); 661protected abstract ResourceType PopulateMetadataForType(Type type, IDictionary<Type, ResourceType> knownTypes, IDictionary<ResourceType, List<ResourceType>> childTypes, IEnumerable<ResourceSet> entitySets); 668protected virtual ResourceType ResolveNonPrimitiveType(Type type) 683private static bool IQueryableTypeFilter(Type m, object filterCriteria) 693private static bool IEnumerableTypeFilter(Type m, object filterCriteria) 740Type resultType = null; 749Type queryableElement = GetGenericInterfaceElementType(method.ReturnType, IQueryableTypeFilter); 759Type enumerableElement = GetIEnumerableElement(method.ReturnType); 848private ResourceType GetNonPrimitiveType(Type type) 857Type elementType = BaseServiceProvider.GetIEnumerableElement(type);
System\Data\Services\Providers\BasicExpandProvider.cs (27)
186Type resultQueryable = typeof(ExpandedQueryable<>).MakeGenericType(query.ElementType); 215Type elementType = ReflectionServiceProvider.GetIEnumerableElement(expression.Type); 266Type elementType = ReflectionServiceProvider.GetIEnumerableElement(expression.Type); 373public Type ElementType 594private Type elementType; 597private Type enumeratedType; 717internal Type ProjectedType 1066internal void AssignTypeForExpected(Type enumeratedType, bool singleResult) 1083Type segmentType = property.ResourceType.InstanceType; 1190private static LambdaExpression BuildLambdaExpression(Type delegateType, Expression body, IEnumerable<ParameterExpression> parameters) 1229Type functionParameter = p[1].ParameterType; 1328private static MemberAssignment BindByName(Type type, string propertyName, Expression source) 1342Type expressionElementType = 1393Type expressionElementType = 1417Type[] typeArguments = new Type[] { parameter.Type, body.Type }; 1418Type delegateType = typeof(Func<,>).MakeGenericType(typeArguments); 1505Type projectedSkipTokenType = this.elementType.GetGenericArguments().Skip(this.children.Count + 1).First(); 1548Type projectedWrapperType = ProjectedWrapper.GetProjectedWrapperType(this.projectedProperties.Count); 1736Type expressionElementType = ReflectionServiceProvider.GetIEnumerableElement(expression.Type); 1757new Type[] { expressionElementType, updatedOrderingBody.Type }, 1768new Type[] { expressionElementType }, 1785Type[] typeArguments = new Type[1 + this.children.Count + (this.needSkipToken ? 1 : 0)]; 1799Type[] skipTokenTypes = new Type[this.OrderingInfo.OrderingExpressions.Count + 1]; 1822private Type GetProjectedWrapperType()
System\Data\Services\Providers\DataServiceProviderMethods.cs (2)
32new Type[] { typeof(object), typeof(ResourceProperty) }, 40new Type[] { typeof(object), typeof(ResourceProperty) },
System\Data\Services\Providers\DataServiceProviderWrapper.cs (1)
887internal void CheckIfOrderedType(Type clrType)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (22)
206public override object GetService(Type serviceType) 842IDictionary<Type, ResourceType> knownTypes, 881Type elementType = GetClrTypeForCSpaceType(metadataWorkspace, entitySet.ElementType); 924IEnumerable<Type> userSpecifiedTypes, 925IDictionary<Type, ResourceType> knownTypes, 929foreach (Type type in userSpecifiedTypes) 955Type type, 956IDictionary<Type, ResourceType> knownTypes, 992protected override ResourceType ResolveNonPrimitiveType(System.Type type) 994Type actualType = ObjectContext.GetObjectType(type); 1033/// <returns>The resolved <see cref="Type"/> for the given <paramref name="edmType"/>.</returns> 1034private static Type GetClrTypeForCSpaceType(MetadataWorkspace workspace, StructuralType edmType) 1306IDictionary<Type, ResourceType> knownTypes, 1315Type clrType = GetClrTypeForCSpaceType(workspace, edmType); 1341Type clrType, 1343IDictionary<Type, ResourceType> knownTypes, 1380IDictionary<Type, ResourceType> knownTypes) 1429Type propertyClrType = GetClrTypeForCSpaceType(workspace, (EntityType)((CollectionType)member.TypeUsage.EdmType).TypeUsage.EdmType); 1560Type facetValueType = facetValue.GetType(); 2050private static object CreateObject(ObjectContext context, Type clrType) 2351Type[] parameterTypes = new Type[] { typeof(object) };
System\Data\Services\Providers\ReflectionServiceProvider.cs (36)
104public override bool GetTypeIsOrdered(Type type) 242IDictionary<Type, ResourceType> knownTypes, 256Type elementType = BaseServiceProvider.GetIQueryableElement(property.PropertyType); 266Type entitySetType = entitySetInfo.Value.ResourceType.InstanceType; 318Type[] parameterTypes = new Type[] { typeof(object) }; 340IEnumerable<Type> userSpecifiedTypes, 341IDictionary<Type, ResourceType> knownTypes, 346foreach (Type type in userSpecifiedTypes) 372Type type, 373IDictionary<Type, ResourceType> knownTypes, 397private static bool IsComplexType(Type type) 430private static bool DoesTypeHaveKeyProperties(Type type, bool entityTypeCandidate) 465IDictionary<Type, ResourceType> knownTypes, 495Type type, 496IDictionary<Type, ResourceType> knownTypes, 501List<Type> ancestors = new List<Type>(); 514Type baseType = type; 593IDictionary<Type, ResourceType> knownTypes, 631Type resourcePropertyType = property.PropertyType; 637Type collectionType = GetIEnumerableElement(property.PropertyType); 783Type type, 784IDictionary<Type, ResourceType> knownTypes, 808private static ResourceSet InternalGetContainerForResourceType(Type type, IEnumerable<ResourceSet> entitySets) 833IDictionary<Type, ResourceType> knownTypes, 855List<Type> derivedTypes = new List<Type>(); 874foreach (Type type in assembly.GetTypes()) 901foreach (Type type in derivedTypes) 944Type type, 947IDictionary<Type, ResourceType> knownTypes, 981private static string GetModelTypeName(Type type) 986Type[] genericArguments = type.GetGenericArguments(); 1033private static bool HasGenericParameters(Type type) 1037foreach (Type arg in type.GetGenericArguments())
System\Data\Services\Providers\ResourceProperty.cs (1)
185internal Type Type
System\Data\Services\Providers\ResourceType.cs (6)
55private readonly Type type; 128Type instanceType, 158internal ResourceType(Type type, string namespaceName, string name) 175Type type, 234public Type InstanceType 577public static ResourceType GetPrimitiveResourceType(Type type)
System\Data\Services\RequestQueryProcessor.cs (9)
1175Type queryElementType = this.query.ElementType; 1181Type skipTokenWrapperType = this.GetSkipTokenWrapperTypeAndDescription(skipTokenDescription); 1185Type resultWrapperType = WebUtil.GetWrapperType(new Type[] { queryElementType, skipTokenWrapperType }, null); 1209private Type GetSkipTokenWrapperTypeAndDescription(StringBuilder skipTokenDescription) 1213Type[] skipTokenTypes = new Type[this.topLevelOrderingInfo.OrderingExpressions.Count + 1]; 1237private MemberBinding[] GetSkipTokenBindings(Type skipTokenWrapperType, String skipTokenDescription, ParameterExpression expandParameter) 1261private void UpdateOrderingInfoWithSkipTokenWrapper(Type resultWrapperType)
System\Data\Services\RequestUriProcessor.cs (7)
408internal static IQueryable InvokeSelectForTypes(IQueryable query, Type projectedType, LambdaExpression selector) 1044private static LambdaExpression ReplaceParameterTypeForLambda(LambdaExpression input, Type targetType) 1069Type parameterType = operation.Parameters[i].ParameterType.InstanceType; 1071Type underlyingType = Nullable.GetUnderlyingType(parameterType); 1083Type targetType = underlyingType ?? parameterType; 1135Type enumerableElement = BaseServiceProvider.GetIEnumerableElement(property.Type); 1199Type enumerableElement = BaseServiceProvider.GetIEnumerableElement(property.Type);
System\Data\Services\Serializers\JsonDeserializer.cs (2)
75internal static object ConvertValues(object value, string propertyName, Type typeToBeConverted, DataServiceProviderWrapper provider) 82Type propertyType = Nullable.GetUnderlyingType(typeToBeConverted) ?? typeToBeConverted;
System\Data\Services\Serializers\JsonSerializer.cs (1)
316Type valueType = value.GetType();
System\Data\Services\Serializers\PlainXmlDeserializer.cs (1)
113internal static object ConvertValuesForXml(object value, string propertyName, Type typeToBeConverted)
System\Data\Services\Serializers\SyndicationSerializer.cs (5)
191Type propertyType = element == null ? typeof(string) : element.GetType(); 783Type customObjectType = customObject.GetType(); 784Type[] parameterTypes = new Type[] { typeof(object), typeof(DictionaryContent) }; 879Type valueType;
System\Data\Services\WebUtil.cs (59)
57private static readonly Type OutOfMemoryType = typeof(System.OutOfMemoryException); 60private static readonly Type StackOverflowType = typeof(System.StackOverflowException); 63private static readonly Type ThreadAbortType = typeof(System.Threading.ThreadAbortException); 66private static readonly KeyValuePair<Type, string>[] PrimitiveTypesEdmNameMapping = 67new KeyValuePair<Type, string>[] 69new KeyValuePair<Type, string>(typeof(string), XmlConstants.EdmStringTypeName), 70new KeyValuePair<Type, string>(typeof(Boolean), XmlConstants.EdmBooleanTypeName), 71new KeyValuePair<Type, string>(typeof(Boolean?), XmlConstants.EdmBooleanTypeName), 72new KeyValuePair<Type, string>(typeof(Byte), XmlConstants.EdmByteTypeName), 73new KeyValuePair<Type, string>(typeof(Byte?), XmlConstants.EdmByteTypeName), 74new KeyValuePair<Type, string>(typeof(DateTime), XmlConstants.EdmDateTimeTypeName), 75new KeyValuePair<Type, string>(typeof(DateTime?), XmlConstants.EdmDateTimeTypeName), 76new KeyValuePair<Type, string>(typeof(Decimal), XmlConstants.EdmDecimalTypeName), 77new KeyValuePair<Type, string>(typeof(Decimal?), XmlConstants.EdmDecimalTypeName), 78new KeyValuePair<Type, string>(typeof(Double), XmlConstants.EdmDoubleTypeName), 79new KeyValuePair<Type, string>(typeof(Double?), XmlConstants.EdmDoubleTypeName), 80new KeyValuePair<Type, string>(typeof(Guid), XmlConstants.EdmGuidTypeName), 81new KeyValuePair<Type, string>(typeof(Guid?), XmlConstants.EdmGuidTypeName), 82new KeyValuePair<Type, string>(typeof(Int16), XmlConstants.EdmInt16TypeName), 83new KeyValuePair<Type, string>(typeof(Int16?), XmlConstants.EdmInt16TypeName), 84new KeyValuePair<Type, string>(typeof(Int32), XmlConstants.EdmInt32TypeName), 85new KeyValuePair<Type, string>(typeof(Int32?), XmlConstants.EdmInt32TypeName), 86new KeyValuePair<Type, string>(typeof(Int64), XmlConstants.EdmInt64TypeName), 87new KeyValuePair<Type, string>(typeof(Int64?), XmlConstants.EdmInt64TypeName), 88new KeyValuePair<Type, string>(typeof(SByte), XmlConstants.EdmSByteTypeName), 89new KeyValuePair<Type, string>(typeof(SByte?), XmlConstants.EdmSByteTypeName), 90new KeyValuePair<Type, string>(typeof(Single), XmlConstants.EdmSingleTypeName), 91new KeyValuePair<Type, string>(typeof(Single?), XmlConstants.EdmSingleTypeName), 92new KeyValuePair<Type, string>(typeof(byte[]), XmlConstants.EdmBinaryTypeName), 95new KeyValuePair<Type, string>(typeof(XElement), XmlConstants.EdmStringTypeName), 96new KeyValuePair<Type, string>(typeof(Binary), XmlConstants.EdmBinaryTypeName), 100private static readonly KeyValuePair<Type, string>[] PrimitiveTypesMimeTypeMapping = 101new KeyValuePair<Type, string>[] 103new KeyValuePair<Type, string>(typeof(byte[]), XmlConstants.MimeApplicationOctetStream), 104new KeyValuePair<Type, string>(typeof(Binary), XmlConstants.MimeApplicationOctetStream), 108private static readonly KeyValuePair<Type, ContentFormat>[] PrimitiveTypesContentFormatMapping = 109new KeyValuePair<Type, ContentFormat>[] 111new KeyValuePair<Type, ContentFormat>(typeof(byte[]), ContentFormat.Binary), 112new KeyValuePair<Type, ContentFormat>(typeof(Binary), ContentFormat.Binary), 342foreach (KeyValuePair<Type, string> mapping in PrimitiveTypesMimeTypeMapping) 351foreach (KeyValuePair<Type, ContentFormat> mapping in PrimitiveTypesContentFormatMapping) 367internal static string GetTypeName(Type type) 386Type type = e.GetType(); 576internal static Delegate CreateNewInstanceConstructor(Type type, string fullName, Type targetType) 582ConstructorInfo emptyConstructor = type.GetConstructor(Type.EmptyTypes); 589System.Reflection.Emit.DynamicMethod method = new System.Reflection.Emit.DynamicMethod("invoke_constructor", targetType, Type.EmptyTypes, false); 604internal static bool IsPrimitiveType(Type type) 611foreach (KeyValuePair<Type, string> primitiveTypeInfo in PrimitiveTypesEdmNameMapping) 795Type elementType = element.GetType(); 854internal static bool TypeAllowsNull(Type type) 866internal static Type GetTypeAllowingNull(Type type) 875internal static bool IsNullableType(Type type) 977internal static string GetModelTypeNamespace(Type type) 1328internal static Type GetWrapperType(Type[] wrapperParameters, Func<object, String> errorGenerator) 1344internal static bool IsExpandedWrapperType(Type inputType) 1685internal Type Type
System.Data.Services.Client (312)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (2)
115internal static bool IsKeyTypeQuoted(Type type) 620Type valueType = value.GetType();
parent\Server\System\Data\Services\Providers\EntityPropertyMappingInfo.cs (4)
20using TypeOrResourceType_Alias = System.Type; 42private readonly TypeOrResourceType_Alias definingType; 78public EntityPropertyMappingInfo(EntityPropertyMappingAttribute attribute, Type definingType, ClientType actualPropertyType) 104public TypeOrResourceType_Alias DefiningType
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (4)
49Type et = TypeSystem.GetElementType(expression.Type); 50Type qt = typeof(DataServiceQuery<>.DataServiceOrderedQuery).MakeGenericType(et); 56new Type[] { typeof(Expression), typeof(DataServiceQueryProvider) }, 160Type lastSegmentType = re.Projection == null ? re.ResourceType : re.Projection.Selector.Parameters[0].Type;
System\Data\Services\Client\ALinq\Evaluator.cs (1)
175Type constantType = e.Type;
System\Data\Services\Client\ALinq\ExpressionWriter.cs (1)
482private string TypeNameForUri(Type type)
System\Data\Services\Client\ALinq\FilterQueryOptionExpression.cs (1)
30internal FilterQueryOptionExpression(Type type, Expression predicate)
System\Data\Services\Client\ALinq\NavigationPropertySingletonExpression.cs (5)
32private readonly Type resourceType; 47internal NavigationPropertySingletonExpression(Type type, Expression source, Expression memberExpression, Type resourceType, List<string> expandPaths, CountOption countOption, Dictionary<ConstantExpression, ConstantExpression> customQueryOptions, ProjectionQueryOptionExpression projection) 71internal override Type ResourceType 103internal override ResourceExpression CreateCloneWithNewType(Type type)
System\Data\Services\Client\ALinq\OrderByQueryOptionExpression.cs (1)
30internal OrderByQueryOptionExpression(Type type, List<Selector> selectors)
System\Data\Services\Client\ALinq\PathBox.cs (1)
104Type t = TypeSystem.GetElementType(pi.PropertyType);
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (11)
132internal static void CheckChainedSequence(MethodCallExpression call, Type type) 155Type elementType = TypeSystem.GetElementType(e.Type); 157Type dscType = WebUtil.GetDataServiceCollectionOfT(elementType); 260private readonly Type type; 267private EntityProjectionAnalyzer(PathBox pb, Type type) 311Type targetType = GetMemberType(ma.Member); 356Type sourceType = Nullable.GetUnderlyingType(u.Operand.Type) ?? u.Operand.Type; 357Type targetType = Nullable.GetUnderlyingType(u.Type) ?? u.Type; 504private static Type GetMemberType(MemberInfo member) 524private Type type; 526private NonEntityProjectionAnalyzer(PathBox pb, Type type)
System\Data\Services\Client\ALinq\ProjectionQueryOptionExpression.cs (1)
44internal ProjectionQueryOptionExpression(Type type, LambdaExpression lambda, List<string> paths)
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (4)
36private ProjectionRewriter(Type proposedParameterType) 44internal static LambdaExpression TryToRewrite(LambdaExpression le, Type proposedParameterType) 70Type delegateType = typeof(Func<,>).MakeGenericType(new Type[] { newLambdaParameter.Type, lambda.Body.Type });
System\Data\Services\Client\ALinq\QueryComponents.cs (3)
31private readonly Type lastSegmentType; 52internal QueryComponents(Uri uri, Version version, Type lastSegmentType, LambdaExpression projection, Dictionary<Expression, Expression> normalizerRewrites) 91internal Type LastSegmentType
System\Data\Services\Client\ALinq\QueryOptionExpression.cs (1)
28internal QueryOptionExpression(ExpressionType nodeType, Type type) : base(nodeType, type)
System\Data\Services\Client\ALinq\ReflectionUtil.cs (5)
444Dictionary<Type, int> genericArgumentOrdinals = null; 449.Select((t, i) => new KeyValuePair<Type, int>(t, i)) 477private static void AppendCanonicalTypeDescription(Type type, Dictionary<Type, int> genericArgumentOrdinals, StringBuilder description) 495foreach (Type genericArgument in type.GetGenericArguments())
System\Data\Services\Client\ALinq\ResourceBinder.cs (12)
671Type resourceType = TypeSystem.GetElementType(navPropRef.Type); 924private static ResourceSetExpression CreateResourceSetExpression(Type type, ResourceExpression source, Expression memberExpression, Type resourceType) 935Type elementType = TypeSystem.GetElementType(type); 937Type expressionType = typeof(IOrderedQueryable<>).MakeGenericType(elementType); 946private static NavigationPropertySingletonExpression CreateNavigationPropertySingletonExpression(Type type, ResourceExpression source, Expression memberExpression) 965private static ResourceSetExpression RemoveTransparentScope(Type expectedResultType, ResourceSetExpression input) 1179MethodInfo mi = typeof(string).GetMethod("Concat", new Type[] { typeof(string), typeof(string)}); 1275Type t = typeof(DataServiceQuery<>).MakeGenericType(mce.Method.DeclaringType.GetGenericArguments()[0]); 1277if (mce.Method == t.GetMethod("Expand", new Type[] { typeof(string) })) 1281else if (mce.Method == t.GetMethod("AddQueryOption", new Type[] { typeof(string), typeof(object) })) 1522internal static List<PropertyInfo> GetKeyProperties(Type type)
System\Data\Services\Client\ALinq\ResourceExpression.cs (3)
72internal ResourceExpression(Expression source, ExpressionType nodeType, Type type, List<string> expandPaths, CountOption countOption, Dictionary<ConstantExpression, ConstantExpression> customQueryOptions, ProjectionQueryOptionExpression projection) 83abstract internal ResourceExpression CreateCloneWithNewType(Type type); 91internal abstract Type ResourceType { get; }
System\Data\Services\Client\ALinq\ResourceSetExpression.cs (5)
35private readonly Type resourceType; 61internal ResourceSetExpression(Type type, Expression source, Expression memberExpression, Type resourceType, List<string> expandPaths, CountOption countOption, Dictionary<ConstantExpression, ConstantExpression> customQueryOptions, ProjectionQueryOptionExpression projection) 90internal override Type ResourceType 212internal override ResourceExpression CreateCloneWithNewType(Type type)
System\Data\Services\Client\ALinq\SkipQueryOptionExpression.cs (1)
32internal SkipQueryOptionExpression(Type type, ConstantExpression skipAmount)
System\Data\Services\Client\ALinq\TakeQueryOptionExpression.cs (1)
32internal TakeQueryOptionExpression(Type type, ConstantExpression takeAmount)
System\Data\Services\Client\ALinq\TypeSystem.cs (27)
50expressionMethodMap.Add(typeof(string).GetMethod("Contains", new Type[] { typeof(string) }), @"substringof"); 51expressionMethodMap.Add(typeof(string).GetMethod("EndsWith", new Type[] { typeof(string) }), @"endswith"); 52expressionMethodMap.Add(typeof(string).GetMethod("StartsWith", new Type[] { typeof(string) }), @"startswith"); 53expressionMethodMap.Add(typeof(string).GetMethod("IndexOf", new Type[] { typeof(string) }), @"indexof"); 54expressionMethodMap.Add(typeof(string).GetMethod("Replace", new Type[] { typeof(string), typeof(string) }), @"replace"); 55expressionMethodMap.Add(typeof(string).GetMethod("Substring", new Type[] { typeof(int) }), @"substring"); 56expressionMethodMap.Add(typeof(string).GetMethod("Substring", new Type[] { typeof(int), typeof(int) }), @"substring"); 57expressionMethodMap.Add(typeof(string).GetMethod("ToLower", Type.EmptyTypes), @"tolower"); 58expressionMethodMap.Add(typeof(string).GetMethod("ToUpper", Type.EmptyTypes), @"toupper"); 59expressionMethodMap.Add(typeof(string).GetMethod("Trim", Type.EmptyTypes), @"trim"); 60expressionMethodMap.Add(typeof(string).GetMethod("Concat", new Type[] { typeof(string), typeof(string) }, null), @"concat"); 72expressionMethodMap.Add(typeof(Math).GetMethod("Round", new Type[] { typeof(double) }), @"round"); 73expressionMethodMap.Add(typeof(Math).GetMethod("Round", new Type[] { typeof(decimal) }), @"round"); 74expressionMethodMap.Add(typeof(Math).GetMethod("Floor", new Type[] { typeof(double) }), @"floor"); 76expressionMethodMap.Add(typeof(Math).GetMethod("Floor", new Type[] { typeof(decimal) }), @"floor"); 78expressionMethodMap.Add(typeof(Math).GetMethod("Ceiling", new Type[] { typeof(double) }), @"ceiling"); 80expressionMethodMap.Add(typeof(Math).GetMethod("Ceiling", new Type[] { typeof(decimal) }), @"ceiling"); 158internal static Type GetElementType(Type seqType) 160Type ienum = FindIEnumerable(seqType); 190internal static Type FindIEnumerable(Type seqType) 204foreach (Type arg in seqType.GetGenericArguments()) 206Type ienum = typeof(IEnumerable<>).MakeGenericType(arg); 214Type[] ifaces = seqType.GetInterfaces(); 217foreach (Type iface in ifaces) 219Type ienum = FindIEnumerable(iface);
System\Data\Services\Client\AtomMaterializer.cs (42)
74Type expectedType, 93Type expectedType, 94Type resultType, 96Func<object, object, Type, object> selector) 125Type expectedType, 126Type resultType, 128Func<object, object, Type, object>[] propertyValues) 145internal static object ProjectionValueForPath(object materializer, object entry, Type expectedType, object path) 158internal static object DirectMaterializePlan(object materializer, object entry, Type expectedEntryType) 170internal static object ShallowMaterializePlan(object materializer, object entry, Type expectedEntryType) 190private readonly Type expectedType; 252Type expectedType, 410internal static bool IsDataServiceCollection(Type type) 488Type expectedType, 551Type expectedType, 552Type resultType, 554Func<object, object, Type, object> selector) 632Type expectedType, 633Type resultType, 635Func<object, object, Type, object>[] propertyValues) 702internal static object ProjectionValueForPath(AtomMaterializer materializer, AtomEntry entry, Type expectedType, ProjectionPath path) 756Type collectionType = ClientType.GetImplementationType(segment.ProjectionType, typeof(ICollection<>)); 766Type nestedExpectedType = collectionType.GetGenericArguments()[0]; 767Type feedType = segment.ProjectionType; 778Type dataServiceCollectionType = WebUtil.GetDataServiceCollectionOfT(nestedExpectedType); 843internal static void ProjectionEnsureEntryAvailableOfType(AtomMaterializer materializer, AtomEntry entry, Type requiredType) 889internal static object DirectMaterializePlan(AtomMaterializer materializer, AtomEntry entry, Type expectedEntryType) 900internal static object ShallowMaterializePlan(AtomMaterializer materializer, AtomEntry entry, Type expectedEntryType) 988Type underlyingExpectedType = Nullable.GetUnderlyingType(this.expectedType) ?? this.expectedType; 1086private static ProjectionPlan CreatePlanForDirectMaterialization(Type lastSegmentType) 1098private static ProjectionPlan CreatePlanForShallowMaterialization(Type lastSegmentType) 1110private static Action<object, object> GetAddToCollectionDelegate(Type listType) 1114Type listElementType; 1137private static object GetOrCreateCollectionProperty(object instance, ClientType.ClientProperty property, Type collectionType) 1177Type nestedExpectedType, 1200private static bool MaterializeDataValue(Type type, AtomContentProperty atomProperty, DataServiceContext context) 1210Type underlyingType = Nullable.GetUnderlyingType(type) ?? type; 1628private bool TryResolveFromContext(AtomEntry entry, Type expectedEntryType) 1667private void ResolveByCreatingWithType(AtomEntry entry, Type type) 1687private void ResolveByCreating(AtomEntry entry, Type expectedEntryType) 1730private void ResolveOrCreateInstance(AtomEntry entry, Type expectedEntryType) 1887private void Materialize(AtomEntry entry, Type expectedEntryType, bool includeLinks)
System\Data\Services\Client\Binding\BindingEntityInfo.cs (20)
49private static readonly HashSet<Type> knownNonEntityTypes = new HashSet<Type>(EqualityComparer<Type>.Default); 52private static readonly Dictionary<Type, object> knownObservableCollectionTypes = new Dictionary<Type, object>(EqualityComparer<Type>.Default); 55private static readonly Dictionary<Type, BindingEntityInfoPerType> bindingEntityInfos = new Dictionary<Type, BindingEntityInfoPerType>(EqualityComparer<Type>.Default); 60internal static IList<BindingPropertyInfo> GetObservableProperties(Type entityType) 68internal static ClientType GetClientType(Type entityType) 117internal static bool IsDataServiceCollection(Type collectionType) 135Type type = collectionType; 144Type[] parms = type.GetGenericArguments(); 149Type dataServiceCollection = WebUtil.GetDataServiceCollectionOfT(parms); 182internal static bool IsEntityType(Type type) 236Type sourceType = source.GetType(); 257private static BindingEntityInfoPerType GetBindingEntityInfoFor(Type entityType) 288Type propertyType = p.PropertyType; 355private static string GetEntitySetAttribute(Type entityType)
System\Data\Services\Client\Binding\BindingGraph.cs (1)
95Type entityType = BindingUtils.GetCollectionEntityType(collection.GetType());
System\Data\Services\Client\Binding\BindingUtils.cs (3)
41internal static Type GetCollectionEntityType(Type collectionType) 61internal static void VerifyObserverNotPresent<T>(object oec, string sourceProperty, Type sourceType)
System\Data\Services\Client\ClientConvert.cs (20)
37private static readonly Type[] knownTypes = CreateKnownPrimitives(); 40private static readonly Dictionary<string, Type> namedTypesMap = CreateKnownNamesMap(); 134internal static object ChangeType(string propertyValue, Type propertyType) 176return Type.GetType(propertyValue, true); 261internal static bool ToNamedType(string typeName, out Type type) 270internal static string ToTypeName(Type type) 341return ((Type)propertyValue).AssemblyQualifiedName; 371internal static bool IsKnownType(Type type) 381internal static bool IsKnownNullableType(Type type) 391internal static bool IsSupportedPrimitiveTypeForUri(Type type) 400internal static string GetEdmType(Type propertyType) 456private static Type[] CreateKnownPrimitives() 459Type[] types = new Type[1 + (int)StorageType.Binary]; 480types[(int)StorageType.Type] = typeof(Type); 495private static Dictionary<string, Type> CreateKnownNamesMap() 497Dictionary<string, Type> named = new Dictionary<string, Type>(EqualityComparer<String>.Default); 519private static int IndexOfStorage(Type type) 535private static int LoadSystemDataLinqBinary(Type type)
System\Data\Services\Client\ClientType.cs (46)
37internal readonly Type ElementType; 48private static readonly Dictionary<Type, ClientType> types = new Dictionary<Type, ClientType>(EqualityComparer<Type>.Default); 51private static readonly Dictionary<TypeName, Type> namedTypes = new Dictionary<TypeName, Type>(new TypeNameEqualityComparer()); 79private ClientType(Type type, string typeName, bool skipSettableCheck) 111Type keyPropertyDeclaredType = null; 138Type ptype = pinfo.PropertyType; // class / interface / value 367internal static bool CanAssignNull(Type type) 378internal static bool CheckElementTypeIsEntity(Type t) 390internal static ClientType Create(Type type) 401internal static ClientType Create(Type type, bool expectModelType) 445internal static Type ResolveFromName(string wireName, Type userType) 457Type foundType; 496Type found = assembly.GetType(wireName, false); 501Type[] types = null; 512foreach (Type t in types) 538internal static Type GetImplementationType(Type propertyType, Type genericTypeDefinition) 546Type implementationType = null; 547foreach (Type interfaceType in propertyType.GetInterfaces()) 572internal static MethodInfo GetAddToCollectionMethod(Type collectionType, out Type type) 583internal static MethodInfo GetRemoveFromCollectionMethod(Type collectionType, out Type type) 596internal static MethodInfo GetCollectionMethod(Type propertyType, Type genericTypeDefinition, string methodName, out Type type) 604Type implementationType = GetImplementationType(propertyType, genericTypeDefinition); 607Type[] genericArguments = implementationType.GetGenericArguments(); 678private static bool IsConstructedGeneric(Type type, Type genericTypeDefinition) 695private static void ResolveSubclass(string wireClassName, Type userType, Type type, ref Type existing) 713private void BuildEpmInfo(Type type) 732private void BuildEpmInfo(EntityPropertyMappingAttribute epmAttr, Type definingType) 803internal Type Type; 819internal readonly Type NullablePropertyType; 822internal readonly Type PropertyType; 825internal readonly Type CollectionType; 877internal ClientProperty(PropertyInfo property, Type propertyType, bool keyProperty) 910internal Type DeclaringType
System\Data\Services\Client\Common.cs (3)
31private static readonly Type[] unsupportedTypes = new Type[] 51internal static bool IsUnsupportedType(Type type)
System\Data\Services\Client\DataServiceContext.cs (15)
66private Func<Type, string> resolveName; 69private Func<string, Type> resolveType; 320public Func<Type, string> ResolveName 337public Func<string, Type> ResolveType 2150internal Type ResolveTypeFromName(string wireName, Type userType, bool checkAssignable) 2159Type payloadType; 2164Func<string, Type> resolve = this.ResolveType; 2196internal string ResolveNameFromType(Type type) 2199Func<Type, string> resolve = this.ResolveName; 2215Type entityType = descriptor.Entity.GetType(); 3741Type elementType = property.CollectionType ?? property.NullablePropertyType; 3842Type nestedType; 3884Type elementType = property.CollectionType ?? property.NullablePropertyType; 3971Type elementType = property.CollectionType ?? property.NullablePropertyType;
System\Data\Services\Client\DataServiceQueryContinuation.cs (2)
61internal abstract Type ElementType 135internal override Type ElementType
System\Data\Services\Client\DataServiceQueryOfT.cs (1)
65public override Type ElementType
System\Data\Services\Client\DataServiceRequest.cs (3)
35public abstract Type ElementType 105internal static DataServiceRequest GetInstance(Type elementType, Uri requestUri) 107Type genericType = typeof(DataServiceRequest<>).MakeGenericType(elementType);
System\Data\Services\Client\DataServiceRequestOfT.cs (2)
42Type elementType = typeof(TElement); 61public override Type ElementType
System\Data\Services\Client\Error.cs (1)
65internal static void ThrowObjectDisposed(Type type)
System\Data\Services\Client\MaterializeFromAtom.cs (12)
49private readonly Type elementType; 125Type implementationType; 126Type materializerType = GetTypeForMaterializer(this.expectingSingleValue, this.elementType, out implementationType); 154private MaterializeAtom(DataServiceContext context, XmlReader reader, Type type, MergeOption mergeOption) 240private static Type GetTypeForMaterializer(bool expectingSingleValue, Type elementType, out Type implementationType) 247Type expectedType = implementationType.GetGenericArguments()[0]; // already know its IList<> 291Type implementationType; 300Type expectedType = implementationType.GetGenericArguments()[0]; // already know its IList<> 545internal static ClientType GetEntryClientType(string typeName, DataServiceContext context, Type expectedType, bool checkAssignable) 548Type resolvedType = context.ResolveTypeFromName(typeName, expectedType, checkAssignable);
System\Data\Services\Client\MemberAssignmentAnalysis.cs (3)
112internal Exception CheckCompatibleAssignments(Type targetType, ref MemberAssignmentAnalysis previous) 300private static Exception CheckCompatibleAssignments(Type targetType, Expression[] previous, Expression[] candidate) 344private static Exception CheckCompatibleAssignmentsFail(Type targetType, Expression[] previous, Expression[] candidate)
System\Data\Services\Client\ProjectionPathBuilder.cs (3)
49private readonly Stack<Type> parameterProjectionTypes; 63this.parameterProjectionTypes = new Stack<Type>(); 143Type projectionType = lambda.Body.Type;
System\Data\Services\Client\ProjectionPathSegment.cs (2)
36internal ProjectionPathSegment(ProjectionPath startPath, string member, Type projectionType) 73internal Type ProjectionType
System\Data\Services\Client\ProjectionPlan.cs (4)
41internal Type LastSegmentType 48internal Func<object, object, Type, object> Plan 55internal Type ProjectedType 75internal object Run(AtomMaterializer materializer, AtomEntry entry, Type expectedType)
System\Data\Services\Client\ProjectionPlanCompiler.cs (22)
100result.Plan = (Func<object, object, Type, object>)((LambdaExpression)plan).Compile(); 351ParameterExpression expectedTypeParameter = Expression.Parameter(typeof(Type), "type" + this.identifierId); 371result = Expression.Lambda<Func<object, object, Type, object>>( 413private static Expression CallMaterializerWithType(string methodName, Type[] typeArguments, params Expression[] arguments) 461private Expression CallValueForPathWithType(Expression entry, Expression entryType, ProjectionPath path, Type type) 540List<Func<object, object, Type, object>> propertyFunctions = new List<Func<object, object, Type, object>>(); 541Type projectedType = init.NewExpression.Type; 542Expression projectedTypeExpression = Expression.Constant(projectedType, typeof(Type)); 687propertyFunctions.Add((Func<object, object, Type, object>) propertyLambda.Compile()); 800Expression baseTypeExpression = Expression.Constant(baseSourceExpression.Type, typeof(Type)); 848Type enumerable = typeof(IEnumerable<>).MakeGenericType(nex.Type.GetGenericArguments()[0]); 976Type returnElementType = call.Method.ReturnType.GetGenericArguments()[0]; 982Expression.Constant(returnElementType, typeof(Type)), 988new Type[] { returnElementType }, 1065Type returnElementType = call.Method.ReturnType.GetGenericArguments()[0]; 1071Expression.Constant(returnElementType, typeof(Type)), 1077new Type[] { returnElementType }, 1108private Expression TypedEnumerableToList(Expression source, Type targetType) 1115Type enumeratedType = source.Type.GetGenericArguments()[0]; 1116Type listElementType = targetType.GetGenericArguments()[0]; 1121new Type[] { enumeratedType, listElementType },
System\Data\Services\Client\QueryResponse.cs (2)
135internal static QueryOperationResponse GetInstance(Type elementType, Dictionary<string, string> headers, DataServiceRequest query, MaterializeAtom results) 137Type genericType = typeof(QueryOperationResponse<>).MakeGenericType(elementType);
System\Data\Services\Client\QueryResult.cs (1)
305internal QueryOperationResponse GetResponseWithType(MaterializeAtom results, Type elementType)
System\Data\Services\Client\Util.cs (5)
433internal static bool TypeAllowsNull(Type type) 445internal static Type GetTypeAllowingNull(Type type) 483internal static object ActivatorCreateInstance(Type type, params object[] arguments) 624private static bool IsNullableType(Type type)
System\Data\Services\Client\WebUtil.cs (4)
161internal static bool IsDataServiceCollectionType(Type t) 179internal static Type GetDataServiceCollectionOfT(params Type[] typeArguments) 199private static Type GetDataServiceCollectionOfTType()
System\Data\Services\Client\Xml\XmlWrappingReader.cs (1)
281public override Type ValueType
System.Data.Services.Design (44)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
116internal static object GetDefaultValue(Type type) 745List<Type> additionalInterfaces = eventArgs.AdditionalInterfaces;
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (4)
201TypeReference.ForType(typeof(Func<,>), TypeReference.ForType(typeof(Type)), TypeReference.ForType(typeof(String))), 215TypeReference.ForType(typeof(Func<,>), TypeReference.ForType(typeof(String)), TypeReference.ForType(typeof(Type))), 260resolveTypeFromName.ReturnType = TypeReference.ForType(typeof(Type)); 321resolveNameFromType.Parameters.Add(new CodeParameterDeclarationExpression(TypeReference.ForType(typeof(Type)), "clientType"));
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (8)
24private static Pair<Type, CreateEmitter>[] EmitterCreators = new Pair<Type, CreateEmitter>[] 26(new Pair<Type,CreateEmitter>(typeof(EntityType), delegate (ClientApiGenerator generator1, GlobalItem element) { return new EntityTypeEmitter(generator1,(EntityType)element); })), 27(new Pair<Type,CreateEmitter>(typeof(ComplexType), delegate (ClientApiGenerator generator2, GlobalItem element) { return new ComplexTypeEmitter(generator2,(ComplexType)element); })), 28(new Pair<Type,CreateEmitter>(typeof(EntityContainer), delegate (ClientApiGenerator generator3, GlobalItem element) { return new EntityContainerEmitter(generator3,(EntityContainer)element); })), 29(new Pair<Type,CreateEmitter>(typeof(AssociationType), delegate (ClientApiGenerator generator4, GlobalItem element) { return new AssociationTypeEmitter(generator4,(AssociationType)element); })), 211Type typeOfElement = element.GetType(); 212foreach (Pair<Type, CreateEmitter> pair in EmitterCreators)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
465Type type = typeof(T); 730Type type = primitiveType.ClrEquivalentType;
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (2)
91List<Type> additionalInterfaces) 97foreach (Type interfaceType in additionalInterfaces)
System\Data\EntityModel\Emitters\TypeReference.cs (10)
22internal static readonly Type ObjectContextBaseClassType = typeof(System.Data.Services.Client.DataServiceContext); 31private readonly Memoizer<Type, CodeTypeReference> _forTypeMemoizer; 32private readonly Memoizer<Type, CodeTypeReference> _nullableForTypeMemoizer; 40_forTypeMemoizer = new Memoizer<Type, CodeTypeReference>(ComputeForType, null); 42_nullableForTypeMemoizer = new Memoizer<Type, CodeTypeReference>(ComputeNullableForType, null); 53public CodeTypeReference ForType(Type type) 58private CodeTypeReference ComputeForType(Type type) 74public CodeTypeReference ForType(Type generic, params CodeTypeReference[] argument) 183public CodeTypeReference NullableForType(Type innerType) 188private CodeTypeReference ComputeNullableForType(Type innerType)
System\Data\EntityModel\Emitters\Utils.cs (13)
59private static List<KeyValuePair<string, Type>> _typeReservedNames = InitializeTypeReservedNames(); 64static List<KeyValuePair<string, Type>> InitializeTypeReservedNames() 66Dictionary<string, Type> typeReservedNames = new Dictionary<string, Type>(StringComparer.Ordinal); 80List<KeyValuePair<string, Type>> pairs = new List<KeyValuePair<string, Type>>(); 81foreach (KeyValuePair<string, Type> pair in typeReservedNames) 110Debug.Assert(member is Type, "Did you add a new type of member?"); 111return ShouldReserveName((Type)member); 171private static bool ShouldReserveName(Type member) 318Type reservingType = null; 333public static bool TryGetReservedName(string name, StringComparison comparison, out Type applyToSpecificType) 336foreach (KeyValuePair<string, Type> pair in _typeReservedNames)
System\Data\EntityModel\TypeGeneratedEventArgs.cs (3)
25private List<Type> _additionalInterfaces = new List<Type>(); 82public List<Type> AdditionalInterfaces
System.Data.SqlXml (162)
System\Xml\Xsl\IlGen\GenerateHelper.cs (28)
45public Type SeqType; 53public Type IListType; 63public XmlILStorageMethods(Type storageType) { 68Type aggType = Type.GetType("System.Xml.Xsl.Runtime." + storageType.Name + "Aggregator"); 140private static ConstructorInfo GetConstructor(Type className) { 141ConstructorInfo constrInfo = className.GetConstructor(new Type[] {}); 146private static ConstructorInfo GetConstructor(Type className, params Type[] args) { 229public static readonly MethodInfo ChangeTypeXsltArg = GetMethod(typeof(XmlQueryRuntime), "ChangeTypeXsltArgument", typeof(int), typeof(object), typeof(Type)); 276public static readonly MethodInfo ValueAsAny = GetMethod(typeof(XPathItem), "ValueAs", typeof(Type), typeof(IXmlNamespaceResolver)); 393public static readonly MethodInfo GetTypeFromHandle = GetMethod(typeof(Type), "GetTypeFromHandle"); 395public static readonly Dictionary<Type, XmlILStorageMethods> StorageMethods; 398StorageMethods = new Dictionary<Type, XmlILStorageMethods>(); 414public static MethodInfo GetMethod(Type className, string methName) { 420public static MethodInfo GetMethod(Type className, string methName, params Type[] args) { 623public void LoadType(Type clrTyp) { 637public LocalBuilder DeclareLocal(string name, Type type) { 879public void TreatAs(Type clrTypeSrc, Type clrTypeDst) { 1033public void CallGetEarlyBoundObject(int idxObj, Type clrType) { 1068public void CallGetGlobalValue(int idxValue, Type clrType) { 1075public void CallSetGlobalValue(Type clrType) { 1282public void CallCacheCount(Type itemStorageType) { 1287public void CallCacheItem(Type itemStorageType) { 1296public void CallValueAs(Type clrType) { 1598public void Emit(OpCode opcode, Type typVal) {
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (9)
48private Type itemStorageType; 66public static StorageDescriptor Stack(Type itemStorageType, bool isCached) { 77public static StorageDescriptor Parameter(int paramIndex, Type itemStorageType, bool isCached) { 89public static StorageDescriptor Local(LocalBuilder loc, Type itemStorageType, bool isCached) { 105public static StorageDescriptor Current(LocalBuilder locIter, Type itemStorageType) { 119public static StorageDescriptor Global(MethodInfo methGlobal, Type itemStorageType, bool isCached) { 154public StorageDescriptor ToStorageType(Type itemStorageType) { 206public Type ItemStorageType { 595public void EnsureItemStorageType(XmlQueryType xmlType, Type storageTypeDest) {
System\Xml\Xsl\IlGen\StaticDataManager.cs (1)
165public int DeclareEarlyBound(string namespaceUri, Type ebType) {
System\Xml\Xsl\IlGen\XmlILModule.cs (7)
161public MethodInfo DefineMethod(string name, Type returnType, Type[] paramTypes, string[] paramNames, XmlILMethodAttributes xmlAttrs) { 165Type[] paramTypesNew; 177paramTypesNew = new Type[paramTypes.Length + 1]; 261public FieldInfo DefineField(string fieldName, Type type) { 300Type typBaked; 327public Delegate CreateDelegate(string name, Type typDelegate) {
System\Xml\Xsl\IlGen\XmlIlTypeHelper.cs (4)
31public static Type GetStorageType(XmlQueryType qyTyp) { 32Type storageType; 52private static readonly Type[] TypeCodeToStorage = { 110private static readonly Type[] TypeCodeToCachedStorage = {
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (22)
845Type itemStorageType = GetItemStorageType(ndCond); 911private void ConditionalBranch(QilNode ndBranch, Type itemStorageType, LocalBuilder locResult) { 1082Type itemStorageType = GetItemStorageType(ndSeq); 1183private QilNode CreateSetIterator(QilBinary ndSet, string iterName, Type iterType, MethodInfo methCreate, MethodInfo methNext) { 1286Type typAgg = methAgg.DeclaringType; 2094Type itemStorageType = GetItemStorageType(ndSort); 3356Type clrTypeRetSrc, clrTypeRetDst; 3382Type clrTypeActualArg, clrTypeFormalArg; 3398Type itemType = GetItemStorageType(ndActualArg); 3636private void CreateSimpleIterator(QilNode ndCtxt, string iterName, Type iterType, MethodInfo methCreate, MethodInfo methNext) { 3658private void CreateFilteredIterator(QilNode ndCtxt, string iterName, Type iterType, MethodInfo methCreate, MethodInfo methNext, 3693private void CreateContainerIterator(QilUnary ndDod, string iterName, Type iterType, MethodInfo methCreate, MethodInfo methNext, 3729private void GenerateSimpleIterator(Type itemStorageType, LocalBuilder locIter, MethodInfo methNext) { 3760MethodInfo methNext, Type itemStorageType) { 4372private void NestedVisit(QilNode nd, Type itemStorageType, bool isCached) { 4435private void NestedVisitEnsureStack(QilNode nd, Type itemStorageType, bool isCached) { 4466private void NestedVisitEnsureCache(QilNode nd, Type itemStorageType) { 4471Type cacheType; 4583private Type GetStorageType(QilNode nd) { 4590private Type GetStorageType(XmlQueryType typ) { 4597private Type GetItemStorageType(QilNode nd) { 4604private Type GetItemStorageType(XmlQueryType typ) {
System\Xml\Xsl\QIL\QilTypeChecker.cs (4)
900private void CheckLiteralValue(QilNode node, Type clrTypeValue) { 903Type clrType = ((QilLiteral) node).Value.GetType(); 908private void CheckClass(QilNode node, Type clrTypeClass) { 913private void CheckClassAndNodeType(QilNode node, Type clrTypeClass, QilNodeType nodeType) {
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
349Type t = asm.GetType(ann.ClrNamespace);
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (3)
21public EarlyBoundInfo(string namespaceUri, Type ebType) { 26this.constrInfo = ebType.GetConstructor(Type.EmptyTypes); 38public Type EarlyBoundType { get { return this.constrInfo.DeclaringType; } }
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (12)
30public XmlExtensionFunction Bind(string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags) { 58private Type objectType; // Type of the object which will be searched for matching methods 63private Type[] argClrTypes; // Type array for extension function arguments 64private Type retClrType; // Type for extension function return value 86public XmlExtensionFunction(string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags) { 93public void Init(string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags) { 120public Type GetClrArgumentType(int index) { 128public Type ClrReturnType { 213this.argClrTypes = new Type[paramInfo.Length]; 292private Type GetClrType(Type clrType) { 305private XmlQueryType InferXmlType(Type clrType) {
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
235Type clrTypeFormalArg;
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (3)
457public object ChangeTypeXsltArgument(int indexType, object value, Type destinationType) { 465internal object ChangeTypeXsltArgument(XmlQueryType xmlType, object value, Type destinationType) { 597Type sourceType = value.GetType();
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (1)
29private static readonly Type XPathItemType = typeof(XPathItem);
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (3)
74public XmlQueryStaticData(byte[] data, Type[] ebTypes) { 172public void GetObjectData(out byte[] data, out Type[] ebTypes) { 271ebTypes = new Type[this.earlyBound.Length];
System\Xml\Xsl\Runtime\XsltConvert.cs (32)
31internal static readonly Type BooleanType = typeof(bool); 32internal static readonly Type ByteArrayType = typeof(byte[]); 33internal static readonly Type ByteType = typeof(byte); 34internal static readonly Type DateTimeType = typeof(DateTime); 35internal static readonly Type DecimalType = typeof(decimal); 36internal static readonly Type DoubleType = typeof(double); 37internal static readonly Type ICollectionType = typeof(ICollection); 38internal static readonly Type IEnumerableType = typeof(IEnumerable); 39internal static readonly Type IListType = typeof(IList); 40internal static readonly Type Int16Type = typeof(short); 41internal static readonly Type Int32Type = typeof(int); 42internal static readonly Type Int64Type = typeof(long); 43internal static readonly Type IXPathNavigableType = typeof(IXPathNavigable); 44internal static readonly Type ObjectType = typeof(object); 45internal static readonly Type SByteType = typeof(sbyte); 46internal static readonly Type SingleType = typeof(float); 47internal static readonly Type StringType = typeof(string); 48internal static readonly Type TimeSpanType = typeof(TimeSpan); 49internal static readonly Type UInt16Type = typeof(ushort); 50internal static readonly Type UInt32Type = typeof(uint); 51internal static readonly Type UInt64Type = typeof(ulong); 52internal static readonly Type UriType = typeof(Uri); 53internal static readonly Type VoidType = typeof(void); 54internal static readonly Type XmlAtomicValueType = typeof(XmlAtomicValue); 55internal static readonly Type XmlQualifiedNameType = typeof(XmlQualifiedName); 56internal static readonly Type XPathItemType = typeof(XPathItem); 57internal static readonly Type XPathNavigatorArrayType = typeof(XPathNavigator[]); 58internal static readonly Type XPathNavigatorType = typeof(XPathNavigator); 59internal static readonly Type XPathNodeIteratorType = typeof(XPathNodeIterator); 72Type itemType = item.ValueType; 112Type itemType = item.ValueType; 352internal static XmlQueryType InferXsltType(Type clrType) {
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
276Type itemType = item.ValueType;
System\Xml\Xsl\Runtime\XsltLibrary.cs (4)
75public static MethodInfo GetMethod(Type className, string methName) { 81public static MethodInfo GetMethod(Type className, string methName, params Type[] args) { 261Type itemType = item.ValueType;
System\Xml\Xsl\XmlIlGenerator.cs (12)
129MethodInfo methExec = this.module.DefineMethod("Execute", typeof(void), new Type[] { }, new string[] { }, XmlILMethodAttributes.NonUser); 135MethodInfo methRoot = this.module.DefineMethod("Root", typeof(void), new Type[] { }, new string[] { }, methAttrs); 188Type[] paramTypes; 190Type typReturn; 194paramTypes = new Type[ndFunc.Arguments.Count]; 239Type typReturn; 246methInfo = this.module.DefineMethod(ndRef.DebugName.ToString(), typReturn, new Type[] {}, new string[] {}, methAttrs); 283new Type[] {typeof(XPathNavigator), typeof(XPathNavigator)}, 335Type[] ebTypes; 342fldTypes = this.module.DefineField(XmlQueryStaticData.TypesFieldName, typeof(Type[])); 357LocalBuilder locTypes = this.helper.DeclareLocal("$$$types", typeof(Type[])); 359this.helper.Emit(OpCodes.Newarr, typeof(Type));
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
184Dictionary<string, Type> scriptClasses = compiler.Scripts.ScriptClasses; 186foreach (KeyValuePair<string, Type> pair in scriptClasses) {
System\Xml\Xsl\Xslt\Scripts.cs (6)
89private Dictionary<string, Type> nsToType = new Dictionary<string, Type>(); 96public Dictionary<string, Type> ScriptClasses { 101Type type; 170Type clrType = assembly.GetType(ScriptClassesNamespace + Type.Delimiter + script.typeDecl.Name);
System\Xml\Xsl\XsltOld\Compiler.cs (1)
731lang == ScriptingLanguage.JScript ? (CodeDomProvider) Activator.CreateInstance(Type.GetType("Microsoft.JScript.JScriptCodeProvider, " + AssemblyRef.MicrosoftJScript), BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance, null, null, null) :
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
327if (Type.GetTypeCode(value.GetType()) == TypeCode.Object) {
System\Xml\Xsl\XsltOld\Processor.cs (1)
339scriptExtensions.Add(namespaceUri, Activator.CreateInstance((Type)entry.Value,
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (3)
454public static XPathResultType GetXPathType(Type type) { 455switch(Type.GetTypeCode(type)) { 805typeCodes[i] = Type.GetTypeCode(parameters[i].ParameterType);
System.Drawing (77)
commonui\System\Drawing\Advanced\ImageFormatConverter.cs (3)
41public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 53public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 93public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
commonui\System\Drawing\Advanced\SizeFConverter.cs (4)
36public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 48public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 109public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 133ConstructorInfo ctor = typeof(SizeF).GetConstructor(new Type[] {typeof(float), typeof(float)});
commonui\System\Drawing\Bitmap.cs (1)
132public Bitmap(Type type, string resource) {
commonui\System\Drawing\BitmapSelector.cs (6)
79private static Stream GetResourceStreamHelper(Assembly assembly, Type type, string name) { 93private static bool DoesAssemblyHaveCustomAttribute(Assembly assembly, Type attrType) { 136public static Stream GetResourceStream(Assembly assembly, Type type, string originalName) { 186public static Stream GetResourceStream(Type type, string originalName) { 200public static Icon CreateIcon(Type type, string originalName) { 214public static Bitmap CreateBitmap(Type type, string originalName) {
commonui\System\Drawing\ColorConverter.cs (7)
90public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 102public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 238public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 305member = typeof(Color).GetMethod("FromArgb", new Type[] {typeof(int), typeof(int), typeof(int), typeof(int)}); 309member = typeof(Color).GetMethod("FromName", new Type[] {typeof(string)}); 313member = typeof(Color).GetMethod("FromArgb", new Type[] {typeof(int), typeof(int), typeof(int)}); 335private static void FillConstants(Hashtable hash, Type enumType) {
commonui\System\Drawing\Design\ToolboxItem.cs (11)
75public ToolboxItem(Type toolType) : this() { 369Type createType = GetType(host, AssemblyName, TypeName, true); 550public Type GetType(IDesignerHost host) { 564protected virtual Type GetType(IDesignerHost host, AssemblyName assemblyName, string typeName, bool reference) { 566Type type = null; 588type = Type.GetType(typeName); 640type = Type.GetType(typeName, false); 652private AssemblyName GetNonRetargetedAssemblyName(Type type, AssemblyName policiedAssemblyName) { 699public virtual void Initialize(Type type) { 710Type parentType = type; 854protected void ValidatePropertyType(string propertyName, object value, Type expectedType, bool allowNull) {
commonui\System\Drawing\FontConverter.cs (6)
53public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 65public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 203public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 270Type[] types = new Type[argCount]; 561public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
commonui\System\Drawing\Icon.cs (1)
157public Icon(Type type, string resource) : this() {
commonui\System\Drawing\IconConverter.cs (3)
37public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 54public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 94public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
commonui\System\Drawing\ImageConverter.cs (4)
32Type iconType = typeof(Icon); 39public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 60public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 117public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
commonui\System\Drawing\PointConverter.cs (4)
36public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 48public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 109public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 135ConstructorInfo ctor = typeof(Point).GetConstructor(new Type[] {typeof(int), typeof(int)});
commonui\System\Drawing\Printing\MarginsConverter.cs (4)
35public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 47public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 107public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 135ConstructorInfo ctor = typeof(Margins).GetConstructor(new Type[] {
commonui\System\Drawing\Printing\PrintDocument.cs (2)
143Type type = Type.GetType("System.Windows.Forms.PrintControllerWithStatusDialog, " + AssemblyRef.SystemWindowsForms);
commonui\System\Drawing\RectangleConverter.cs (4)
36public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 48public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 110public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 137ConstructorInfo ctor = typeof(Rectangle).GetConstructor(new Type[] {
commonui\System\Drawing\SizeConverter.cs (4)
36public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 48public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 109public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 135ConstructorInfo ctor = typeof(Size).GetConstructor(new Type[] {typeof(int), typeof(int)});
commonui\System\Drawing\ToolboxBitmapAttribute.cs (10)
60private Type imageType; 101public ToolboxBitmapAttribute(Type t) 112public ToolboxBitmapAttribute(Type t, string name) 180public Image GetImage(Type type) { 190public Image GetImage(Type type, bool large) { 200public Image GetImage(Type type, string imgName, bool large) { 354static private Image GetBitmapFromResource(Type t, string bitmapname, bool large, bool scaled) { 382static private Image GetIconFromResource(Type t, string bitmapname, bool large, bool scaled) { 396public static Image GetImageFromResource(Type t, string imageName, bool large) { 407internal static Image GetImageFromResource(Type t, string imageName, bool large, bool scaled) {
commonui\System\Drawing\UnsafeNativeMethods.cs (1)
134public static object PtrToStructure(IntPtr lparam, Type cls) {
parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (2)
86Type appContextType = typeof(object).Assembly.GetType("System.AppContext"); 94new Type[] { typeof(string), typeof(bool).MakeByRefType() },
System.IdentityModel (103)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (2)
86Type appContextType = typeof(object).Assembly.GetType("System.AppContext"); 94new Type[] { typeof(string), typeof(bool).MakeByRefType() },
System\IdentityModel\Configuration\CustomTypeElement.cs (3)
17internal CustomTypeElement( Type typeName ) 40public Type Type 42get { return (Type)this[ConfigurationStrings.Type]; }
System\IdentityModel\Configuration\IdentityConfiguration.cs (3)
31public static readonly Type DefaultIssuerNameRegistryType = typeof(ConfigurationBasedIssuerNameRegistry); 281Type type = string.IsNullOrEmpty(element.Type) ? DefaultIssuerNameRegistryType : Type.GetType(element.Type);
System\IdentityModel\Configuration\Properties.cs (1)
86properties.Add(new ConfigurationProperty("type", typeof(System.Type), null, new System.Configuration.TypeNameConverter(), null, System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey));
System\IdentityModel\Configuration\SecurityTokenServiceConfiguration.cs (3)
34Type _securityTokenServiceType; 148public Type SecurityTokenService 179Type stsType = this.SecurityTokenService;
System\IdentityModel\Configuration\StandardRuntimeEnumValidator.cs (3)
13Type enumType; 15public StandardRuntimeEnumValidator(Type enumType) 20public override bool CanValidate(Type type)
System\IdentityModel\Configuration\StandardRuntimeEnumValidatorAttribute.cs (3)
13Type enumType; 15public StandardRuntimeEnumValidatorAttribute(Type enumType) 20public Type EnumType
System\IdentityModel\Configuration\TimeSpanOrInfiniteConverter.cs (1)
15public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cultureInfo, object value, Type type)
System\IdentityModel\Configuration\TypeResolveHelper.cs (1)
14public static T Resolve<T>(ConfigurationElementInterceptor customTypeElement, Type customType) where T : class
System\IdentityModel\CryptoHelper.cs (1)
1282Type algorithmType = algorithmObject.GetType();
System\IdentityModel\DelegatingXmlDictionaryReader.cs (1)
213public override Type ValueType
System\IdentityModel\IdentityModelWrappedXmlDictionaryReader.cs (2)
362public override Type ValueType 410public override object ReadContentAs( Type valueType, IXmlNamespaceResolver namespaceResolver )
System\IdentityModel\Selectors\SecurityTokenSerializer.cs (7)
178public abstract Type GetTokenType(SecurityKeyIdentifierClause clause); 212Type[] tokenTypes = null; 216public Type TokenType { get { return GetTokenTypes()[0]; } } 220public bool SupportsCore(Type tokenType) 222Type[] tokenTypes = GetTokenTypes(); 231protected abstract Type[] GetTokenTypesCore(); 233public Type[] GetTokenTypes()
System\IdentityModel\SspiWrapper.cs (3)
505static unsafe int QueryContextAttributes(SafeDeleteContext phContext, ContextAttribute attribute, byte[] buffer, Type handleType, out SafeHandle refHandle) 534Type handleType = null; 662Type handleType = typeof(SafeFreeContextBuffer);
System\IdentityModel\Tokens\EncryptedSecurityTokenHandler.cs (1)
258public override Type TokenType
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (1)
46public override Type TokenType
System\IdentityModel\Tokens\KeyInfoSerializer.cs (2)
336internal Type[] GetTokenTypes(string tokenTypeUri) 353protected internal virtual string GetTokenTypeUri(Type tokenType)
System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (12)
12readonly Type[] ownerTypes; 15: this(localId, (Type[])null) 19public LocalIdKeyIdentifierClause(string localId, Type ownerType) 20: this(localId, ownerType == null ? (Type[])null : new Type[] { ownerType }) 24public LocalIdKeyIdentifierClause(string localId, byte[] derivationNonce, int derivationLength, Type ownerType) 25: this(null, derivationNonce, derivationLength, ownerType == null ? (Type[])null : new Type[] { ownerType }) 29internal LocalIdKeyIdentifierClause(string localId, Type[] ownerTypes) 34internal LocalIdKeyIdentifierClause(string localId, byte[] derivationNonce, int derivationLength, Type[] ownerTypes) 54public Type OwnerType 68public bool Matches(string localId, Type ownerType)
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
134public override Type TokenType
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
127public override Type TokenType
System\IdentityModel\Tokens\SamlAssertion.cs (1)
695static internal void AddSamlClaimTypes(ICollection<Type> knownClaimTypes)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
3618public override Type TokenType
System\IdentityModel\Tokens\SamlSecurityTokenRequirement.cs (2)
204Type customValidatorType = Type.GetType(customValidator, true);
System\IdentityModel\Tokens\SecurityTokenHandler.cs (1)
97public abstract Type TokenType
System\IdentityModel\Tokens\SecurityTokenHandlerCollection.cs (7)
23private Dictionary<Type, SecurityTokenHandler> handlersByType = new Dictionary<Type, SecurityTokenHandler>(); 101public IEnumerable<Type> TokenTypes 160public SecurityTokenHandler this[Type tokenType] 229Type tokenType = handler.TokenType; 668Type type = handler.TokenType; 711Type type = handler.TokenType;
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (1)
546public override Type TokenType
System\IdentityModel\Tokens\UserNameSecurityTokenHandler.cs (1)
70public override Type TokenType
System\IdentityModel\Tokens\WSSecurityJan2004.cs (25)
122protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(GenericXmlSecurityToken) }; } 134protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(KerberosReceiverSecurityToken), typeof(KerberosRequestorSecurityToken) }; } 141protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(SamlSecurityToken) }; } 150protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(UserNameSecurityToken) }; } 160protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(WrappedKeySecurityToken) }; } 174protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(X509SecurityToken), typeof(X509WindowsSecurityToken) }; } 310protected abstract Type ClauseType { get; } 312public abstract Type TokenType { get; } 333public override Type GetTokenType(SecurityKeyIdentifierClause clause) 407protected override Type ClauseType { get { return typeof(KerberosTicketHashKeyIdentifierClause); } } 408public override Type TokenType { get { return typeof(KerberosRequestorSecurityToken); } } 456protected override Type ClauseType { get { return typeof(X509SubjectKeyIdentifierClause); } } 457public override Type TokenType { get { return typeof(X509SecurityToken); } } 486public override Type GetTokenType(SecurityKeyIdentifierClause clause) 494Type tokenType = GetTokenType(clause); 519Type[] tokenTypes = null; 580public override Type GetTokenType(SecurityKeyIdentifierClause clause) 723public override Type GetTokenType(SecurityKeyIdentifierClause clause) 764public override Type GetTokenType(SecurityKeyIdentifierClause clause)
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (5)
149protected override Type ClauseType { get { return typeof(EncryptedKeyHashIdentifierClause); } } 150public override Type TokenType { get { return typeof(WrappedKeySecurityToken); } } 181protected override Type ClauseType { get { return typeof(X509ThumbprintKeyIdentifierClause); } } 182public override Type TokenType { get { return typeof(X509SecurityToken); } } 211public override Type GetTokenType(SecurityKeyIdentifierClause clause)
System\IdentityModel\Tokens\WSTrust.cs (2)
58protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(BinarySecretSecurityToken) }; }
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (3)
218Type customValidatorType = Type.GetType(customValidator, true); 389public override Type TokenType
System\IdentityModel\WrappedXmlDictionaryReader.cs (2)
195public override Type ValueType 450public override object ReadContentAs(Type valueType, IXmlNamespaceResolver namespaceResolver)
System.IdentityModel.Selectors (2)
infocard\client\System\IdentityModel\Selectors\CryptoHandle.cs (1)
42protected CryptoHandle(InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr nativeParameters, Type paramType)
infocard\client\System\IdentityModel\Selectors\ProofTokenCryptoHandle.cs (1)
17protected ProofTokenCryptoHandle(InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr nativeParameters, Type paramType)
System.IO.Compression.FileSystem (2)
parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (2)
86Type appContextType = typeof(object).Assembly.GetType("System.AppContext"); 94new Type[] { typeof(string), typeof(bool).MakeByRefType() },
System.Management (67)
Instrumentation\Attributes.cs (11)
147internal static Type[] GetInstrumentedTypes(Assembly assembly) 156foreach (Type type in assembly.GetTypes()) 163return (Type[])types.ToArray(typeof(Type)); 170static void GetInstrumentedParentTypes(ArrayList types, Type childType) 174Type parentType = InstrumentationClassAttribute.GetBaseInstrumentationType(childType) ; 189static bool IsInstrumentationClass(Type type) 361internal static InstrumentationClassAttribute GetAttribute(Type type) 382internal static Type GetBaseInstrumentationType(Type type) 437internal static string GetBaseClassName(Type type)
Instrumentation\CodeSpit.cs (1)
106public void Add(Type type)
Instrumentation\EventSource.cs (5)
566Type converterType = (Type)instrumentedAssembly.mapTypeToConverter[theObject.GetType()]; 738Type managedType = null; 739foreach(Type type in instrumentedAssembly.mapTypeToConverter.Keys) 795Object converter = Activator.CreateInstance((Type)instrumentedAssembly.mapTypeToConverter[managedType]);
Instrumentation\Instrumentation.cs (18)
123Type t = instanceData as Type; 165public static void SetBatchSize(Type instrumentationClass, int batchSize) 174internal static ProvisionFunction GetFireFunction(Type type) 179internal static ProvisionFunction GetPublishFunction(Type type) 184internal static ProvisionFunction GetRevokeFunction(Type type) 276public void FindReferences(Type type, CompilerParameters parameters) 289foreach(Type typeInterface in type.GetInterfaces()) 296public bool IsInstrumentedType(Type type) 329foreach(Type type in assembly.GetTypes()) 349Type dynType = compiledAssembly.GetType("WMINET_Converter"); 438Type converterType; 603public TypeInfo(EventSource source, SchemaNaming naming, Type converterType) 619public void SetBatchSize(Type t, int batchSize) 625Type lastType = null; 626TypeInfo GetTypeInfo(Type t) 637typeInfo = new TypeInfo(source, naming, (Type)mapTypeToConverter[t]); 645public void Fire(Type t, Object o)
Instrumentation\SchemaMapping.cs (5)
17 Type classType; 24 public Type ClassType { get { return classType; } } 42 public SchemaMapping(Type type, SchemaNaming naming, Hashtable mapTypeToConverterClassName) 246 Type t2; 282 codeCCTOR.Line(String.Format("mapTypeToConverter[typeof({0})] = typeof({1});", ((Type)entry.Key).FullName.Replace('+', '.'), (string)entry.Value)); // bug#92918 - watch for nested classes
Instrumentation\SchemaRegistration.cs (1)
329 Type[] types = InstrumentedAttribute.GetInstrumentedTypes(assembly);
InteropClasses\WMIInterop.cs (3)
1964public Type typeToCreate = null; 1968public MTARequest(Type typeToCreate) 1992public static object CreateInMTA(Type type)
managementnamedvaluecollection.cs (1)
142 Type valueType = val.GetType ();
managementpath.cs (4)
1057public override Boolean CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 1074public override Boolean CanConvertTo(ITypeDescriptorContext context, Type destinationType) 1095public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 1106ConstructorInfo ctor = typeof(ManagementPath).GetConstructor(new Type[] {typeof(System.String)});
managementquery.cs (5)
3173 public override Boolean CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 3190 public override Boolean CanConvertTo(ITypeDescriptorContext context, Type destinationType) 3211 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 3222 ConstructorInfo ctor = typeof(EventQuery).GetConstructor(new Type[] {typeof(System.String)}); 3232 ConstructorInfo ctor = typeof(ObjectQuery).GetConstructor(new Type[] {typeof(System.String)});
managementscope.cs (4)
1647public override Boolean CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 1664public override Boolean CanConvertTo(ITypeDescriptorContext context, Type destinationType) 1685public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 1696ConstructorInfo ctor = typeof(ManagementScope).GetConstructor(new Type[] {typeof(System.String)});
property.cs (2)
629 Type valueType = val.GetType(); 633 Type elementType = valueType.GetElementType();
qualifier.cs (1)
116 Type elementType = (length > 0 ? valArray.GetValue(0).GetType() : null);
WmiGenerator.cs (6)
918if(Type.GetType("System." + strClass) != null || 919Type.GetType("System.ComponentModel." + strClass) != null || 920Type.GetType("System.Management." + strClass) != null || 921Type.GetType("System.Collections." + strClass) != null || 922Type.GetType("System.Globalization." + strClass) != null ) 4934Type codeProvType = null;
System.Messaging (22)
System\Messaging\Design\MessageFormatterConverter.cs (6)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 40public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 68public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 82ConstructorInfo ctor = typeof(XmlMessageFormatter).GetConstructor(new Type[] { typeof(string[]) }); 90ConstructorInfo ctor = typeof(ActiveXMessageFormatter).GetConstructor(new Type[0]); 99ConstructorInfo ctor = typeof(BinaryMessageFormatter).GetConstructor(new Type[] {
System\Messaging\Design\MessageQueueConverter.cs (2)
34public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 82public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Messaging\Design\SizeConverter.cs (2)
27public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 69public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Messaging\Design\TimeoutConverter.cs (2)
32public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Messaging\MessageQueuePermission.cs (1)
396Type type = this.GetType();
System\Messaging\XmlMessageFormatter.cs (9)
24private Type[] targetTypes; 36this.TargetTypes = new Type[0]; 48this.TargetTypes = new Type[0]; 56public XmlMessageFormatter(Type[] targetTypes) 97public Type[] TargetTypes 156foreach (Type targetType in targetSerializerTable.Keys) 170Type targetType = Type.GetType(this.targetTypeNames[index], true); 229Type serializedType = obj.GetType();
System.Runtime.Caching (2)
System\Caching\SRef.cs (2)
14private static Type s_type = Type.GetType("System.SizedReference", true, false);
System.Runtime.Remoting (165)
channels\core\corechannel.cs (3)
127Type type = Type.GetType("System.Web.HttpContext, " + AssemblyRef.SystemWeb, false); 470Type type = methodMsg.MethodBase.DeclaringType;
channels\http\httpremotinghandler.cs (10)
59public HttpRemotingHandler(Type type, Object srvID) 330internal static Type s_webServicesFactoryType = null; 413Type type = WebServiceParser.GetCompiledType( 423Type lastType = (Type)s_registeredDynamicTypeTable[uri]; 457private static Type WebServicesFactoryType 493public static void RegisterType(String machineAndAppName, Type type, String uri) 497Type[] allTypes = type.Assembly.GetTypes(); 498foreach (Type asmType in allTypes) 504private static void RegisterSingleType(String machineAndAppName, Type type)
channels\sinks\soapformattersinks.cs (1)
855Type type = RemotingServices.GetServerTypeForUri(objectURI);
channels\tcp\tcpserverchannel.cs (1)
138_authorizeRemotingConnection = (IAuthorizeRemotingConnection) Activator.CreateInstance(Type.GetType((String)entry.Value, true));
Configuration\AppSettings.cs (1)
101private static bool TryGetValue(AppSettingsReader appSettingsReader, string key, Type type, out object value)
metadata\metadata.cs (6)
39public static void ConvertTypesToSchemaToFile(Type[] types, SdlType sdlType, String path) 45public static void ConvertTypesToSchemaToStream(Type[] types, SdlType sdlType, Stream outputStream) 282private Type _type; // Type of object being exported. 285public ServiceType(Type type) 291public ServiceType(Type type, String url) 297public Type ObjectType { get { return _type; } }
metadata\sdlchannelsink.cs (1)
307Type objectType = RemotingServices.GetServerTypeForUri(objectUri);
metadata\sudscommon.cs (49)
75internal static Type typeofByte = typeof(Byte); 76internal static Type typeofSByte = typeof(SByte); 77internal static Type typeofBoolean = typeof(Boolean); 78internal static Type typeofChar = typeof(Char); 79internal static Type typeofDouble = typeof(Double); 80internal static Type typeofSingle = typeof(Single); 81internal static Type typeofDecimal = typeof(Decimal); 82internal static Type typeofInt16 = typeof(Int16); 83internal static Type typeofInt32 = typeof(Int32); 84internal static Type typeofInt64 = typeof(Int64); 85internal static Type typeofUInt16 = typeof(UInt16); 86internal static Type typeofUInt32 = typeof(UInt32); 87internal static Type typeofUInt64 = typeof(UInt64); 88internal static Type typeofSoapTime = typeof(SoapTime); 89internal static Type typeofSoapDate = typeof(SoapDate); 90internal static Type typeofSoapYearMonth = typeof(SoapYearMonth); 91internal static Type typeofSoapYear = typeof(SoapYear); 92internal static Type typeofSoapMonthDay = typeof(SoapMonthDay); 93internal static Type typeofSoapDay = typeof(SoapDay); 94internal static Type typeofSoapMonth = typeof(SoapMonth); 95internal static Type typeofSoapHexBinary = typeof(SoapHexBinary); 96internal static Type typeofSoapBase64Binary = typeof(SoapBase64Binary); 97internal static Type typeofSoapInteger = typeof(SoapInteger); 98internal static Type typeofSoapPositiveInteger = typeof(SoapPositiveInteger); 99internal static Type typeofSoapNonPositiveInteger = typeof(SoapNonPositiveInteger); 100internal static Type typeofSoapNonNegativeInteger = typeof(SoapNonNegativeInteger); 101internal static Type typeofSoapNegativeInteger = typeof(SoapNegativeInteger); 102internal static Type typeofSoapAnyUri = typeof(SoapAnyUri); 103internal static Type typeofSoapQName = typeof(SoapQName); 104internal static Type typeofSoapNotation = typeof(SoapNotation); 105internal static Type typeofSoapNormalizedString = typeof(SoapNormalizedString); 106internal static Type typeofSoapToken = typeof(SoapToken); 107internal static Type typeofSoapLanguage = typeof(SoapLanguage); 108internal static Type typeofSoapName = typeof(SoapName); 109internal static Type typeofSoapIdrefs = typeof(SoapIdrefs); 110internal static Type typeofSoapEntities = typeof(SoapEntities); 111internal static Type typeofSoapNmtoken = typeof(SoapNmtoken); 112internal static Type typeofSoapNmtokens = typeof(SoapNmtokens); 113internal static Type typeofSoapNcName = typeof(SoapNcName); 114internal static Type typeofSoapId = typeof(SoapId); 115internal static Type typeofSoapIdref = typeof(SoapIdref); 116internal static Type typeofSoapEntity = typeof(SoapEntity); 117internal static Type typeofString = typeof(String); 118internal static Type typeofObject = typeof(Object); 119internal static Type typeofVoid = typeof(void); 120internal static Type typeofDateTime = typeof(DateTime); 121internal static Type typeofTimeSpan = typeof(TimeSpan); 122internal static Type typeofISoapXsd = typeof(ISoapXsd); 150internal static String MapClrTypeToXsdType(Type clrType)
metadata\sudswriter.cs (1)
44 internal SUDSGenerator(Type[] types, SdlType sdlType, TextWriter output)
metadata\wsdlparser.cs (11)
3597Type baseType = null; 3630baseType = (Type)inherit[j]; 4500Type type = (Type) types[i]; 4502Type[] iFaces = type.GetInterfaces(); 4533Type parameterType = param.ParameterType; 4559Type parameterType = param.ParameterType; 4600Type parameterType = param.ParameterType; 4661Type _type; 5220Type type = _type; 5253private Type _type;
metadata\wsdlwriter.cs (79)
39internal WsdlGenerator(Type[] types, TextWriter output) 63internal WsdlGenerator(Type[] types, SdlType sdlType, TextWriter output) 87internal WsdlGenerator(Type[] types, TextWriter output, Assembly assembly, String url) 96internal WsdlGenerator(Type[] types, SdlType sdlType, TextWriter output, Assembly assembly, String url) 158internal static String RefName(Type type) 179internal void ProcessTypeAttributes(Type type) 207Type type = (Type) _queue.Dequeue(); 225internal void ProcessType(Type type) 316Type[] interfaces = rsType.GetIntroducedInterfaces(); 382private void AddType(Type type, XMLNamespace xns) 393Type elementType = type.GetElementType(); 394Type nextelementType = elementType; 421Type parentType = assembly.GetType(parentName, true); 432private void EnqueueType(Type type, XMLNamespace xns) 471private static bool GetNSAndAssembly(Type type, out String ns, out Assembly assem) 530private XMLNamespace GetNamespace(Type type) 811private static Type s_marshalByRefType = typeof(System.MarshalByRefObject); 812private static Type s_contextBoundType = typeof(System.ContextBoundObject); 813private static Type s_delegateType = typeof(System.Delegate); 814private static Type s_valueType = typeof(System.ValueType); 815private static Type s_objectType = typeof(System.Object); 816private static Type s_charType = typeof(System.Char); 817private static Type s_voidType = typeof(void); 819private static Type s_remotingClientProxyType = typeof(System.Runtime.Remoting.Services.RemotingClientProxy); 996internal SchemaElement(String name, Type type, bool bEmbedded, XMLNamespace xns) 1055private SimpleSchemaType(Type type, XMLNamespace xns) 1065internal Type Type 1139internal static SimpleSchemaType GetSimpleSchemaType(Type type, XMLNamespace xns, bool fInline) 1161private Type _type; 1196internal ComplexSchemaType(Type type) 1287private Type _type; 1332internal ArraySchemaType(Type type, String name, SchemaBlockType blockType, bool bSealed) 1339internal Type Type 1364private Type _type; 1369internal RealSchemaType(Type type, XMLNamespace xns, String serviceEndpoint, Hashtable typeToServiceEndpoint, bool bUnique, WsdlGenerator WsdlGenerator) 1389foreach (Type ntype in _nestedTypes) 1397internal Type Type{ 1421internal Type[] GetIntroducedInterfaces(){ 1444private bool IsNotSystemDefinedRoot(Type type, Type baseType) 1472Type baseType = _type.BaseType; 1484Type ltype= _type; 1485Type lbaseType = ltype.BaseType; 1571Type type = param.ParameterType; 1621Type returnType = method.ReturnType; 1641Type fieldType = field.FieldType; 1981Type type = rsType._type; 1987Type[] iFaces = GetIntroducedInterfaces(rsType._type); 2126private void PrintSuds(Type type, String[] implIFaces, Type[] nestedTypes, TextWriter textWriter, StringBuilder sb, String indent) 2159Type baseType = type.BaseType; 2237private static String ProcessArray(Type type, XMLNamespace xns) 2242Type elementType = type.GetElementType(); 2288internal static String TypeName(Type type, bool bEmbedded, XMLNamespace thisxns) 2296Type clrType = type; 2344static private Type[] GetIntroducedInterfaces(Type type) 2347Type[] typeA = type.GetInterfaces(); 2349foreach (Type itype in typeA) 2360Type[] ifaceTypes = new Type[ifaceA.Count]; 2362ifaceTypes[i] = (Type)ifaceA[i]; 2366static private void FindMethodAttributes(Type type, MethodInfo[] infos, ref String[] methodAttributes, BindingFlags bFlags) 2369Type baseType = type; 2402baseType = (Type)inherit[j]; 2404Type[] types = new Type[paramInfos.Length]; 2440static private MethodInfo[] GetIntroducedMethods(Type type, ref String[] methodAttributes) 2460Type[] itypeA = type.GetInterfaces(); 2461foreach (Type itype in itypeA ) 2512static private FieldInfo[] GetInstanceFields(Type type){ 2553private Type _type; 2561private Type[] _iFaces; 2567internal Type[] _nestedTypes; 2570private static Type[] emptyTypeSet = new Type[0]; 2662internal Type LookupSchemaType(String name) 2664Type returnType = null;
services\remotingclientproxy.cs (2)
23protected Type _type; 27protected void ConfigureProxy(Type type, String url)
System.Runtime.Serialization (1008)
System\Runtime\Serialization\ClassDataContract.cs (26)
64internal ClassDataContract(Type type) 73ClassDataContract(Type type, XmlDictionaryString ns, string[] memberNames) 318internal static ClassDataContract CreateClassDataContractForKeyValue(Type type, XmlDictionaryString ns, string[] memberNames) 328Type declaringType = memberContract.MemberInfo.DeclaringType; 341internal static XmlDictionaryString GetChildNamespaceToDeclare(DataContract dataContract, Type childType, XmlDictionary dictionary) 359static internal bool IsNonAttributedTypeValidForSerialization(Type type) 379Type[] interfaceTypes = type.GetInterfaces(); 380foreach (Type interfaceType in interfaceTypes) 688internal ClassDataContractCriticalHelper(Type type) 703Type baseType = type.BaseType; 776internal ClassDataContractCriticalHelper(Type type, XmlDictionaryString ns, string[] memberNames) 796void EnsureIsReferenceImported(Type type) 850Type type = this.UnderlyingType; 1082XmlQualifiedName GetStableNameAndSetHasDataContract(Type type) 1091void SetIsNonAttributedType(Type type) 1109Type type = this.UnderlyingType; 1114Type prevAttributeType = null; 1154static bool IsValidCallback(MethodInfo method, ParameterInfo[] parameters, Type attributeType, MethodInfo currentCallback, ref Type prevAttributeType) 1319Type type = UnderlyingType; 1349static Type[] serInfoCtorArgs; 1350static Type[] SerInfoCtorArgs 1355serInfoCtorArgs = new Type[] { typeof(SerializationInfo), typeof(StreamingContext) }; 1398Type type = UnderlyingType; 1421Type[] paramTypes = type.GetGenericArguments(); 1425Type paramType = paramTypes[i];
System\Runtime\Serialization\CodeExporter.cs (13)
230bool TryGetReferencedType(XmlQualifiedName stableName, DataContract dataContract, out Type type) 363CodeTypeReference GetCodeTypeReference(Type type) 538Type type = null; 584type = (Type)typeReference.UserData[codeUserDataActualTypeKey]; 640Type type; 662Type type; 678Type type = DataContractSurrogateCaller.GetReferencedTypeOnImport( 700Type type; 850Type actualType = (Type)baseContractCodeDomInfo.TypeReference.UserData[codeUserDataActualTypeKey]; 1069void ThrowIfReferencedBaseTypeSealed(Type baseType, DataContract dataContract) 1163Type actualType = (Type)baseContractCodeDomInfo.TypeReference.UserData[codeUserDataActualTypeKey];
System\Runtime\Serialization\CodeGenerator.cs (61)
29getTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle"); 46stringFormat = typeof(string).GetMethod("Format", new Type[] { typeof(string), typeof(object[]) }); 63stringConcat2 = typeof(string).GetMethod("Concat", new Type[] { typeof(string), typeof(string) }); 80stringConcat3 = typeof(string).GetMethod("Concat", new Type[] { typeof(string), typeof(string), typeof(string) }); 97objectToString = typeof(object).GetMethod("ToString", new Type[0]); 131arraySetValue = typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) }); 136Type delegateType; 190internal void BeginMethod(DynamicMethod dynamicMethod, Type delegateType, string methodName, Type[] argTypes, bool allowPrivateMemberAccess) 200internal void BeginMethod(string methodName, Type delegateType, bool allowPrivateMemberAccess) 204Type[] paramTypes = new Type[parameters.Length]; 211void BeginMethod(Type returnType, string methodName, Type[] argTypes, bool allowPrivateMemberAccess) 227void InitILGeneration(string methodName, Type[] argTypes) 282internal Type GetVariableType(object var) 292internal LocalBuilder DeclareLocal(Type type, string name, object initialValue) 300internal LocalBuilder DeclareLocal(Type type, string name) 305internal LocalBuilder DeclareLocal(Type type, string name, bool isPinned) 397internal void ForEach(LocalBuilder local, Type elementType, Type enumeratorType, 432Type type = GetVariableType(value); 433TypeCode typeCode = Type.GetTypeCode(type); 674internal void InitObj(Type valueType) 681internal void NewArray(Type elementType, object len) 696Type objType = GetVariableType(obj).GetElementType(); 710Type arrayType = GetVariableType(obj); 717Type objType = arrayType.GetElementType(); 731static bool IsStruct(Type objType) 736internal Type LoadMember(MemberInfo memberInfo) 738Type memberType = null; 816internal void LoadDefaultValue(Type type) 820switch (Type.GetTypeCode(type)) 914internal void ConvertAddress(Type source, Type target) 919internal void ConvertValue(Type source, Type target) 925internal void Castclass(Type target) 932internal void Box(Type type) 939internal void Unbox(Type type) 982internal void Ldobj(Type type) 984OpCode opCode = GetLdindOpCode(Type.GetTypeCode(type)); 999internal void Stobj(Type type) 1035internal void Ldtoken(Type t) 1044Type valueType = o.GetType(); 1045if (o is Type) 1047Ldtoken((Type)o); 1058switch (Type.GetTypeCode(valueType)) 1405internal void Ldelem(Type arrayElementType) 1413OpCode opCode = GetLdelemOpCode(Type.GetTypeCode(arrayElementType)); 1422internal void Ldelema(Type arrayElementType) 1470internal void Stelem(Type arrayElementType) 1476OpCode opCode = GetStelemOpCode(Type.GetTypeCode(arrayElementType)); 1644void InternalConvert(Type source, Type target, bool isAddress) 1652OpCode opCode = GetConvOpCode(Type.GetTypeCode(target)); 1753internal void EmitStackTop(Type stackTopType) 1769internal void ToString(Type type) 1781internal void ToDebuggableString(Type type) 2344internal Type ArgType; 2345internal ArgBuilder(int index, Type argType)
System\Runtime\Serialization\CollectionDataContract.cs (73)
103internal CollectionDataContract(Type type) 112internal CollectionDataContract(Type type, DataContract itemContract) 122CollectionDataContract(Type type, CollectionKind kind, Type itemType, MethodInfo getEnumeratorMethod, string serializationExceptionMessage, string deserializationExceptionMessage) 131CollectionDataContract(Type type, CollectionKind kind, Type itemType, MethodInfo getEnumeratorMethod, MethodInfo addMethod, ConstructorInfo constructor) 140CollectionDataContract(Type type, CollectionKind kind, Type itemType, MethodInfo getEnumeratorMethod, MethodInfo addMethod, ConstructorInfo constructor, bool isConstructorCheckRequired) 149CollectionDataContract(Type type, string invalidCollectionInSharedContractMessage) 172static Type[] KnownInterfaces 188internal Type ItemType 479static Type[] _knownInterfaces; 481Type itemType; 503internal static Type[] KnownInterfaces 510_knownInterfaces = new Type[] 526void Init(CollectionKind kind, Type itemType, CollectionDataContractAttribute collectionContractAttribute) 587internal CollectionDataContractCriticalHelper(Type type) 599internal CollectionDataContractCriticalHelper(Type type, DataContract itemContract) 610internal CollectionDataContractCriticalHelper(Type type, CollectionKind kind, Type itemType, MethodInfo getEnumeratorMethod, string serializationExceptionMessage, string deserializationExceptionMessage) 628internal CollectionDataContractCriticalHelper(Type type, CollectionKind kind, Type itemType, MethodInfo getEnumeratorMethod, MethodInfo addMethod, ConstructorInfo constructor) 638internal CollectionDataContractCriticalHelper(Type type, CollectionKind kind, Type itemType, MethodInfo getEnumeratorMethod, MethodInfo addMethod, ConstructorInfo constructor, bool isConstructorCheckRequired) 644internal CollectionDataContractCriticalHelper(Type type, string invalidCollectionInSharedContractMessage) 656internal Type ItemType 819DataContract GetSharedTypeContract(Type type) 834internal static bool IsCollectionInterface(Type type) 838return ((IList<Type>)KnownInterfaces).Contains(type); 841internal static bool IsCollection(Type type) 843Type itemType; 847internal static bool IsCollection(Type type, out Type itemType) 852internal static bool IsCollection(Type type, bool constructorRequired, bool skipIfReadOnlyContract) 854Type itemType; 858static bool IsCollectionHelper(Type type, out Type itemType, bool constructorRequired, bool skipIfReadOnlyContract = false) 869internal static bool TryCreate(Type type, out DataContract dataContract) 871Type itemType; 875internal static bool TryCreateGetOnlyCollectionDataContract(Type type, out DataContract dataContract) 877Type itemType; 889internal static MethodInfo GetTargetMethodWithName(string name, Type type, Type interfaceType) 900static bool IsArraySegment(Type t) 906static bool IsCollectionOrTryCreate(Type type, bool tryCreate, out DataContract dataContract, out Type itemType, bool constructorRequired, bool skipIfReadOnlyContract = false) 920Type baseType = type.BaseType; 945Type interfaceTypeToCheck = type.IsGenericType ? type.GetGenericTypeDefinition() : type; 946Type[] knownInterfaces = KnownInterfaces; 954Type[] genericArgs = type.GetGenericArguments(); 1016Type knownInterfaceType = null; 1019Type[] interfaceTypes = type.GetInterfaces(); 1020foreach (Type interfaceType in interfaceTypes) 1022Type interfaceTypeToCheck = interfaceType.IsGenericType ? interfaceType.GetGenericTypeDefinition() : interfaceType; 1023Type[] knownInterfaces = KnownInterfaces; 1053GetCollectionMethods(type, knownInterfaceType, new Type[] { itemType }, 1087Type[] addMethodTypeArray = null; 1097addMethodTypeArray = new Type[] { Globals.TypeOfObject, Globals.TypeOfObject }; 1107addMethodTypeArray = new Type[] { itemType }; 1125internal static bool IsCollectionDataContract(Type type) 1130static bool HandleIfInvalidCollection(Type type, bool tryCreate, bool hasCollectionDataContract, bool createContractWithException, string message, string param, ref DataContract dataContract) 1149static void GetReadOnlyCollectionExceptionMessages(Type type, bool hasCollectionDataContract, string message, string param, out string serializationExceptionMessage, out string deserializationExceptionMessage) 1160static void FindCollectionMethodsOnInterface(Type type, Type interfaceType, ref MethodInfo addMethod, ref MethodInfo getEnumeratorMethod) 1172static void GetCollectionMethods(Type type, Type interfaceType, Type[] addMethodTypeArray, bool addMethodOnInterface, out MethodInfo getEnumeratorMethod, out MethodInfo addMethod) 1184Type[] parentInterfaceTypes = interfaceType.GetInterfaces(); 1185foreach (Type parentInterfaceType in parentInterfaceTypes) 1210Type ienumerableInterface = interfaceType.GetInterface("System.Collections.Generic.IEnumerable*"); 1218static bool IsKnownInterface(Type type) 1220Type typeToCheck = type.IsGenericType ? type.GetGenericTypeDefinition() : type; 1221foreach (Type knownInterfaceType in KnownInterfaces)
System\Runtime\Serialization\Configuration\DeclaredTypeValidator.cs (3)
13public override bool CanValidate(Type type) 24Type t = Type.GetType(type, false);
System\Runtime\Serialization\Configuration\ParameterElement.cs (2)
102internal Type GetType(string rootType, Type[] typeArgs)
System\Runtime\Serialization\Configuration\TypeElement.cs (8)
67internal Type GetType(string rootType, Type[] typeArgs) 75internal static Type GetType(string rootType, Type[] typeArgs, string type, int index, ParameterElementCollection parameters) 101Type t = System.Type.GetType(type, true); 110Type[] types = new Type[parameters.Count];
System\Runtime\Serialization\DataContract.cs (128)
52internal static DataContract GetDataContract(Type type) 57internal static DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type, SerializationMode mode) 74internal static DataContract GetDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type type) 79internal static DataContract GetGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type type, SerializationMode mode) 93internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type type) 125public static DataContract GetBuiltInDataContract(Type type) 165internal static void ThrowInvalidDataContractException(string message, Type type) 183internal Type UnderlyingType 191internal Type OriginalUnderlyingType 208internal Type TypeForInitialization 401static Dictionary<Type, DataContract> typeToBuiltInContract; 417readonly Type underlyingType; 418Type originalUnderlyingType; 427Type typeForInitialization; 440internal static DataContract GetDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type type) 454internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type type) 560static DataContract CreateDataContract(int id, RuntimeTypeHandle typeHandle, Type type) 573type = Type.GetTypeFromHandle(typeHandle); 625static DataContract CreateGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type type) 634type = Type.GetTypeFromHandle(typeHandle); 647internal static Type GetDataContractAdapterType(Type type) 661internal static Type GetDataContractOriginalType(Type type) 680public static DataContract GetBuiltInDataContract(Type type) 688typeToBuiltInContract = new Dictionary<Type, DataContract>(); 733Type type = null; 797static public bool TryCreateBuiltInDataContract(Type type, out DataContract dataContract) 805switch (Type.GetTypeCode(type)) 1074internal static void ThrowInvalidDataContractException(string message, Type type) 1100internal DataContractCriticalHelper(Type type) 1107internal Type UnderlyingType 1112internal Type OriginalUnderlyingType 1132internal Type TypeForInitialization 1140void SetTypeForInitialization(Type classType) 1233MethodInfo method = UnderlyingType.GetMethod(Globals.ParseMethodName, BindingFlags.Public | BindingFlags.Static, null, new Type[] { Globals.TypeOfString }, null); 1275static internal bool IsTypeSerializable(Type type) 1277return IsTypeSerializable(type, new Dictionary<Type, object>()); 1280static bool IsTypeSerializable(Type type, Dictionary<Type, object> previousCollectionTypes) 1282Type itemType; 1303static void ValidatePreviousCollectionTypes(Type collectionType, Type itemType, Dictionary<Type, object> previousCollectionTypes) 1315List<Type> itemTypeClosure = new List<Type>(); 1316Queue<Type> itemTypeQueue = new Queue<Type>(); 1330foreach (Type argType in itemType.GetGenericArguments()) 1342internal static Type UnwrapRedundantNullableType(Type type) 1344Type nullableType = type; 1353internal static Type UnwrapNullableType(Type type) 1409internal static XmlQualifiedName GetStableName(Type type) 1415internal static XmlQualifiedName GetStableName(Type type, out bool hasDataContract) 1417return GetStableName(type, new Dictionary<Type, object>(), out hasDataContract); 1424static XmlQualifiedName GetStableName(Type type, Dictionary<Type, object> previousCollectionTypes, out bool hasDataContract) 1450static XmlQualifiedName GetDCTypeStableName(Type type, DataContractAttribute dataContractAttribute) 1478static XmlQualifiedName GetNonDCTypeStableName(Type type, Dictionary<Type, object> previousCollectionTypes) 1482Type itemType; 1503static bool TryGetBuiltInXmlAndArrayTypeStableName(Type type, Dictionary<Type, object> previousCollectionTypes, out XmlQualifiedName stableName) 1522Type itemType = type.GetElementType(); 1533internal static bool TryGetDCAttribute(Type type, out DataContractAttribute dataContractAttribute) 1550internal static XmlQualifiedName GetCollectionStableName(Type type, Type itemType, out CollectionDataContractAttribute collectionContractAttribute) 1552return GetCollectionStableName(type, itemType, new Dictionary<Type, object>(), out collectionContractAttribute); 1555static XmlQualifiedName GetCollectionStableName(Type type, Type itemType, Dictionary<Type, object> previousCollectionTypes, out CollectionDataContractAttribute collectionContractAttribute) 1600private static string GetArrayPrefix(ref Type itemType) 1635internal static XmlQualifiedName GetDefaultStableName(Type type) 1640static string GetDefaultStableLocalName(Type type) 1669Type[] genParams = type.GetGenericArguments(); 1672Type genParam = genParams[i]; 1697static string GetDefaultDataContractNamespace(Type type) 1749internal static string GetDefaultStableNamespace(Type type) 1767static void CheckExplicitDataContractNamespaceUri(string dataContractNs, Type type) 1787internal static string GetClrTypeFullName(Type type) 1792internal static string GetClrAssemblyName(Type type, out bool hasTypeForwardedFrom) 1808internal static string GetClrTypeFullNameUsingTypeForwardedFromAttribute(Type type) 1820static string GetClrTypeFullNameForArray(Type type) 1826static string GetClrTypeFullNameForNonArrayTypes(Type type) 1833Type[] genericArguments = type.GetGenericArguments(); 1836foreach (Type genericArgument in genericArguments) 1966private static string ExpandGenericParameters(string format, Type type) 2017static internal bool IsTypeNullable(Type type) 2024public static void ThrowTypeNotSerializable(Type type) 2045internal static DataContractDictionary ImportKnownTypeAttributes(Type type) 2048Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 2054static void ImportKnownTypeAttributes(Type type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary knownDataContracts) 2114foreach (Type ty in (IEnumerable<Type>)types) 2142static void LoadKnownTypesFromConfig(Type type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary knownDataContracts) 2149Type rootType = type; 2150Type[] genArgs = null; 2179Type knownType = elem.KnownTypes[i].GetType(elem.Type, genArgs); 2189private static void CheckRootTypeInConfigIsGeneric(Type type, ref Type rootType, ref Type[] genArgs) 2205private static bool IsElemTypeNullOrNotEqualToRootType(string elemTypeName, Type rootType) 2207Type t = Type.GetType(elemTypeName, false); 2215private static bool IsCollectionElementTypeEqualToRootType(string collectionElementTypeName, Type rootType) 2219Type t = Type.GetType(collectionElementTypeName, false); 2238internal static void CheckAndAdd(Type type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary nameToDataContractTable) 2257static bool IsOpenGenericType(Type t) 2259Type[] args = t.GetGenericArguments(); 2312static internal bool IsTypeVisible(Type t) 2331foreach (Type genericType in t.GetGenericArguments()) 2345static internal bool IsTypeAndDeclaringTypeVisible(Type t) 2394static bool IsTypeVisibleInSerializationModule(Type type) 2462internal GenericNameProvider(Type type) 2528Type paramType = o as Type;
System\Runtime\Serialization\DataContractResolver.cs (4)
11public abstract bool TryResolveType(Type type, Type declaredType, DataContractResolver knownTypeResolver, out XmlDictionaryString typeName, out XmlDictionaryString typeNamespace); 12public abstract Type ResolveName(string typeName, string typeNamespace, Type declaredType, DataContractResolver knownTypeResolver);
System\Runtime\Serialization\DataContractSerializer.cs (45)
23Type rootType; 32ReadOnlyCollection<Type> knownTypeCollection; 33internal IList<Type> knownTypeList; 38public DataContractSerializer(Type type) 39: this(type, (IEnumerable<Type>)null) 43public DataContractSerializer(Type type, IEnumerable<Type> knownTypes) 48public DataContractSerializer(Type type, 49IEnumerable<Type> knownTypes, 58public DataContractSerializer(Type type, 59IEnumerable<Type> knownTypes, 69public DataContractSerializer(Type type, string rootName, string rootNamespace) 74public DataContractSerializer(Type type, string rootName, string rootNamespace, IEnumerable<Type> knownTypes) 79public DataContractSerializer(Type type, string rootName, string rootNamespace, 80IEnumerable<Type> knownTypes, 89public DataContractSerializer(Type type, string rootName, string rootNamespace, 90IEnumerable<Type> knownTypes, 101public DataContractSerializer(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace) 106public DataContractSerializer(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, IEnumerable<Type> knownTypes) 111public DataContractSerializer(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, 112IEnumerable<Type> knownTypes, 121public DataContractSerializer(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, 122IEnumerable<Type> knownTypes, 132public DataContractSerializer(Type type, DataContractSerializerSettings settings) 142void Initialize(Type type, 143IEnumerable<Type> knownTypes, 156this.knownTypeList = new List<Type>(); 157foreach (Type knownType in knownTypes) 174void Initialize(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, 175IEnumerable<Type> knownTypes, 189public ReadOnlyCollection<Type> KnownTypes 197knownTypeCollection = new ReadOnlyCollection<Type>(knownTypeList); 201knownTypeCollection = new ReadOnlyCollection<Type>(Globals.EmptyTypeArray); 365Type declaredType = contract.UnderlyingType; 366Type graphType = (graph == null) ? declaredType : graph.GetType(); 413internal static DataContract GetDataContract(DataContract declaredTypeContract, Type declaredType, Type objectType) 499internal override Type GetSerializeType(object graph) 504internal override Type GetDeserializeType() 509internal static object SurrogateToDataContractType(IDataContractSurrogate dataContractSurrogate, object oldObj, Type surrogatedDeclaredType, ref Type objType) 522internal static Type GetSurrogatedType(IDataContractSurrogate dataContractSurrogate, Type type)
System\Runtime\Serialization\DataContractSerializerSettings.cs (1)
30public IEnumerable<Type> KnownTypes { get; set; }
System\Runtime\Serialization\DataContractSet.cs (30)
23ICollection<Type> referencedTypes; 24ICollection<Type> referencedCollectionTypes; 31internal DataContractSet(IDataContractSurrogate dataContractSurrogate, ICollection<Type> referencedTypes, ICollection<Type> referencedCollectionTypes) 101internal void Add(Type type) 108internal static void EnsureTypeNotGeneric(Type type) 223internal XmlQualifiedName GetStableName(Type clrType) 227Type dcType = DataContractSurrogateCaller.GetDataContractType(dataContractSurrogate, clrType); 236internal DataContract GetDataContract(Type clrType) 243Type dcType = DataContractSurrogateCaller.GetDataContractType(dataContractSurrogate, clrType); 261Type dataMemberType = dataMember.MemberType; 266Type dcType = DataContractSurrogateCaller.GetDataContractType(dataContractSurrogate, dataMemberType); 362foreach (Type type in this.referencedTypes) 381foreach (Type type in this.referencedCollectionTypes) 395void AddReferencedType(Dictionary<XmlQualifiedName, object> referencedTypes, Type type) 418Type referencedType = value as Type; 424List<Type> types = new List<Type>(); 432List<Type> types = (List<Type>)value; 441internal bool TryGetReferencedType(XmlQualifiedName stableName, DataContract dataContract, out Type type) 446internal bool TryGetReferencedCollectionType(XmlQualifiedName stableName, DataContract dataContract, out Type type) 451bool TryGetReferencedType(XmlQualifiedName stableName, DataContract dataContract, bool useReferencedCollectionTypes, out Type type) 457type = value as Type; 463List<Type> types = (List<Type>)value; 468Type conflictingType = types[i]; 498static bool IsTypeReferenceable(Type type) 500Type itemType;
System\Runtime\Serialization\DataMember.cs (2)
104internal Type MemberType 216internal Type MemberType
System\Runtime\Serialization\EnumDataContract.cs (16)
40internal EnumDataContract(Type type) 49static internal XmlQualifiedName GetBaseContractName(Type type) 57static internal Type GetBaseType(XmlQualifiedName baseContractName) 136static Dictionary<Type, XmlQualifiedName> typeToName; 137static Dictionary<XmlQualifiedName, Type> nameToType; 149typeToName = new Dictionary<Type, XmlQualifiedName>(); 150nameToType = new Dictionary<XmlQualifiedName, Type>(); 162static internal void Add(Type type, string localName) 169static internal XmlQualifiedName GetBaseContractName(Type type) 176static internal Type GetBaseType(XmlQualifiedName baseContractName) 178Type retVal = null; 188internal EnumDataContractCriticalHelper(Type type) 192Type baseType = Enum.GetUnderlyingType(type); 229Type baseType = GetBaseType(baseContractName); 264void ImportBaseType(Type baseType) 271Type type = this.UnderlyingType;
System\Runtime\Serialization\ExportOptions.cs (3)
13Collection<Type> knownTypes; 27public Collection<Type> KnownTypes 33knownTypes = new Collection<Type>();
System\Runtime\Serialization\ExtensionDataObject.cs (3)
76Type DataType { get; } 93protected Type dataType; 114public Type DataType
System\Runtime\Serialization\ExtensionDataReader.cs (4)
473Type dataNodeType = dataNode.DataType; 634Type type = dataNode.DataType; 660bool MoveToText(Type type, IDataNode dataNode, bool isTypedNode) 663switch (Type.GetTypeCode(type))
System\Runtime\Serialization\GenericParameterDataContract.cs (2)
20internal GenericParameterDataContract(Type type) 49internal GenericParameterDataContractCriticalHelper(Type type)
System\Runtime\Serialization\Globals.cs (160)
53static Type typeOfObject; 54internal static Type TypeOfObject 66static Type typeOfValueType; 67internal static Type TypeOfValueType 79static Type typeOfArray; 80internal static Type TypeOfArray 92static Type typeOfString; 93internal static Type TypeOfString 105static Type typeOfInt; 106internal static Type TypeOfInt 118static Type typeOfULong; 119internal static Type TypeOfULong 131static Type typeOfVoid; 132internal static Type TypeOfVoid 144static Type typeOfByteArray; 145internal static Type TypeOfByteArray 157static Type typeOfTimeSpan; 158internal static Type TypeOfTimeSpan 170static Type typeOfGuid; 171internal static Type TypeOfGuid 183static Type typeOfDateTimeOffset; 184internal static Type TypeOfDateTimeOffset 196static Type typeOfDateTimeOffsetAdapter; 197internal static Type TypeOfDateTimeOffsetAdapter 209static Type typeOfUri; 210internal static Type TypeOfUri 222static Type typeOfTypeEnumerable; 223internal static Type TypeOfTypeEnumerable 229typeOfTypeEnumerable = typeof(IEnumerable<Type>); 235static Type typeOfStreamingContext; 236internal static Type TypeOfStreamingContext 248static Type typeOfISerializable; 249internal static Type TypeOfISerializable 261static Type typeOfIDeserializationCallback; 262internal static Type TypeOfIDeserializationCallback 274static Type typeOfIObjectReference; 275internal static Type TypeOfIObjectReference 287static Type typeOfXmlFormatClassWriterDelegate; 288internal static Type TypeOfXmlFormatClassWriterDelegate 300static Type typeOfXmlFormatCollectionWriterDelegate; 301internal static Type TypeOfXmlFormatCollectionWriterDelegate 313static Type typeOfXmlFormatClassReaderDelegate; 314internal static Type TypeOfXmlFormatClassReaderDelegate 326static Type typeOfXmlFormatCollectionReaderDelegate; 327internal static Type TypeOfXmlFormatCollectionReaderDelegate 339static Type typeOfXmlFormatGetOnlyCollectionReaderDelegate; 340internal static Type TypeOfXmlFormatGetOnlyCollectionReaderDelegate 352static Type typeOfKnownTypeAttribute; 353internal static Type TypeOfKnownTypeAttribute 366static Type typeOfDataContractAttribute; 367internal static Type TypeOfDataContractAttribute 381static Type typeOfContractNamespaceAttribute; 382internal static Type TypeOfContractNamespaceAttribute 394static Type typeOfDataMemberAttribute; 395internal static Type TypeOfDataMemberAttribute 407static Type typeOfEnumMemberAttribute; 408internal static Type TypeOfEnumMemberAttribute 420static Type typeOfCollectionDataContractAttribute; 421internal static Type TypeOfCollectionDataContractAttribute 433static Type typeOfOptionalFieldAttribute; 434internal static Type TypeOfOptionalFieldAttribute 446static Type typeOfObjectArray; 447internal static Type TypeOfObjectArray 459static Type typeOfOnSerializingAttribute; 460internal static Type TypeOfOnSerializingAttribute 472static Type typeOfOnSerializedAttribute; 473internal static Type TypeOfOnSerializedAttribute 485static Type typeOfOnDeserializingAttribute; 486internal static Type TypeOfOnDeserializingAttribute 498static Type typeOfOnDeserializedAttribute; 499internal static Type TypeOfOnDeserializedAttribute 511static Type typeOfFlagsAttribute; 512internal static Type TypeOfFlagsAttribute 524static Type typeOfSerializableAttribute; 525internal static Type TypeOfSerializableAttribute 537static Type typeOfNonSerializedAttribute; 538internal static Type TypeOfNonSerializedAttribute 550static Type typeOfSerializationInfo; 551internal static Type TypeOfSerializationInfo 563static Type typeOfSerializationInfoEnumerator; 564internal static Type TypeOfSerializationInfoEnumerator 576static Type typeOfSerializationEntry; 577internal static Type TypeOfSerializationEntry 589static Type typeOfIXmlSerializable; 590internal static Type TypeOfIXmlSerializable 602static Type typeOfXmlSchemaProviderAttribute; 603internal static Type TypeOfXmlSchemaProviderAttribute 615static Type typeOfXmlRootAttribute; 616internal static Type TypeOfXmlRootAttribute 628static Type typeOfXmlQualifiedName; 629internal static Type TypeOfXmlQualifiedName 641static Type typeOfXmlSchemaType; 642internal static Type TypeOfXmlSchemaType 654static Type typeOfXmlSerializableServices; 655internal static Type TypeOfXmlSerializableServices 667static Type typeOfXmlNodeArray; 668internal static Type TypeOfXmlNodeArray 680static Type typeOfXmlSchemaSet; 681internal static Type TypeOfXmlSchemaSet 706static Type[] emptyTypeArray; 707internal static Type[] EmptyTypeArray 713emptyTypeArray = new Type[0]; 719static Type typeOfIPropertyChange; 720internal static Type TypeOfIPropertyChange 732static Type typeOfIExtensibleDataObject; 733internal static Type TypeOfIExtensibleDataObject 745static Type typeOfExtensionDataObject; 746internal static Type TypeOfExtensionDataObject 758static Type typeOfISerializableDataNode; 759internal static Type TypeOfISerializableDataNode 771static Type typeOfClassDataNode; 772internal static Type TypeOfClassDataNode 784static Type typeOfCollectionDataNode; 785internal static Type TypeOfCollectionDataNode 797static Type typeOfXmlDataNode; 798internal static Type TypeOfXmlDataNode 810static Type typeOfNullable; 811internal static Type TypeOfNullable 823static Type typeOfReflectionPointer; 824internal static Type TypeOfReflectionPointer 836static Type typeOfIDictionaryGeneric; 837internal static Type TypeOfIDictionaryGeneric 849static Type typeOfIDictionary; 850internal static Type TypeOfIDictionary 862static Type typeOfIListGeneric; 863internal static Type TypeOfIListGeneric 875static Type typeOfIList; 876internal static Type TypeOfIList 888static Type typeOfICollectionGeneric; 889internal static Type TypeOfICollectionGeneric 901static Type typeOfICollection; 902internal static Type TypeOfICollection 914static Type typeOfIEnumerableGeneric; 915internal static Type TypeOfIEnumerableGeneric 927static Type typeOfIEnumerable; 928internal static Type TypeOfIEnumerable 940static Type typeOfIEnumeratorGeneric; 941internal static Type TypeOfIEnumeratorGeneric 953static Type typeOfIEnumerator; 954internal static Type TypeOfIEnumerator 966static Type typeOfKeyValuePair; 967internal static Type TypeOfKeyValuePair 979static Type typeOfKeyValue; 980internal static Type TypeOfKeyValue 992static Type typeOfIDictionaryEnumerator; 993internal static Type TypeOfIDictionaryEnumerator 1005static Type typeOfDictionaryEnumerator; 1006internal static Type TypeOfDictionaryEnumerator 1018static Type typeOfGenericDictionaryEnumerator; 1019internal static Type TypeOfGenericDictionaryEnumerator 1031static Type typeOfDictionaryGeneric; 1032internal static Type TypeOfDictionaryGeneric 1044static Type typeOfHashtable; 1045internal static Type TypeOfHashtable 1057static Type typeOfListGeneric; 1058internal static Type TypeOfListGeneric 1070static Type typeOfXmlElement; 1071internal static Type TypeOfXmlElement 1083static Type typeOfDBNull; 1084internal static Type TypeOfDBNull
System\Runtime\Serialization\IDataContractSurrogate.cs (21)
13Type GetDataContractType(Type type); 14object GetObjectToSerialize(object obj, Type targetType); 15object GetDeserializedObject(object obj, Type targetType); 16object GetCustomDataToExport(MemberInfo memberInfo, Type dataContractType); 17object GetCustomDataToExport(Type clrType, Type dataContractType); 18void GetKnownCustomDataTypes(Collection<Type> customDataTypes); 19Type GetReferencedTypeOnImport(string typeName, string typeNamespace, object customData); 25internal static Type GetDataContractType(IDataContractSurrogate surrogate, Type type) 29Type dcType = surrogate.GetDataContractType(type); 35internal static object GetObjectToSerialize(IDataContractSurrogate surrogate, object obj, Type objType, Type membertype) 43internal static object GetDeserializedObject(IDataContractSurrogate surrogate, object obj, Type objType, Type memberType) 51internal static object GetCustomDataToExport(IDataContractSurrogate surrogate, MemberInfo memberInfo, Type dataContractType) 55internal static object GetCustomDataToExport(IDataContractSurrogate surrogate, Type clrType, Type dataContractType) 61internal static void GetKnownCustomDataTypes(IDataContractSurrogate surrogate, Collection<Type> customDataTypes) 65internal static Type GetReferencedTypeOnImport(IDataContractSurrogate surrogate, string typeName, string typeNamespace, object customData)
System\Runtime\Serialization\ImportOptions.cs (6)
20ICollection<Type> referencedTypes; 21ICollection<Type> referencedCollectionTypes; 50public ICollection<Type> ReferencedTypes 56referencedTypes = new List<Type>(); 62public ICollection<Type> ReferencedCollectionTypes 68referencedCollectionTypes = new List<Type>();
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (38)
22internal IList<Type> knownTypeList; 27ReadOnlyCollection<Type> knownTypeCollection; 32Type rootType; 37public DataContractJsonSerializer(Type type) 38: this(type, (IEnumerable<Type>)null) 42public DataContractJsonSerializer(Type type, string rootName) 47public DataContractJsonSerializer(Type type, XmlDictionaryString rootName) 52public DataContractJsonSerializer(Type type, IEnumerable<Type> knownTypes) 58public DataContractJsonSerializer(Type type, string rootName, IEnumerable<Type> knownTypes) 63public DataContractJsonSerializer(Type type, XmlDictionaryString rootName, IEnumerable<Type> knownTypes) 68public DataContractJsonSerializer(Type type, 69IEnumerable<Type> knownTypes, 79public DataContractJsonSerializer(Type type, string rootName, 80IEnumerable<Type> knownTypes, 91public DataContractJsonSerializer(Type type, XmlDictionaryString rootName, 92IEnumerable<Type> knownTypes, 102public DataContractJsonSerializer(Type type, DataContractJsonSerializerSettings settings) 124public ReadOnlyCollection<Type> KnownTypes 132knownTypeCollection = new ReadOnlyCollection<Type>(knownTypeList); 136knownTypeCollection = new ReadOnlyCollection<Type>(Globals.EmptyTypeArray); 387internal override Type GetDeserializeType() 392internal override Type GetSerializeType(object graph) 456Type declaredType = contract.UnderlyingType; 457Type graphType = (graph == null) ? declaredType : graph.GetType(); 513void AddCollectionItemTypeToKnownTypes(Type knownType) 515Type itemType; 516Type typeToCheck = knownType; 528void Initialize(Type type, 529IEnumerable<Type> knownTypes, 543this.knownTypeList = new List<Type>(); 544foreach (Type knownType in knownTypes) 567void Initialize(Type type, 569IEnumerable<Type> knownTypes, 595internal static DataContract GetDataContract(DataContract declaredTypeContract, Type declaredType, Type objectType)
System\Runtime\Serialization\Json\DataContractJsonSerializerSettings.cs (1)
25public IEnumerable<Type> KnownTypes { get; set; }
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
241Type traditionalDataContractType = traditionalDataContract.GetType();
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (16)
83static Type[] serInfoCtorArgs; 161extensionDataObjectCtor = typeof(ExtensionDataObject).GetConstructor(Globals.ScanAllMembers, null, new Type[] { }, null); 245getUninitializedObjectMethod = typeof(XmlFormatReaderGenerator).GetMethod("UnsafeGetUninitializedObject", Globals.ScanAllMembers, null, new Type[] { typeof(int) }, null); 257isStartElementMethod0 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, null, new Type[] { }, null); 269isStartElementMethod2 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, null, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null); 365serializationExceptionCtor = typeof(SerializationException).GetConstructor(new Type[] { typeof(string) }); 370public static Type[] SerInfoCtorArgs 377serInfoCtorArgs = new Type[] { typeof(SerializationInfo), typeof(StreamingContext) }; 413typeHandleProperty = typeof(Type).GetProperty("TypeHandle"); 461writeAttributeStringMethod = typeof(XmlWriterDelegator).GetMethod("WriteAttributeString", Globals.ScanAllMembers, null, new Type[] { typeof(string), typeof(string), typeof(string), typeof(string) }, null); 473writeEndElementMethod = typeof(XmlWriterDelegator).GetMethod("WriteEndElement", Globals.ScanAllMembers, null, new Type[] { }, null); 521writeStartElementMethod = typeof(XmlWriterDelegator).GetMethod("WriteStartElement", Globals.ScanAllMembers, null, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null); 534writeStartElementStringMethod = typeof(XmlWriterDelegator).GetMethod("WriteStartElement", Globals.ScanAllMembers, null, new Type[] { typeof(string), typeof(string) }, null); 547parseEnumMethod = typeof(Enum).GetMethod("Parse", BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(Type), typeof(string) }, null); 560getJsonMemberNameMethod = typeof(XmlObjectSerializerReadContextComplexJson).GetMethod("GetJsonMemberName", Globals.ScanAllMembers, null, new Type[] { typeof(XmlReaderDelegator) }, null);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (25)
112Type objectType; 220void BeginMethod(CodeGenerator ilg, string methodName, Type delegateType, bool allowPrivateMemberAccess) 228Type[] paramTypes = new Type[parameters.Length]; 264Type type = objectType = classContract.UnderlyingType; 422Type memberType = dataMember.MemberType; 518LocalBuilder ReadValue(Type type, string name) 608void InternalDeserialize(LocalBuilder value, Type type, string name) 612Type declaredType = type.IsPointer ? Globals.TypeOfReflectionPointer : type; 629Type innerType = innerValue.LocalType, outerType = outerValue.LocalType; 634Type type = Globals.TypeOfNullable.MakeGenericType(innerType); 635ilg.New(type.GetConstructor(new Type[] { innerType })); 638ilg.Call(outerType.GetConstructor(new Type[] { innerType })); 643Type type = collectionContract.UnderlyingType; 644Type itemType = collectionContract.ItemType; 765void ReadSimpleDictionary(CollectionDataContract collectionContract, Type keyValueType) 767Type[] keyValueTypes = keyValueType.GetGenericArguments(); 768Type keyType = keyValueTypes[0]; 769Type valueType = keyValueTypes[1]; 772Type keyTypeOriginal = keyType; 859Type type = collectionContract.UnderlyingType; 860Type itemType = collectionContract.ItemType; 942bool TryReadPrimitiveArray(Type itemType) 949switch (Type.GetTypeCode(itemType)) 992LocalBuilder ReadCollectionItem(CollectionDataContract collectionContract, Type itemType)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (28)
149void BeginMethod(CodeGenerator ilg, string methodName, Type delegateType, bool allowPrivateMemberAccess) 156Type[] paramTypes = new Type[parameters.Length]; 165void InitArgs(Type objType) 292Type memberType = member.MemberType; 359Type itemType = collectionContract.ItemType; 404Type enumeratorType = null; 405Type[] keyValueTypes = null; 415keyValueTypes = new Type[] { Globals.TypeOfObject, Globals.TypeOfObject }; 435Type ienumeratorInterface = Globals.TypeOfIEnumerator; 439Type[] interfaceTypes = enumeratorType.GetInterfaces(); 440foreach (Type interfaceType in interfaceTypes) 457Type elementType = getCurrentMethod.ReturnType; 464ConstructorInfo dictEnumCtor = enumeratorType.GetConstructor(Globals.ScanAllMembers, null, new Type[] { Globals.TypeOfIDictionaryEnumerator }, null); 470Type ctorParam = Globals.TypeOfIEnumeratorGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(keyValueTypes)); 471ConstructorInfo dictEnumCtor = enumeratorType.GetConstructor(Globals.ScanAllMembers, null, new Type[] { ctorParam }, null); 480Type genericDictionaryKeyValueType = Globals.TypeOfKeyValue.MakeGenericType(keyValueTypes); 548bool TryWritePrimitive(Type type, LocalBuilder value, MemberInfo memberInfo, LocalBuilder arrayItemIndex, LocalBuilder name, int nameIndex) 594bool TryWritePrimitiveArray(Type type, Type itemType, LocalBuilder value, LocalBuilder itemName) 601switch (Type.GetTypeCode(itemType)) 630ilg.Call(xmlWriterArg, typeof(JsonWriterDelegator).GetMethod(writeArrayMethod, Globals.ScanAllMembers, null, new Type[] { type, typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null), value, itemName, null); 656Type memberType = memberValue.LocalType; 729void InternalSerialize(MethodInfo methodInfo, LocalBuilder memberValue, Type memberType, bool writeXsiType) 736ilg.Call(null, typeof(Type).GetMethod("GetTypeHandle"), memberValue); 740ilg.Call(typeof(RuntimeTypeHandle).GetMethod("Equals", new Type[] { typeof(RuntimeTypeHandle) })); 749Type memberType = memberValue.LocalType; 755Type innerType = memberType.GetGenericArguments()[0];
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (5)
46DataContractSerializer dataContractSerializer = new DataContractSerializer(Type.GetTypeFromHandle(declaredTypeHandle), 56List<Type> GetKnownTypesFromContext(XmlObjectSerializerContext context, IList<Type> serializerKnownTypeList) 58List<Type> knownTypesList = new List<Type>();
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
37internal IList<Type> SerializerKnownTypeList 297internal override DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type) 304internal override DataContract GetDataContractSkipValidation(int typeId, RuntimeTypeHandle typeHandle, Type type)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (14)
40internal IList<Type> SerializerKnownTypeList 56internal override bool WriteClrTypeInfo(XmlWriterDelegator xmlWriter, Type dataContractType, string clrTypeName, string clrAssemblyName) 164Type objType = obj.GetType(); 230Type dataType = dataNode.DataType; 256protected override void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType) 287static void VerifyObjectCompatibilityWithInterface(DataContract contract, object graph, Type declaredType) 289Type contractType = contract.GetType(); 301void HandleCollectionAssignedToObject(Type declaredType, ref DataContract dataContract, ref object obj, ref bool verifyKnownType) 325internal override void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle originalDeclaredTypeHandle, Type graphType) 328Type declaredType = rootTypeDataContract.UnderlyingType; 345void VerifyType(DataContract dataContract, Type declaredType) 365internal override DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type) 372internal override DataContract GetDataContractSkipValidation(int typeId, RuntimeTypeHandle typeHandle, Type type)
System\Runtime\Serialization\KnownTypeAttribute.cs (3)
11Type type; 18public KnownTypeAttribute(Type type) 34public Type Type
System\Runtime\Serialization\KnownTypeDataContractResolver.cs (4)
23public override bool TryResolveType(Type type, Type declaredType, DataContractResolver knownTypeResolver, out XmlDictionaryString typeName, out XmlDictionaryString typeNamespace) 53public override Type ResolveName(string typeName, string typeNamespace, Type declaredType, DataContractResolver knownTypeResolver)
System\Runtime\Serialization\NetDataContractSerializer.cs (11)
256Type graphType = graph.GetType(); 278Type clrType = dataContract.OriginalUnderlyingType; 311internal static void WriteClrTypeInfo(XmlWriterDelegator writer, Type dataContractType, SerializationBinder binder, string defaultClrTypeName, string defaultClrAssemblyName) 335internal static void WriteClrTypeInfo(XmlWriterDelegator writer, Type dataContractType, SerializationBinder binder, SerializationInfo serInfo) 444internal DataContract GetDataContract(Type type, ref Hashtable surrogateDataContracts) 449internal DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type, ref Hashtable surrogateDataContracts) 473static ISerializationSurrogate GetSurrogate(Type type, ISurrogateSelector surrogateSelector, StreamingContext context) 479internal static DataContract GetDataContractFromSurrogateSelector(ISurrogateSelector surrogateSelector, StreamingContext context, RuntimeTypeHandle typeHandle, Type type, ref Hashtable surrogateDataContracts) 485type = Type.GetTypeFromHandle(typeHandle); 501Type elementType = type.GetElementType(); 518internal static TypeInformation GetTypeInformation(Type type)
System\Runtime\Serialization\PrimitiveDataContract.cs (9)
28protected PrimitiveDataContract(Type type, XmlDictionaryString name, XmlDictionaryString ns) 34static internal PrimitiveDataContract GetPrimitiveDataContract(Type type) 81helper.XmlFormatWriterMethod = typeof(XmlWriterDelegator).GetMethod(WriteMethodName, Globals.ScanAllMembers, null, new Type[] { UnderlyingType, typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null); 83helper.XmlFormatWriterMethod = typeof(XmlObjectSerializerWriteContext).GetMethod(WriteMethodName, Globals.ScanAllMembers, null, new Type[] { typeof(XmlWriterDelegator), UnderlyingType, typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null); 99helper.XmlFormatContentWriterMethod = typeof(XmlWriterDelegator).GetMethod(WriteMethodName, Globals.ScanAllMembers, null, new Type[] { UnderlyingType }, null); 101helper.XmlFormatContentWriterMethod = typeof(XmlObjectSerializerWriteContext).GetMethod(WriteMethodName, Globals.ScanAllMembers, null, new Type[] { typeof(XmlWriterDelegator), UnderlyingType }, null); 152Type thisType = this.GetType(); 153Type otherType = other.GetType(); 168internal PrimitiveDataContractCriticalHelper(Type type, XmlDictionaryString name, XmlDictionaryString ns)
System\Runtime\Serialization\SchemaExporter.cs (11)
256XmlElement ExportGenericInfo(Type clrType, string elementName, string elementNs) 258Type itemType; 271Type[] genericArguments = null; 350Collection<Type> knownTypes = new Collection<Type>(); 504Type clrType = dataContract.UnderlyingType; 597internal static void GetXmlTypeInfo(Type type, out XmlQualifiedName stableName, out XmlSchemaType xsdType, out bool hasRoot) 608static bool InvokeSchemaProviderMethod(Type clrType, XmlSchemaSet schemas, out XmlQualifiedName stableName, out XmlSchemaType xsdType, out bool hasRoot) 634MethodInfo getMethod = clrType.GetMethod(methodName, /*BindingFlags.DeclaredOnly |*/ BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public, null, new Type[] { typeof(XmlSchemaSet) }, null); 698static void InvokeGetSchemaMethod(Type clrType, XmlSchemaSet schemas, XmlQualifiedName stableName) 749internal static bool IsSpecialXmlType(Type type, out XmlQualifiedName typeName, out XmlSchemaType xsdType, out bool hasRoot)
System\Runtime\Serialization\SchemaImporter.cs (6)
189Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>(); 509Type referencedType; 759Type referencedType; 1349Collection<Type> knownTypes = new Collection<Type>();
System\Runtime\Serialization\SpecialTypeDataContract.cs (4)
23public SpecialTypeDataContract(Type type) 32public SpecialTypeDataContract(Type type, XmlDictionaryString name, XmlDictionaryString ns) 51internal SpecialTypeDataContractCriticalHelper(Type type) 56internal SpecialTypeDataContractCriticalHelper(Type type, XmlDictionaryString name, XmlDictionaryString ns)
System\Runtime\Serialization\SurrogateDataContract.cs (4)
25internal SurrogateDataContract(Type type, ISerializationSurrogate serializationSurrogate) 68object GetUninitializedObject(Type objType) 85Type objType = UnderlyingType; 109internal SurrogateDataContractCriticalHelper(Type type, ISerializationSurrogate serializationSurrogate)
System\Runtime\Serialization\XmlDataContract.cs (4)
41internal XmlDataContract(Type type) 194internal XmlDataContractCriticalHelper(Type type) 311Type type = UnderlyingType; 340Type type = this.UnderlyingType;
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (20)
25writeStartElementMethod2 = typeof(XmlWriterDelegator).GetMethod("WriteStartElement", Globals.ScanAllMembers, null, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null); 38writeStartElementMethod3 = typeof(XmlWriterDelegator).GetMethod("WriteStartElement", Globals.ScanAllMembers, null, new Type[] { typeof(string), typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null); 51writeEndElementMethod = typeof(XmlWriterDelegator).GetMethod("WriteEndElement", Globals.ScanAllMembers, null, new Type[] { }, null); 64writeNamespaceDeclMethod = typeof(XmlWriterDelegator).GetMethod("WriteNamespaceDecl", Globals.ScanAllMembers, null, new Type[] { typeof(XmlDictionaryString) }, null); 103dictionaryEnumeratorCtor = Globals.TypeOfDictionaryEnumerator.GetConstructor(Globals.ScanAllMembers, null, new Type[] { Globals.TypeOfIDictionaryEnumerator }, null); 155isStartElementMethod2 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, null, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null); 168isStartElementMethod0 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, null, new Type[] { }, null); 181getUninitializedObjectMethod = typeof(XmlFormatReaderGenerator).GetMethod("UnsafeGetUninitializedObject", Globals.ScanAllMembers, null, new Type[] { typeof(int) }, null); 233serializationExceptionCtor = typeof(SerializationException).GetConstructor(new Type[] { typeof(string) }); 246extensionDataObjectCtor = typeof(ExtensionDataObject).GetConstructor(Globals.ScanAllMembers, null, new Type[] { }, null); 298storeCollectionMemberInfoMethod = typeof(XmlObjectSerializerReadContext).GetMethod("StoreCollectionMemberInfo", Globals.ScanAllMembers, null, new Type[] { typeof(object) }, null); 396internalDeserializeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("InternalDeserialize", Globals.ScanAllMembers, null, new Type[] { typeof(XmlReaderDelegator), typeof(int), typeof(RuntimeTypeHandle), typeof(string), typeof(string) }, null); 474readIfNullOrRefMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReadIfNullOrRef", Globals.ScanAllMembers, null, new Type[] { typeof(XmlReaderDelegator), typeof(Type), typeof(bool) }, null); 682createUnexpectedStateExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("CreateUnexpectedStateException", Globals.ScanAllMembers, null, new Type[] { typeof(XmlNodeType), typeof(XmlReaderDelegator) }, null); 721writeNullMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("WriteNull", Globals.ScanAllMembers, null, new Type[] { typeof(XmlWriterDelegator), typeof(Type), typeof(bool) }, null); 747incrementCollectionCountMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("IncrementCollectionCount", Globals.ScanAllMembers, null, new Type[] { typeof(XmlWriterDelegator), typeof(ICollection) }, null); 1020throwInvalidDataContractExceptionMethod = typeof(DataContract).GetMethod("ThrowInvalidDataContractException", Globals.ScanAllMembers, null, new Type[] { typeof(string), typeof(Type) }, null);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (18)
113Type objectType; 257Type type = objectType = classContract.UnderlyingType; 405Type memberType = dataMember.MemberType; 474LocalBuilder ReadValue(Type type, string name, string ns) 564void InternalDeserialize(LocalBuilder value, Type type, string name, string ns) 568Type declaredType = type.IsPointer ? Globals.TypeOfReflectionPointer : type; 584Type innerType = innerValue.LocalType, outerType = outerValue.LocalType; 589Type type = Globals.TypeOfNullable.MakeGenericType(innerType); 590ilg.New(type.GetConstructor(new Type[] { innerType })); 593ilg.Call(outerType.GetConstructor(new Type[] { innerType })); 598Type type = collectionContract.UnderlyingType; 599Type itemType = collectionContract.ItemType; 737Type type = collectionContract.UnderlyingType; 738Type itemType = collectionContract.ItemType; 797bool TryReadPrimitiveArray(Type type, Type itemType, LocalBuilder size) 804switch (Type.GetTypeCode(itemType)) 844LocalBuilder ReadCollectionItem(CollectionDataContract collectionContract, Type itemType, string itemName, string itemNs)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (25)
161void InitArgs(Type objType) 319Type memberType = member.MemberType; 396Type itemType = collectionContract.ItemType; 440Type enumeratorType = null; 441Type[] keyValueTypes = null; 451keyValueTypes = new Type[] { Globals.TypeOfObject, Globals.TypeOfObject }; 471Type ienumeratorInterface = Globals.TypeOfIEnumerator; 475Type[] interfaceTypes = enumeratorType.GetInterfaces(); 476foreach (Type interfaceType in interfaceTypes) 493Type elementType = getCurrentMethod.ReturnType; 505Type ctorParam = Globals.TypeOfIEnumeratorGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(keyValueTypes)); 506ConstructorInfo dictEnumCtor = enumeratorType.GetConstructor(Globals.ScanAllMembers, null, new Type[] { ctorParam }, null); 540bool TryWritePrimitive(Type type, LocalBuilder value, MemberInfo memberInfo, LocalBuilder arrayItemIndex, LocalBuilder ns, LocalBuilder name, int nameIndex) 586bool TryWritePrimitiveArray(Type type, Type itemType, LocalBuilder value, LocalBuilder itemName, LocalBuilder itemNamespace) 593switch (Type.GetTypeCode(itemType)) 625ilg.Call(typeof(XmlWriterDelegator).GetMethod(writeArrayMethod, Globals.ScanAllMembers, null, new Type[] { type, typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null)); 633Type memberType = memberValue.LocalType; 706void InternalSerialize(MethodInfo methodInfo, LocalBuilder memberValue, Type memberType, bool writeXsiType) 713ilg.Call(null, typeof(Type).GetMethod("GetTypeHandle"), memberValue); 717ilg.Call(typeof(RuntimeTypeHandle).GetMethod("Equals", new Type[] { typeof(RuntimeTypeHandle) })); 727Type memberType = memberValue.LocalType; 733Type innerType = memberType.GetGenericArguments()[0]; 753bool NeedsPrefix(Type type, XmlDictionaryString ns) 758void WriteStartElement(Type type, XmlDictionaryString ns, LocalBuilder namespaceLocal, LocalBuilder nameLocal, int nameIndex)
System\Runtime\Serialization\XmlObjectSerializer.cs (4)
416static string GetTypeInfo(Type type) 421static string GetTypeInfoError(string errorMessage, Type type, Exception innerException) 428internal virtual Type GetSerializeType(object graph) 433internal virtual Type GetDeserializeType()
System\Runtime\Serialization\XmlObjectSerializerContext.cs (19)
26protected IList<Type> serializerKnownTypeList; 160internal DataContract GetDataContract(Type type) 165internal virtual DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type) 177internal virtual DataContract GetDataContractSkipValidation(int typeId, RuntimeTypeHandle typeHandle, Type type) 202internal virtual void CheckIfTypeSerializable(Type memberType, bool isMemberTypeSerializable) 208internal virtual Type GetSurrogatedType(Type type) 236internal static DataContractDictionary GetDataContractsForKnownTypes(IList<Type> knownTypeList) 240Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 243Type knownType = knownTypeList[i]; 252internal bool IsKnownType(DataContract dataContract, DataContractDictionary knownDataContracts, Type declaredType) 270internal bool IsKnownType(DataContract dataContract, Type declaredType) 290DataContract ResolveDataContractFromDataContractResolver(XmlQualifiedName typeName, Type declaredType) 297Type dataContractType = DataContractResolver.ResolveName(typeName.Name, typeName.Namespace, declaredType, KnownTypeResolver); 308internal Type ResolveNameFromKnownTypes(XmlQualifiedName typeName) 321protected DataContract ResolveDataContractFromKnownTypes(string typeName, string typeNs, DataContract memberTypeContract, Type declaredType)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (13)
82internal static void ThrowNullValueReturnedForGetOnlyCollectionException(Type type) 91internal static void ThrowArrayExceededSizeException(int arraySize, Type type) 129return InternalDeserialize(xmlReader, name, ns, Type.GetTypeFromHandle(declaredTypeHandle), ref dataContract); 132internal virtual object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, string name, string ns) 138internal virtual object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, string name, string ns) 145protected bool TryHandleNullOrRef(XmlReaderDelegator reader, Type declaredType, string name, string ns, ref object retObj) 170protected object InternalDeserialize(XmlReaderDelegator reader, string name, string ns, Type declaredType, ref DataContract dataContract) 325public string ReadIfNullOrRef(XmlReaderDelegator xmlReader, Type memberType, bool isMemberTypeSerializable) 408public object GetExistingObject(string id, Type type, string name, string ns) 444object DeserializeFromExtensionData(IDataNode dataNode, Type type, string name, string ns) 563public SerializationInfo ReadSerializationInfo(XmlReaderDelegator xmlReader, Type type) 757Type valueType = xmlReader.ValueType; 785IDataNode ReadUnknownPrimitiveData(XmlReaderDelegator xmlReader, Type type, string dataContractName, string dataContractNamespace)
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (23)
88internal override DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type) 116return InternalDeserializeWithSurrogate(xmlReader, Type.GetTypeFromHandle(declaredTypeHandle), null /*surrogateDataContract*/, name, ns); 120return InternalDeserializeInSharedTypeMode(xmlReader, declaredTypeID, Type.GetTypeFromHandle(declaredTypeHandle), name, ns); 124internal override object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, string name, string ns) 139internal override object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, string name, string ns) 154object InternalDeserializeInSharedTypeMode(XmlReaderDelegator xmlReader, int declaredTypeID, Type declaredType, string name, string ns) 166Type type; 192object InternalDeserializeWithSurrogate(XmlReaderDelegator xmlReader, Type declaredType, DataContract surrogateDataContract, string name, string ns) 220Type ResolveDataContractTypeInSharedTypeMode(string assemblyName, string typeName, out Assembly assembly) 223Type type = null; 264type = Type.GetType(typeName, XmlObjectSerializerReadContextComplex.ResolveSimpleAssemblyName, new TopLevelAssemblyTypeResolver(assembly).ResolveType, false /* throwOnError */); 293DataContract ResolveDataContractInSharedTypeMode(string assemblyName, string typeName, out Assembly assembly, out Type type) 315Type type; 326bool CheckIfTypeSerializableForSharedTypeMode(Type memberType) 333internal override void CheckIfTypeSerializable(Type memberType, bool isMemberTypeSerializable) 356internal override Type GetSurrogatedType(Type type) 365Type surrogateType = DataContractSerializer.GetSurrogatedType(dataContractSurrogate, type); 415static void CheckTypeForwardedTo(Assembly sourceAssembly, Assembly destinationAssembly, Type resolvedType) 452public Type ResolveType(Assembly assembly, string simpleTypeName, bool ignoreCase) 464Type type; 465public XmlObjectDataContractTypeInfo(Assembly assembly, Type type) 479public Type Type
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (23)
121Type declaredType = Globals.TypeOfObject; 122SerializeWithXsiType(xmlWriter, obj, Type.GetTypeHandle(obj), null/*type*/, -1, declaredType.TypeHandle, declaredType); 131RuntimeTypeHandle objTypeHandle = Type.GetTypeHandle(obj); 141SerializeWithXsiType(xmlWriter, obj, objTypeHandle, null /*type*/, declaredTypeID, declaredTypeHandle, Type.GetTypeFromHandle(declaredTypeHandle)); 162internal virtual void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle originalDeclaredTypeHandle, Type graphType) 165Type declaredType = rootTypeDataContract.OriginalUnderlyingType; 181protected virtual void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType) 198objectType = Type.GetTypeFromHandle(objectTypeHandle); 250protected void SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType) 279internal virtual bool WriteClrTypeInfo(XmlWriterDelegator xmlWriter, Type dataContractType, string clrTypeName, string clrAssemblyName) 284internal virtual bool WriteClrTypeInfo(XmlWriterDelegator xmlWriter, Type dataContractType, SerializationInfo serInfo) 396public void WriteNull(XmlWriterDelegator xmlWriter, Type memberType, bool isMemberTypeSerializable) 402internal void WriteNull(XmlWriterDelegator xmlWriter, Type memberType, bool isMemberTypeSerializable, XmlDictionaryString name, XmlDictionaryString ns) 445public static void ThrowRequiredMemberMustBeEmitted(string memberName, Type type) 504Type objType = obj.GetType(); 517internal void WriteSerializationInfo(XmlWriterDelegator xmlWriter, Type objType, SerializationInfo serInfo) 600Type dataType = dataNode.DataType; 634Type declaredType = (dataNode.DataContractName == null) ? o.GetType() : Globals.TypeOfObject; 731void WriteResolvedTypeInfo(XmlWriterDelegator writer, Type objectType, Type declaredType) 740bool ResolveType(Type objectType, Type declaredType, out XmlDictionaryString typeName, out XmlDictionaryString typeNamespace)
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (14)
63internal override DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type) 105internal override DataContract GetDataContractSkipValidation(int typeId, RuntimeTypeHandle typeHandle, Type type) 136internal override bool WriteClrTypeInfo(XmlWriterDelegator xmlWriter, Type dataContractType, string clrTypeName, string clrAssemblyName) 146internal override bool WriteClrTypeInfo(XmlWriterDelegator xmlWriter, Type dataContractType, SerializationInfo serInfo) 278bool CheckIfTypeSerializableForSharedTypeMode(Type memberType) 285internal override void CheckIfTypeSerializable(Type memberType, bool isMemberTypeSerializable) 308internal override Type GetSurrogatedType(Type type) 317Type surrogateType = DataContractSerializer.GetSurrogatedType(dataContractSurrogate, type); 332RuntimeTypeHandle objTypeHandle = isDeclaredType ? declaredTypeHandle : Type.GetTypeHandle(obj); 335Type objType = Type.GetTypeFromHandle(objTypeHandle); 336Type declaredType = GetSurrogatedType(Type.GetTypeFromHandle(declaredTypeHandle));
System\Runtime\Serialization\XmlReaderDelegator.cs (7)
218Exception CreateInvalidPrimitiveTypeException(Type type) 225public object ReadElementContentAsAnyType(Type valueType) 233internal object ReadContentAsAnyType(Type valueType) 235switch (Type.GetTypeCode(valueType)) 289internal IDataNode ReadExtensionData(Type valueType) 291switch (Type.GetTypeCode(valueType)) 1156internal Type ValueType { get { return reader.ValueType; } }
System\Runtime\Serialization\XmlSerializableReader.cs (2)
85public override Type ValueType { get { return InnerReader.ValueType; } } 122public override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) { return InnerReader.ReadContentAs(returnType, namespaceResolver); }
System\Runtime\Serialization\XmlWriterDelegator.cs (5)
279Exception CreateInvalidPrimitiveTypeException(Type type) 289internal void WriteAnyType(object value, Type valueType) 292switch (Type.GetTypeCode(valueType)) 368Type valueType = dataNode.DataType; 369switch (Type.GetTypeCode(valueType))
System\Runtime\Serialization\XPathQueryGenerator.cs (2)
18public static string CreateFromDataContractSerializer(Type type, MemberInfo[] pathToMember, out XmlNamespaceManager namespaces) 24public static string CreateFromDataContractSerializer(Type type, MemberInfo[] pathToMember, StringBuilder rootElementXpath, out XmlNamespaceManager namespaces)
System\Runtime\Serialization\XsdDataContractExporter.cs (17)
110Type[] types = assembly.GetTypes(); 130public void Export(ICollection<Type> types) 140foreach (Type type in types) 162public void Export(Type type) 188public XmlQualifiedName GetSchemaTypeName(Type type) 201public XmlSchemaType GetSchemaType(Type type) 214public XmlQualifiedName GetRootElementName(Type type) 231Type GetSurrogatedType(Type type) 239void CheckAndAddType(Type type) 246void AddType(Type type) 262Collection<Type> knownTypes = Options.KnownTypes; 268Type type = knownTypes[i]; 290Type[] types = assembly.GetTypes(); 314public bool CanExport(ICollection<Type> types) 322foreach (Type type in types) 348public bool CanExport(Type type)
System\Xml\ValueHandle.cs (1)
170public Type ToType()
System\Xml\XmlBaseReader.cs (3)
1790public override object ReadContentAs(Type type, IXmlNamespaceResolver namespaceResolver) 1870public override Type ValueType 1876Type type = node.Value.ToType();
System\Xml\XmlBinaryReader.cs (1)
1168public override bool IsStartArray(out Type type)
System\Xml\XmlBinaryWriter.cs (1)
1145Type type = reader.ValueType;
System\Xml\XmlDictionaryReader.cs (4)
619public override object ReadContentAs(Type type, IXmlNamespaceResolver namespaceResolver) 1051public virtual bool IsStartArray(out Type type) 1681public override Type ValueType 1730public override object ReadContentAs(Type type, IXmlNamespaceResolver namespaceResolver)
System\Xml\XmlDictionaryWriter.cs (4)
794void WriteArrayNode(XmlDictionaryReader reader, string prefix, string localName, string namespaceUri, Type type) 823void WriteArrayNode(XmlDictionaryReader reader, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Type type) 852void WriteArrayNode(XmlDictionaryReader reader, Type type) 896Type type;
System\Xml\XmlMtomReader.cs (3)
721public override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) 943public override Type ValueType 1679public override Type ValueType
System\Xml\XmlMtomWriter.cs (1)
617Type type = reader.ValueType;
System.Security (50)
system\security\cryptography\xml\keyinfo.cs (1)
130public IEnumerator GetEnumerator(Type requestedObjectType) {
system\security\cryptography\xml\signedxml.cs (4)
975Type ta = Type.GetType(signatureDescription.KeyAlgorithm); 1057private static bool IsKeyTheCorrectAlgorithm(AsymmetricAlgorithm key, Type expectedType) 1059Type actualType = key.GetType();
system\security\cryptography\xml\transform.cs (45)
72internal Stream TransformToOctetStream(Object inputObject, Type inputType, XmlResolver resolver, string baseUri) { 249public abstract Type[] InputTypes { 253public abstract Type[] OutputTypes { 257internal bool AcceptsType(Type inputType) { 302public abstract Object GetOutput(Type type); 369private Type[] _inputTypes = { typeof(Stream), typeof(XmlDocument), typeof(XmlNodeList) }; 370private Type[] _outputTypes = { typeof(Stream) }; 383public override Type[] InputTypes { 387public override Type[] OutputTypes { 422public override Object GetOutput(Type type) { 448private Type[] _inputTypes = { typeof(Stream), typeof(XmlDocument), typeof(XmlNodeList) }; 449private Type[] _outputTypes = { typeof(Stream) }; 471public override Type[] InputTypes { 475public override Type[] OutputTypes { 532public override Object GetOutput(Type type) { 557private Type[] _inputTypes = { typeof(Stream), typeof(XmlNodeList), typeof(XmlDocument) }; 558private Type[] _outputTypes = { typeof(Stream) }; 565public override Type[] InputTypes { 569public override Type[] OutputTypes { 651public override Object GetOutput(Type type) { 662private Type[] _inputTypes = { typeof(Stream), typeof(XmlNodeList), typeof(XmlDocument) }; 663private Type[] _outputTypes = { typeof(XmlNodeList) }; 672public override Type[] InputTypes { 676public override Type[] OutputTypes { 809public override Object GetOutput(Type type) { 818private Type[] _inputTypes = { typeof(Stream), typeof(XmlDocument), typeof(XmlNodeList) }; 819private Type[] _outputTypes = { typeof(Stream) }; 834public override Type[] InputTypes { 840public override Type[] OutputTypes { 931public override Object GetOutput(Type type) { 941private Type[] _inputTypes = { typeof(Stream), typeof(XmlNodeList), typeof(XmlDocument) }; 942private Type[] _outputTypes = { typeof(XmlNodeList), typeof(XmlDocument) }; 963public override Type[] InputTypes { 967public override Type[] OutputTypes { 1079public override Object GetOutput(Type type) { 1106private Type[] m_inputTypes = { typeof(Stream), typeof(XmlDocument) }; 1107private Type[] m_outputTypes = { typeof(XmlDocument) }; 1154public override Type[] InputTypes { 1158public override Type[] OutputTypes { 1320public override Object GetOutput(Type type) { 1330private Type[] inputTypes = { typeof(XmlDocument) }; 1331private Type[] outputTypes = { typeof(XmlDocument) }; 1342public override Type[] InputTypes { 1346public override Type[] OutputTypes { 1426public override object GetOutput(Type type) {
System.ServiceModel (1036)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (2)
86Type appContextType = typeof(object).Assembly.GetType("System.AppContext"); 94new Type[] { typeof(string), typeof(bool).MakeByRefType() },
System\ServiceModel\Activation\Configuration\SecurityIdentifierConverter.cs (3)
15public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 25public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 46public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Activation\SystemWebHelper.cs (15)
16static Type typeOfRoles; 17static Type typeOfMembership; 18static Type typeOfWebContext; 22static Type TypeOfRoles 34static Type TypeOfMembership 46static Type TypeOfWebContext 58static Type GetSystemWebType(string typeName) 61return Type.GetType(typeName + ", " + AssemblyRef.SystemWeb, false); 73Type roleType = TypeOfRoles; 116Type roleType = TypeOfRoles; 129PropertyInfo itemPropertyInfo = roleProviderCollection.GetType().GetProperty("Item", new Type[] { typeof(string) }); 152Type membershipType = TypeOfMembership; 180Type membershipType = TypeOfMembership; 191PropertyInfo itemPropertyInfo = membershipProviderCollection.GetType().GetProperty("Item", new Type[] { typeof(string) }); 214Type webContextType = TypeOfWebContext;
System\ServiceModel\Administration\AdministrationHelpers.cs (3)
15public static Type GetServiceModelBaseType(Type type) 17Type baseType = type;
System\ServiceModel\Administration\AppDomainInstanceProvider.cs (1)
89Type type = traceListener.GetType();
System\ServiceModel\Administration\EndpointInstanceProvider.cs (1)
145Type elementType = AdministrationHelpers.GetServiceModelBaseType(bindingElement.GetType());
System\ServiceModel\Administration\ServiceInstanceProvider.cs (1)
207foreach (Type claimType in specificBehavior.SecureConversationAuthentication.SecurityContextClaimTypes)
System\ServiceModel\ChannelFactory.cs (5)
523Type channelType; 525Type callbackType; 528protected ChannelFactory(Type channelType) 638internal Type CallbackType 854Type implementationType = implementation.GetType();
System\ServiceModel\Channels\AddressHeader.cs (3)
36Type type = GetObjectType(value); 64static Type GetObjectType(object value) 253Type type = (objectToSerialize == null) ? typeof(object) : objectToSerialize.GetType();
System\ServiceModel\Channels\BindingElementCollection.cs (1)
73public bool Contains(Type bindingElementType)
System\ServiceModel\Channels\ChannelDemuxer.cs (4)
25Dictionary<Type, TypedChannelDemuxer> typeDemuxers; 33this.typeDemuxers = new Dictionary<Type, TypedChannelDemuxer>(); 72TypedChannelDemuxer CreateTypedDemuxer(Type channelType, BindingContext context) 86TypedChannelDemuxer GetTypedDemuxer(Type channelType, BindingContext context)
System\ServiceModel\Channels\ChannelManagerBase.cs (1)
53internal Exception CreateChannelTypeNotSupportedException(Type type)
System\ServiceModel\Channels\ChannelRequirements.cs (28)
61public static Type[] ComputeRequiredChannels(ref ChannelRequirements requirements) 68return new Type[] { 74return new Type[] { 79return new Type[] { 89return new Type[] { 97return new Type[] { 103return new Type[] { 114return new Type[] { 124return new Type[] { 131return new Type[] { 143return new Type[] { 151return new Type[] { 157return new Type[] { 168return new Type[] { 178return new Type[] { 185return new Type[] { 195public static bool IsSessionful(Type channelType) 204public static bool IsOneWay(Type channelType) 212public static bool IsRequestReply(Type channelType) 220public static bool IsDuplex(Type channelType) 226public static Exception CantCreateListenerException(IEnumerable<Type> supportedChannels, IEnumerable<Type> requiredChannels, string bindingName) 244public static Exception CantCreateChannelException(IEnumerable<Type> supportedChannels, IEnumerable<Type> requiredChannels, string bindingName) 261public static Exception BindingContractMismatchException(IEnumerable<Type> supportedChannels, IEnumerable<Type> requiredChannels, 271foreach (Type channelType in requiredChannels) 314foreach (Type channelType in supportedChannels)
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (1)
130Type type = typeof(TChannel);
System\ServiceModel\Channels\CommunicationObject.cs (1)
846protected virtual Type GetCommunicationObjectType()
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
465Type channelType = typeof(TChannel);
System\ServiceModel\Channels\HttpChannelHelpers.cs (3)
3410internal static Type GetTypeFromAssembliesInCurrentDomain(string typeString) 3412Type type = Type.GetType(typeString, false);
System\ServiceModel\Channels\HttpHeaderInfo.cs (2)
34private static readonly Type httpRequestHeaderType = typeof(HttpRequestHeader); 35private static readonly Type httpResponseHeaderType = typeof(HttpResponseHeader);
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (12)
28static readonly Type delegatingHandlerType = typeof(DelegatingHandler); 30Type[] httpMessageHandlers; 46public HttpMessageHandlerFactory(params Type[] handlers) 61Type handler = handlers[cnt]; 76ConstructorInfo ctorInfo = handler.GetConstructor(Type.EmptyTypes); 148Type factoryType = HttpChannelUtilities.GetTypeFromAssembliesInCurrentDomain(configElement.Type); 173Type[] handlerList = new Type[configElement.Handlers.Count]; 176Type handlerType = HttpChannelUtilities.GetTypeFromAssembliesInCurrentDomain(configElement.Handlers[i].Type); 203Type thisType = this.GetType(); 267instances[cnt] = (DelegatingHandler)this.handlerCtors[cnt].Invoke(Type.EmptyTypes); 301Type t = m.DeclaringType;
System\ServiceModel\Channels\Message.cs (1)
150static Type GetObjectType(object value)
System\ServiceModel\Channels\MessageEncodingBindingElementImporter.cs (1)
40Type elementType = messageEncodingBindingElement.GetType();
System\ServiceModel\Channels\PeerNodeImplementation.cs (5)
77Dictionary<Type, object> serviceHandlers; 1348Dictionary<Type, object> services = serviceHandlers; 1351services = new Dictionary<Type, object>(); 1619public void SetServiceHandlers(Dictionary<Type, object> services) 1687public Type channelType;
System\ServiceModel\Channels\PeerService.cs (2)
57Dictionary<Type, object> services) 62Dictionary<Type, object> services,
System\ServiceModel\Channels\RequestReplyCorrelator.cs (4)
26Type stateType = typeof(T); 46Type stateType = typeof(T); 244internal Type StateType; 246internal Key(UniqueId messageId, Type stateType)
System\ServiceModel\Channels\ServerReliableChannelBinder.cs (2)
189Type type = typeof(TChannel); 224Type type = typeof(TChannel);
System\ServiceModel\Channels\ServiceChannel.cs (1)
450internal bool CanCastTo(Type t)
System\ServiceModel\Channels\ServiceChannelFactory.cs (9)
125Type[] requiredChannels = ChannelRequirements.ComputeRequiredChannels(ref requirements); 136foreach (Type type in requiredChannels) 183foreach (Type type in requiredChannels) 206Dictionary<Type, byte> supportedChannels = new Dictionary<Type, byte>(); 361public object CreateChannel(Type channelType, EndpointAddress address) 366public object CreateChannel(Type channelType, EndpointAddress address, Uri via) 396internal static object CreateProxy(Type interfaceType, Type proxiedType, MessageDirection direction, ServiceChannel serviceChannel)
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\Channels\TransportDefaults.cs (2)
424internal static Type ResolverType 429internal static Type ResolverBindingElementType
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (4)
75internal static void GenerateWin32ManifestFile(Type[] aTypes, String strAssemblyManifestFileName, String assemblyName) 118static void AsmCreateWin32ManifestFile(Stream s, Type[] aTypes) 126static void WriteTypes(Stream s, Type[] aTypes, int offset) 135foreach (Type t in aTypes)
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceRecords.cs (3)
334Type contractType = contract.ContractType; 379public static void Trace(TraceEventType type, int v, string description, Type contractType, Binding binding) 391public static void Trace(TraceEventType type, int traceCode, string description, Uri address, Type contractType)
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (1)
190Type[] types = this.info.GetTypes(g);
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (6)
69ContractDescription CreateContractDescriptionInternal(Guid iid, Type type) 205Type knownType; 289Type returnType, 304Type parameterType = TypeLoader.GetParameterType(parameter); 349MessagePartDescription CreateMessagePartDescription(Type bodyType, 394Type type;
System\ServiceModel\ComIntegration\ComPlusTypeValidator.cs (1)
38public static bool IsValidParameter(Type type, ICustomAttributeProvider attributeProvider, bool allowReferences)
System\ServiceModel\ComIntegration\DispatchProxy.cs (5)
77public Type type; 127msgDesc.Body.ReturnValue.Type = Type.GetType(msgDesc.Body.ReturnValue.BaseType); 151paramInfo.type = Type.GetType(param.BaseType, true); 356object FetchVariant(IntPtr baseArray, int index, Type type) 392object FetchVariants(IntPtr baseArray, int index, Type type)
System\ServiceModel\ComIntegration\EmitterCache.cs (13)
43Dictionary<Type, Type> interfaceToClassMap; 51interfaceToClassMap = new Dictionary<Type, Type>(); 53private Type[] GetParameterTypes(MethodInfo mInfo) 56Type[] typeArray = new Type[parameters.Length]; 66internal Type FindOrCreateType(Type interfaceType) 72Type classType = null; 79typeof(MarshalByRefObject), new Type[] { interfaceType }); 80Type[] ctorParams = new Type[] { typeof(ClassInterfaceType) };
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\MonikerProxyAttribute.cs (2)
13public override MarshalByRefObject CreateInstance(Type serverType) 22MarshalByRefObject ICustomFactory.CreateInstance(Type serverType)
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (9)
276public Type GetDataContractType(Type type) 284public object GetObjectToSerialize(object obj, Type targetType) 303public object GetDeserializedObject(object obj, Type targetType) 323public object GetCustomDataToExport(MemberInfo memberInfo, Type dataContractType) 328public object GetCustomDataToExport(Type clrType, Type dataContractType) 333public void GetKnownCustomDataTypes(Collection<Type> customDataTypes) 338public Type GetReferencedTypeOnImport(string typeName, string typeNamespace, object customData)
System\ServiceModel\ComIntegration\ServiceInfo.cs (9)
59Type managedType; 62Dictionary<Guid, List<Type>> udts; 97this.udts = new Dictionary<Guid, List<Type>>(); 230public Type ServiceType 322internal Type[] GetTypes(Guid assemblyId) 324List<Type> ret = null; 327return new Type[0]; 333internal void AddUdt(Type udt, Guid assemblyId) 336udts[assemblyId] = new List<Type>();
System\ServiceModel\ComIntegration\TearOffProxy.cs (1)
20internal TearOffProxy(ICreateServiceChannel serviceChannelCreator, Type proxiedType)
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\ComIntegration\TypedServiceChannelBuilder.cs (2)
25Type contractType = null; 306Type proxiedType = EmitterCache.TypeEmitter.FindOrCreateType(contractType);
System\ServiceModel\Configuration\BasicHttpBindingElement.cs (1)
23protected override Type BindingElementType
System\ServiceModel\Configuration\BasicHttpContextBindingElement.cs (1)
27protected override Type BindingElementType
System\ServiceModel\Configuration\BasicHttpsBindingElement.cs (1)
39protected override Type BindingElementType
System\ServiceModel\Configuration\BehaviorExtensionElement.cs (1)
14public abstract Type BehaviorType { get; }
System\ServiceModel\Configuration\BinaryMessageEncodingElement.cs (1)
16public override Type BindingElementType
System\ServiceModel\Configuration\BindingCollectionElement.cs (4)
33public abstract Type BindingType 52Type extensionSectionType = this.GetType(); 77Type collectionElementType = Type.GetType(collectionElement.Type, false);
System\ServiceModel\Configuration\BindingElementExtensionElement.cs (1)
25public abstract Type BindingElementType
System\ServiceModel\Configuration\BindingsSection.cs (2)
281Type extensionType = Type.GetType(bindingExtension.Type, false);
System\ServiceModel\Configuration\CallbackDebugElement.cs (1)
37public override Type BehaviorType
System\ServiceModel\Configuration\CallbackTimeoutsElement.cs (1)
43public override Type BehaviorType
System\ServiceModel\Configuration\ClearBehaviorElement.cs (1)
16public override Type BehaviorType
System\ServiceModel\Configuration\ClientCredentialsElement.cs (3)
120Type credentialsType = System.Type.GetType(this.Type, true); 173public override Type BehaviorType
System\ServiceModel\Configuration\ClientViaElement.cs (1)
37public override Type BehaviorType
System\ServiceModel\Configuration\CompositeDuplexElement.cs (1)
28public override Type BindingElementType
System\ServiceModel\Configuration\ContextBindingElementExtensionElement.cs (1)
31public override Type BindingElementType
System\ServiceModel\Configuration\CustomBindingCollectionElement.cs (2)
24public override Type BindingType 63BindingElementExtensionElement bindingElementExtension = Activator.CreateInstance(Type.GetType(element.Type, true)) as BindingElementExtensionElement;
System\ServiceModel\Configuration\CustomBindingElement.cs (2)
148bool CanAddExclusiveElement(Type exclusiveType, Type bindingElementType, ref BindingElementExtensionElement existingElement)
System\ServiceModel\Configuration\DataContractSerializerElement.cs (1)
51public override Type BehaviorType
System\ServiceModel\Configuration\DelegatingHandlerElement.cs (1)
22internal DelegatingHandlerElement(Type handlerType)
System\ServiceModel\Configuration\DispatcherSynchronizationElement.cs (1)
36public override Type BehaviorType
System\ServiceModel\Configuration\EncodingConverter.cs (3)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 25public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 59public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Configuration\EndpointCollectionElement.cs (4)
33public abstract Type EndpointType 54Type extensionSectionType = this.GetType(); 79Type collectionElementType = Type.GetType(collectionElement.Type, false);
System\ServiceModel\Configuration\ExtensionElementCollection.cs (3)
91Type elementType = Type.GetType(element.Type, false); 92if (null != elementType && elementType.Equals(Type.GetType(extension.Type, false)))
System\ServiceModel\Configuration\ExtensionsSection.cs (3)
141internal static ExtensionElementCollection LookupAssociatedCollection(Type extensionType, ContextInformation evaluationContext, out string collectionName) 151internal static ExtensionElementCollection UnsafeLookupAssociatedCollection(Type extensionType, ContextInformation evaluationContext, out string collectionName) 158static string GetExtensionType(Type extensionType)
System\ServiceModel\Configuration\HttpMessageHandlerFactoryValidator.cs (1)
12public override bool CanValidate(Type type)
System\ServiceModel\Configuration\HttpsTransportElement.cs (1)
23public override Type BindingElementType
System\ServiceModel\Configuration\HttpTransportElement.cs (1)
51public override Type BindingElementType
System\ServiceModel\Configuration\IssuedTokenServiceElement.cs (4)
161Type type = System.Type.GetType(this.CustomCertificateValidatorType, true); 171Type type = System.Type.GetType(this.SamlSerializerType, true);
System\ServiceModel\Configuration\MessageSecurityVersionConverter.cs (3)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 25public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 72public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Configuration\MessageVersionConverter.cs (3)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 25public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 75public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Configuration\MexBindingElement.cs (1)
24protected override Type BindingElementType
System\ServiceModel\Configuration\MsmqIntegrationBindingElement.cs (1)
26protected override Type BindingElementType
System\ServiceModel\Configuration\MsmqIntegrationElement.cs (1)
14public override Type BindingElementType
System\ServiceModel\Configuration\MsmqTransportElement.cs (1)
36public override Type BindingElementType
System\ServiceModel\Configuration\MtomMessageEncodingElement.cs (1)
32public override Type BindingElementType
System\ServiceModel\Configuration\NamedPipeTransportElement.cs (1)
16public override Type BindingElementType
System\ServiceModel\Configuration\NetHttpBindingElement.cs (1)
57protected override Type BindingElementType
System\ServiceModel\Configuration\NetHttpsBindingElement.cs (1)
57protected override Type BindingElementType
System\ServiceModel\Configuration\NetMsmqBindingElement.cs (1)
26protected override Type BindingElementType
System\ServiceModel\Configuration\NetNamedPipeBindingElement.cs (1)
27protected override Type BindingElementType
System\ServiceModel\Configuration\NetPeerTcpBindingElement.cs (1)
27protected override Type BindingElementType
System\ServiceModel\Configuration\NetTcpBindingElement.cs (1)
28protected override Type BindingElementType
System\ServiceModel\Configuration\NetTcpContextBindingElement.cs (1)
56protected override Type BindingElementType
System\ServiceModel\Configuration\OneWayElement.cs (1)
17public override Type BindingElementType
System\ServiceModel\Configuration\PeerCustomResolverElement.cs (2)
79Type myResolverType = Type.GetType(this.ResolverType, false);
System\ServiceModel\Configuration\PeerTransportElement.cs (1)
19public override Type BindingElementType
System\ServiceModel\Configuration\PeerTransportListenAddressConverter.cs (3)
17public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 26public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 44public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Configuration\PeerTransportListenAddressValidator.cs (1)
18public override bool CanValidate(Type type)
System\ServiceModel\Configuration\PnrpPeerResolverElement.cs (1)
16public override Type BindingElementType
System\ServiceModel\Configuration\PolicyImporterElement.cs (1)
22public PolicyImporterElement(Type type)
System\ServiceModel\Configuration\PolicyVersionConverter.cs (3)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 25public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 60public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Configuration\PrivacyNoticeElement.cs (1)
28public override Type BindingElementType
System\ServiceModel\Configuration\ReliableMessagingVersionConverter.cs (3)
14public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 23public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 53public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Configuration\ReliableSessionElement.cs (1)
28public override Type BindingElementType
System\ServiceModel\Configuration\RemoveBehaviorElement.cs (1)
35public override Type BehaviorType
System\ServiceModel\Configuration\SecureConversationServiceElement.cs (2)
57Type type = System.Type.GetType(this.SecurityStateEncoderType, true);
System\ServiceModel\Configuration\SecurityAlgorithmSuiteConverter.cs (3)
15public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 24public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 101public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Configuration\SecurityElementBase.cs (1)
66public override Type BindingElementType
System\ServiceModel\Configuration\ServiceActivationElement.cs (1)
21public override bool CanValidate(Type type)
System\ServiceModel\Configuration\ServiceAuthenticationElement.cs (3)
46public override Type BehaviorType 57Type type = Type.GetType(serviceAuthenticationManagerType, true);
System\ServiceModel\Configuration\ServiceAuthorizationElement.cs (5)
122Type type = Type.GetType(serviceAuthorizationManagerType, true); 136Type type = Type.GetType(authorizationPolicies[i].PolicyType, true); 149public override Type BehaviorType
System\ServiceModel\Configuration\ServiceCredentialsElement.cs (3)
123Type credentialsType = System.Type.GetType(this.Type, true); 182public override Type BehaviorType
System\ServiceModel\Configuration\ServiceDebugElement.cs (1)
119public override Type BehaviorType
System\ServiceModel\Configuration\ServiceMetadataEndpointElement.cs (1)
20protected internal override Type EndpointType
System\ServiceModel\Configuration\ServiceMetadataPublishingElement.cs (1)
130public override Type BehaviorType
System\ServiceModel\Configuration\ServiceModelEnumValidator.cs (3)
15Type enumHelperType; 18public ServiceModelEnumValidator(Type enumHelperType) 24public override bool CanValidate(Type type)
System\ServiceModel\Configuration\ServiceModelEnumValidatorAttribute.cs (3)
13Type enumHelperType; 15public ServiceModelEnumValidatorAttribute(Type enumHelperType) 20public Type EnumHelperType
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (9)
40public TServiceModelExtensionElement this[Type extensionType] 165Type elementType = element.GetType(); 229internal Type CollectionElementBaseType 243public bool ContainsKey(Type elementType) 321Type elementType; 375Type GetExtensionType(ContextInformation evaluationContext, string name) 381Type elementType = Type.GetType(element.Type, false); 421Type childExtensionElementType = childExtensionElement.GetType();
System\ServiceModel\Configuration\ServiceModelExtensionElement.cs (7)
29Type thisType; 59Type extensionType = Type.GetType(extensionTypeName, false); 131Type ThisType 191Type extensionSectionType = ThisType; 248Type collectionElementType = Type.GetType(collectionElement.Type, false);
System\ServiceModel\Configuration\ServiceSecurityAuditElement.cs (1)
72public override Type BehaviorType
System\ServiceModel\Configuration\ServiceThrottlingElement.cs (1)
76public override Type BehaviorType
System\ServiceModel\Configuration\ServiceTimeoutsElement.cs (1)
41public override Type BehaviorType
System\ServiceModel\Configuration\SessionIdTypeConverter.cs (2)
15public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cultureInfo, object value, Type type) 57public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\ServiceModel\Configuration\SslStreamSecurityElement.cs (1)
53public override Type BindingElementType
System\ServiceModel\Configuration\StandardBindingCollectionElement.cs (1)
24public override Type BindingType
System\ServiceModel\Configuration\StandardBindingElement.cs (1)
33protected abstract Type BindingElementType
System\ServiceModel\Configuration\StandardEndpointCollectionElement.cs (1)
25public override Type EndpointType
System\ServiceModel\Configuration\StandardEndpointElement.cs (1)
25protected internal abstract Type EndpointType
System\ServiceModel\Configuration\StandardEndpointsSection.cs (2)
182Type extensionType = Type.GetType(endpointExtension.Type, false);
System\ServiceModel\Configuration\StandardRuntimeEnumValidator.cs (3)
13Type enumType; 15public StandardRuntimeEnumValidator(Type enumType) 20public override bool CanValidate(Type type)
System\ServiceModel\Configuration\StandardRuntimeEnumValidatorAttribute.cs (3)
13Type enumType; 15public StandardRuntimeEnumValidatorAttribute(Type enumType) 20public Type EnumType
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidator.cs (1)
18public override bool CanValidate(Type type)
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidatorAttribute.cs (6)
13Type enumType; 14Type validatorType; 16public StandardRuntimeFlagEnumValidatorAttribute(Type enumType) 22public Type EnumType 38internal static void ValidateFlagEnumType(Type value) 91validatorType = typeof(StandardRuntimeFlagEnumValidator<>).MakeGenericType(new System.Type[] { this.enumType });
System\ServiceModel\Configuration\SynchronousReceiveElement.cs (1)
20public override Type BehaviorType
System\ServiceModel\Configuration\TcpTransportElement.cs (1)
36public override Type BindingElementType
System\ServiceModel\Configuration\TextMessageEncodingElement.cs (1)
31public override Type BindingElementType
System\ServiceModel\Configuration\TimeSpanOrInfiniteConverter.cs (1)
15public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cultureInfo, object value, Type type)
System\ServiceModel\Configuration\TransactedBatchingElement.cs (1)
34public override Type BehaviorType
System\ServiceModel\Configuration\TransactionFlowElement.cs (1)
47public override Type BindingElementType
System\ServiceModel\Configuration\TransactionProtocolConverter.cs (3)
14public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 23public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 53public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Configuration\UnrecognizedPolicyAssertionElement.cs (1)
24public override Type BindingElementType
System\ServiceModel\Configuration\UseManagedPresentationElement.cs (1)
13public override Type BindingElementType
System\ServiceModel\Configuration\UseRequestHeadersForMetadataAddressElement.cs (1)
46public override Type BehaviorType
System\ServiceModel\Configuration\UserNameServiceElement.cs (2)
135Type validatorType = System.Type.GetType(this.CustomUserNamePasswordValidatorType, true);
System\ServiceModel\Configuration\WindowsStreamSecurityElement.cs (1)
45public override Type BindingElementType
System\ServiceModel\Configuration\WS2007FederationHttpBindingElement.cs (1)
25protected override Type BindingElementType
System\ServiceModel\Configuration\WS2007HttpBindingElement.cs (1)
27protected override Type BindingElementType
System\ServiceModel\Configuration\WsdlImporterElement.cs (1)
22public WsdlImporterElement(Type type)
System\ServiceModel\Configuration\WSDualHttpBindingElement.cs (1)
27protected override Type BindingElementType
System\ServiceModel\Configuration\WSFederationHttpBindingElement.cs (1)
27protected override Type BindingElementType
System\ServiceModel\Configuration\WSHttpBindingElement.cs (1)
27protected override Type BindingElementType
System\ServiceModel\Configuration\WSHttpContextBindingElement.cs (1)
56protected override Type BindingElementType
System\ServiceModel\Configuration\X509ClientCertificateAuthenticationElement.cs (2)
108Type validatorType = System.Type.GetType(this.CustomCertificateValidatorType, true);
System\ServiceModel\Configuration\X509PeerCertificateAuthenticationElement.cs (2)
90Type validatorType = System.Type.GetType(this.CustomCertificateValidatorType, true);
System\ServiceModel\Configuration\X509ServiceCertificateAuthenticationElement.cs (2)
90Type validatorType = System.Type.GetType(this.CustomCertificateValidatorType, true);
System\ServiceModel\DeliveryRequirementsAttribute.cs (2)
16Type contractType; 21public Type TargetContract
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\ConfigLoader.cs (10)
40static readonly Type[] emptyTypeArray = new Type[] { }; 216Type type = behaviorObject.GetType(); 251static bool ShouldSkipCommonBehavior(Type behaviorType, ref Nullable<bool> isPT) 274static void TraceBehaviorWarning(BehaviorExtensionElement behaviorExtension, int traceCode, string traceDescription, Type type, Type behaviorType) 322Type wsdlImporterType = Type.GetType(wsdlImporterElement.Type, true, true); 351Type policyImporterType = Type.GetType(policyImporterElement.Type, true, true);
System\ServiceModel\Description\ContractDescription.cs (10)
18Type callbackContractType; 20Type contractType; 57public Type ContractType 63public Type CallbackContractType 141public KeyedCollection<Type, IContractBehavior> ContractBehaviors 152public static ContractDescription GetContract(Type contractType) 161public static ContractDescription GetContract(Type contractType, Type serviceType) 174public static ContractDescription GetContract(Type contractType, object serviceImplementation) 183Type serviceType = serviceImplementation.GetType();
System\ServiceModel\Description\DataContractSerializerOperationBehavior.cs (4)
101public virtual XmlObjectSerializer CreateSerializer(Type type, string name, string ns, IList<Type> knownTypes) 106public virtual XmlObjectSerializer CreateSerializer(Type type, XmlDictionaryString name, XmlDictionaryString ns, IList<Type> knownTypes)
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\FaultDescription.cs (2)
18Type detailType; 42public Type DetailType
System\ServiceModel\Description\IContractBehaviorAttribute.cs (1)
10Type TargetContract { get; }
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\MessageDescription.cs (4)
19static Type typeOfUntypedMessage; 24Type messageType; 123internal static Type TypeOfUntypedMessage 144public Type MessageType
System\ServiceModel\Description\MessagePartDescription.cs (2)
20Type type; 95public Type Type
System\ServiceModel\Description\MetadataExchangeClient.cs (2)
474internal static void TraceReceiveReply(string sourceUrl, Type metadataType) 683Type metadataType = null;
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\MetadataSet.cs (5)
265System.Type t = o.GetType(); 320System.Type t = o.GetType(); 402System.Type t = o.GetType(); 1048public override System.Boolean CanSerialize(System.Type type) 1053public override System.Xml.Serialization.XmlSerializer GetSerializer(System.Type type)
System\ServiceModel\Description\NetDataContractSerializerOperationBehavior.cs (4)
18public override XmlObjectSerializer CreateSerializer(Type type, string name, string ns, IList<Type> knownTypes) 23public override XmlObjectSerializer CreateSerializer(Type type, XmlDictionaryString name, XmlDictionaryString ns, IList<Type> knownTypes)
System\ServiceModel\Description\OperationDescription.cs (5)
26Collection<Type> knownTypes; 58this.knownTypes = new Collection<Type>(); 67public KeyedCollection<Type, IOperationBehavior> OperationBehaviors 199public Collection<Type> KnownTypes 244internal Type TaskTResult
System\ServiceModel\Description\OperationGenerator.cs (2)
991Type attributeType = attribute.GetType(); 1031Type type = val.GetType();
System\ServiceModel\Description\ParameterXPathQueryGenerator.cs (1)
19public static string CreateFromDataContractSerializer(XName serviceContractName, string operationName, string parameterName, bool isReply, Type type, MemberInfo[] pathToMember, out XmlNamespaceManager namespaces)
System\ServiceModel\Description\ServiceContractGenerator.cs (6)
32Dictionary<ContractDescription, Type> referencedTypes; 65this.referencedTypes = new Dictionary<ContractDescription, Type>(); 68internal CodeTypeReference GetCodeTypeReference(Type type) 103public Dictionary<ContractDescription, Type> ReferencedTypes 149Type existingType; 176Type existingType;
System\ServiceModel\Description\ServiceDescription.cs (9)
24Type serviceType; 112public Type ServiceType 120Type type = serviceDescription.ServiceType; 144internal static object CreateImplementation(Type serviceType) 147TypeLoader.DefaultBindingFlags, null, Type.EmptyTypes, null); 215static void GetIServiceBehaviorAttributes(Type currentServiceType, KeyedByTypeCollection<IServiceBehavior> behaviors) 223public static ServiceDescription GetService(Type serviceType) 250Type serviceType = serviceImplementation.GetType(); 267Type type = serviceDescription.ServiceType;
System\ServiceModel\Description\ServiceEndpoint.cs (1)
54public KeyedCollection<Type, IEndpointBehavior> EndpointBehaviors
System\ServiceModel\Description\ServiceEndpointCollection.cs (3)
19public ServiceEndpoint Find(Type contractType) 55public ServiceEndpoint Find(Type contractType, XmlQualifiedName bindingName) 122public Collection<ServiceEndpoint> FindAll(Type contractType)
System\ServiceModel\Description\ServiceMetadataBehavior.cs (2)
401internal static bool IsMetadataImplementedType(ServiceDescription description, Type type) 409internal static bool IsMetadataImplementedType(Type type)
System\ServiceModel\Description\ServiceMetadataExtension.cs (2)
28static readonly Type[] httpGetSupportedChannels = new Type[] { typeof(IReplyChannel), };
System\ServiceModel\Description\ServiceReflector.cs (49)
48internal static string TypeName(Type t) 52Type[] args = t.GetGenericArguments(); 73internal static XmlQualifiedName GetContractName(Type contractType, string name, string ns) 339internal static readonly Type VoidType = typeof(void); 341internal static readonly Type taskType = typeof(Task); 342internal static readonly Type taskTResultType = typeof(Task<>); 343internal static readonly Type CancellationTokenType = typeof(CancellationToken); 344internal static readonly Type IProgressType = typeof(IProgress<>); 345static readonly Type asyncCallbackType = typeof(AsyncCallback); 346static readonly Type asyncResultType = typeof(IAsyncResult); 347static readonly Type objectType = typeof(object); 348static readonly Type OperationContractAttributeType = typeof(OperationContractAttribute); 350static internal Type GetOperationContractProviderType(MethodInfo method) 365static internal List<Type> GetInterfaces(Type service) 367List<Type> types = new List<Type>(); 376Type t = GetAncestorImplicitContractClass(service); 383Type operationContractProviderType = GetOperationContractProviderType(method); 390foreach (Type t in service.GetInterfaces()) 405static Type GetAncestorImplicitContractClass(Type service) 417static internal List<Type> GetInheritedContractTypes(Type service) 419List<Type> types = new List<Type>(); 420foreach (Type t in service.GetInterfaces()) 437static internal object[] GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType) 442static internal object[] GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType, bool inherit) 466Type type = attrProvider as Type; 499Type attrType = typeof(T); 515Type attrType = typeof(T); 571static internal T GetSingleAttribute<T>(ICustomAttributeProvider attrProvider, Type[] attrTypeGroup) 577Type attrType = typeof(T); 578foreach (Type otherType in attrTypeGroup) 616static internal T GetRequiredSingleAttribute<T>(ICustomAttributeProvider attrProvider, Type[] attrTypeGroup) 637static internal Type GetContractType(Type interfaceType) 643static internal Type GetContractTypeAndAttribute(Type interfaceType, out ServiceContractAttribute contractAttribute) 651List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType)); 658foreach (Type potentialContractRoot in types) 661foreach (Type t in types) 678static List<MethodInfo> GetMethodsInternal(Type interfaceType) 913static internal bool IsTask(MethodInfo method, out Type taskTResult) 916Type methodReturnType = method.ReturnType; 1008static internal bool IsParameterDisposable(Type type)
System\ServiceModel\Description\TaskOperationDescriptionValidator.cs (1)
56Type parameterType = parameter.ParameterType;
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\ChannelHandler.cs (2)
735Type contractType = clientRuntime.ContractClientType; 736Type callbackType = clientRuntime.CallbackClientType;
System\ServiceModel\Dispatcher\ClientOperation.cs (2)
51Type taskTResult; 277public Type TaskTResult
System\ServiceModel\Dispatcher\ClientRuntime.cs (4)
51Type callbackProxyType; 55Type contractProxyType; 120public Type CallbackClientType 148public Type ContractClientType
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\DataContractSerializerFaultFormatter.cs (1)
18internal DataContractSerializerFaultFormatter(Type[] detailTypes)
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\Dispatcher\DispatchOperationRuntime.cs (1)
867void ValidateInstanceType(Type type, MethodInfo method)
System\ServiceModel\Dispatcher\DispatchRuntime.cs (2)
52Type type; 539public Type Type
System\ServiceModel\Dispatcher\FaultContractInfo.cs (7)
16Type detail; 19IList<Type> knownTypes; 22public FaultContractInfo(string action, Type detail) 26internal FaultContractInfo(string action, Type detail, XmlName elementName, string ns, IList<Type> knownTypes) 47public Type Detail { get { return this.detail; } } 53internal IList<Type> KnownTypes { get { return this.knownTypes; } }
System\ServiceModel\Dispatcher\FaultFormatter.cs (10)
21internal FaultFormatter(Type[] detailTypes) 44Type detailType = null; 47Type faultExceptionOfT = null; 48for (Type faultType = faultException.GetType(); faultType != typeof(FaultException); faultType = faultType.BaseType) 72protected virtual XmlObjectSerializer GetSerializer(Type detailType, string faultExceptionAction, out string action) 114Type detailType = null; 141object detailObj, Type detailType, XmlDictionaryReader detailReader) 160Type knownFaultType = typeof(FaultException<>).MakeGenericType(detailType); 185static MessageFault CreateMessageFault(XmlObjectSerializer serializer, FaultException faultException, Type detailType) 195Type operationFaultType = typeof(OperationFault<>).MakeGenericType(detailType);
System\ServiceModel\Dispatcher\InstanceBehavior.cs (2)
205static ConstructorInfo GetConstructor(Type type) 207return type.GetConstructor(DefaultBindingFlags, null, Type.EmptyTypes, null);
System\ServiceModel\Dispatcher\InvokerUtil.cs (7)
39internal CreateInstanceDelegate GenerateCreateInstanceDelegate(Type type, ConstructorInfo constructor) 75static Type TypeOfObject = typeof(object); 79internal CreateInstanceDelegate GenerateCreateInstanceDelegate(Type type, ConstructorInfo constructor) 271Type parameterType = parameterLocals[i].LocalType; 305void LoadTarget(ArgBuilder targetArg, Type targetType) 355static bool IsTypeVisible(Type t) 363foreach (Type genericType in t.GetGenericArguments())
System\ServiceModel\Dispatcher\MessageFilterTable.cs (7)
20Dictionary<Type, Type> filterTypeMappings; 157Type filterType = filter.GetType(); 158Type tableType = null; 238this.filterTypeMappings = new Dictionary<Type, Type>(); 589Type t = this.GetType();
System\ServiceModel\Dispatcher\MessageQueryTable.cs (4)
17Dictionary<Type, MessageQueryCollection> collectionsByType; 23this.collectionsByType = new Dictionary<Type, MessageQueryCollection>(); 66Type queryType = key.GetType(); 147Type queryType = key.GetType();
System\ServiceModel\Dispatcher\MessageRpc.cs (1)
447Type exceptionType = e.GetType();
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
156private static object CreateTypedMessageInstance(Type messageContractType)
System\ServiceModel\Dispatcher\PartialTrustValidationBehavior.cs (9)
82static Type[] unsupportedBindings = new Type[] 95static Type[] unsupportedBindingElements = new Type[] 123Type bindingType = binding.GetType(); 136Type bindingElementType = element.GetType(); 144bool IsUnsupportedBindingType(Type bindingType) 154bool IsUnsupportedBindingElementType(Type bindingElementType) 165void UnsupportedSecurityCheck(string resource, Type type)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (9)
246static string GetArrayItemName(Type type) 248switch (Type.GetTypeCode(type)) 271Type type = part.Type; 337Type type = bodyDescription.Type; 348switch (Type.GetTypeCode(type)) 369static bool IsArrayTypeSupported(Type type) 373switch (Type.GetTypeCode(type)) 684this.typeCode = Type.GetTypeCode(description.Type.GetElementType()); 689this.typeCode = Type.GetTypeCode(description.Type);
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (2)
154internal Type TaskTResult 337internal static object GetDefaultParameterValue(Type parameterType)
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
21Type type; 36public SyncMethodInvoker(Type type, string methodName)
System\ServiceModel\Dispatcher\TaskExtensions.cs (1)
38public static MethodInfo MakeGenericMethod(Type genericArgument)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
30public TaskMethodInvoker(MethodInfo taskMethod, Type taskType) 156returnVal = this.isGenericTask ? this.taskTResultGetMethod.Invoke(task, Type.EmptyTypes) : null;
System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (3)
22internal XmlSerializerFaultFormatter(Type[] detailTypes, 45protected override XmlObjectSerializer GetSerializer(Type detailType, string faultExceptionAction, out string action) 89Type detailType = null;
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (4)
18Type rootType; 23internal XmlSerializerObjectSerializer(Type type) 28internal XmlSerializerObjectSerializer(Type type, XmlQualifiedName qualifiedName, XmlSerializer xmlSerializer) 37void Initialize(Type type, string rootName, string rootNamespace, XmlSerializer xmlSerializer)
System\ServiceModel\DuplexChannelFactory.cs (11)
23public DuplexChannelFactory(Type callbackInstanceType) 26public DuplexChannelFactory(Type callbackInstanceType, Binding binding, String remoteAddress) 29public DuplexChannelFactory(Type callbackInstanceType, Binding binding, EndpointAddress remoteAddress) 32public DuplexChannelFactory(Type callbackInstanceType, Binding binding) 35public DuplexChannelFactory(Type callbackInstanceType, string endpointConfigurationName, EndpointAddress remoteAddress) 38public DuplexChannelFactory(Type callbackInstanceType, string endpointConfigurationName) 41public DuplexChannelFactory(Type callbackInstanceType, ServiceEndpoint endpoint) 182if (callbackInstance is Type) 184this.CallbackType = (Type)callbackInstance; 242Type userObjectType = callbackInstance.UserObject.GetType(); 243Type callbackType = this.Endpoint.Contract.CallbackContractType;
System\ServiceModel\FaultContractAttribute.cs (3)
18Type type; 22public FaultContractAttribute(Type detailType) 30public Type DetailType
System\ServiceModel\FaultException.cs (2)
179public static FaultException CreateFault(MessageFault messageFault, params Type[] faultDetailTypes) 184public static FaultException CreateFault(MessageFault messageFault, string action, params Type[] faultDetailTypes)
System\ServiceModel\KeyedByTypeCollection.cs (2)
12public class KeyedByTypeCollection<TItem> : KeyedCollection<Type, TItem> 90protected override Type GetKeyForItem(TItem item)
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\MsmqException.cs (1)
22Type outerExceptionType = null;
System\ServiceModel\MsmqIntegration\MsmqIntegrationBinding.cs (1)
54internal Type[] TargetSerializationTypes
System\ServiceModel\MsmqIntegration\MsmqIntegrationBindingElement.cs (5)
15Type[] targetSerializationTypes; 28this.targetSerializationTypes = other.targetSerializationTypes.Clone() as Type[]; 58public Type[] TargetSerializationTypes 65return this.targetSerializationTypes.Clone() as Type[]; 73this.targetSerializationTypes = value.Clone() as Type[];
System\ServiceModel\MsmqIntegration\MsmqIntegrationChannelFactory.cs (1)
64XmlSerializer GetXmlSerializerForType(Type serializedType)
System\ServiceModel\MsmqIntegration\MsmqIntegrationReceiveParameters.cs (5)
13Type[] targetSerializationTypes; 20List<Type> knownTypes = new List<Type>(); 23foreach (Type type in bindingElement.TargetSerializationTypes) 35internal Type[] TargetSerializationTypes
System\ServiceModel\MsmqIntegration\MsmqIntegrationValidationBehavior.cs (1)
105Type type = message.Body.Parts[0].Type;
System\ServiceModel\NetTcpContextBinding.cs (3)
135Type bindingElementType = typeof(NetTcpBinding); 137protected override Type BindingElementType 145public void SetBindingElementType(Type bindingElementType)
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (5)
59IList<Type> knownTypes; 370public IList<Type> KnownTypes 378this.knownTypes = new Collection<Type>(value); 976Type[] endpointChannelTypes = new Type[] { typeof(IReplyChannel),
System\ServiceModel\Security\RequestSecurityToken.cs (2)
52Type appliesToType; 399internal Type AppliesToType
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (2)
58Type appliesToType; 427internal Type AppliesToType
System\ServiceModel\Security\SecureConversationServiceCredential.cs (4)
17Collection<Type> securityContextClaimTypes; 23securityContextClaimTypes = new Collection<Type>(); 30this.securityContextClaimTypes = new Collection<Type>(); 51public Collection<Type> SecurityContextClaimTypes
System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
763Type authenticatorType = spec.TokenAuthenticator.GetType(); 767Type spec2AuthenticatorType = spec2.TokenAuthenticator.GetType();
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (2)
1164Type[] endpointChannelTypes = new Type[] { typeof(IReplyChannel),
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (3)
23IList<Type> knownTypes; 25public SecurityContextCookieSerializer(SecurityStateEncoder securityStateEncoder, IList<Type> knownTypes) 32this.knownTypes = knownTypes ?? new List<Type>();
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (1)
26protected override Type GetCommunicationObjectType()
System\ServiceModel\Security\WsKeyInfoSerializer.cs (7)
108public override Type GetTokenType( SecurityKeyIdentifierClause clause ) 190Type[] tokenTypes; 204protected override Type[] GetTokenTypesCore() 207this.tokenTypes = new Type[] { typeof( SecurityContextSecurityToken ) }; 221Type[] tokenTypes; 234protected override Type[] GetTokenTypesCore() 237this.tokenTypes = new Type[] { typeof( DerivedKeySecurityToken ) };
System\ServiceModel\Security\WSSecureConversation.cs (5)
97protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(DerivedKeySecurityToken) }; } 319public SecurityContextTokenEntry(WSSecureConversation parent, SecurityStateEncoder securityStateEncoder, IList<Type> knownClaimTypes) 332protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(SecurityContextSecurityToken) }; }
System\ServiceModel\Security\WSSecureConversationDec2005.cs (5)
34IList<Type> knownClaimTypes; 36public WSSecureConversationDec2005(WSSecurityTokenSerializer tokenSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes, 49this.knownClaimTypes = new List<Type>(); 53foreach (Type knownType in knownTypes) 81public SecurityContextTokenEntryDec2005(WSSecureConversationDec2005 parent, SecurityStateEncoder securityStateEncoder, IList<Type> knownClaimTypes)
System\ServiceModel\Security\WSSecureConversationFeb2005.cs (5)
34IList<Type> knownClaimTypes; 36public WSSecureConversationFeb2005(WSSecurityTokenSerializer tokenSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes, 49this.knownClaimTypes = new List<Type>(); 53foreach (Type knownType in knownTypes) 73public SecurityContextTokenEntryFeb2005(WSSecureConversationFeb2005 parent, SecurityStateEncoder securityStateEncoder, IList<Type> knownClaimTypes)
System\ServiceModel\Security\WSSecurityJan2004.cs (12)
202protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(GenericXmlSecurityToken) }; } 257protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(KerberosReceiverSecurityToken), typeof(KerberosRequestorSecurityToken) }; } 304protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(SamlSecurityToken) }; } 349protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(UserNameSecurityToken) }; } 493protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(WrappedKeySecurityToken) }; } 612protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(X509SecurityToken), typeof(X509WindowsSecurityToken) }; }
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\Security\WSTrust.cs (3)
90protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(BinarySecretSecurityToken) }; } 1004void WriteAppliesTo(object appliesTo, Type appliesToType, XmlObjectSerializer serializer, XmlWriter xmlWriter)
System\ServiceModel\ServiceBehaviorAttribute.cs (1)
420Type serviceType = description.ServiceType;
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\ServiceContractAttribute.cs (2)
18Type callbackContract = null; 107public Type CallbackContract
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)
System\ServiceModel\ServiceKnownTypeAttribute.cs (6)
10Type declaringType; 12Type type; 19public ServiceKnownTypeAttribute(Type type) 29public ServiceKnownTypeAttribute(string methodName, Type declaringType) 35public Type DeclaringType 45public Type Type
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
269Type type = (value == null) ? typeof(Object) : value.GetType();
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (3)
39Type feedType; 49public Atom10FeedFormatter(Type feedTypeToCreate) 92protected Type FeedType
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (3)
23Type itemType; 32public Atom10ItemFormatter(Type itemTypeToCreate) 85protected Type ItemType
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (4)
23Type inlineDocumentType; 27Type referencedDocumentType; 34public AtomPub10CategoriesDocumentFormatter(Type inlineDocumentType, Type referencedDocumentType)
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (2)
26Type documentType; 36public AtomPub10ServiceDocumentFormatter(Type documentTypeToCreate)
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (3)
33Type feedType; 44public Rss20FeedFormatter(Type feedTypeToCreate) 104protected Type FeedType
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (3)
23Type itemType; 33public Rss20ItemFormatter(Type itemTypeToCreate) 103protected Type ItemType
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
403internal static SyndicationFeed CreateFeedInstance(Type feedType)
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (1)
74internal static SyndicationItem CreateItemInstance(Type itemType)
System\ServiceModel\WSHttpContextBinding.cs (3)
163Type bindingElementType = typeof(WSHttpBinding); 165protected override Type BindingElementType 173public void SetBindingElementType(Type bindingElementType)
System\ServiceModel\XamlIntegration\XPathMessageContextTypeConverter.cs (3)
14public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 24public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 44public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System.ServiceModel.Activation (38)
System\ServiceModel\Activation\HostedTransportConfigurationManager.cs (5)
61Type type = Type.GetType(MetabaseSettingsIis7FactoryTypeName, false); 73static MetabaseSettingsIis CreateMetabaseSettings(Type type) 217Type type = Type.GetType(element.TransportConfigurationType);
System\ServiceModel\Activation\ServiceHostFactory.cs (3)
44Type type = Type.GetType(constructorString, false); 103protected virtual ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
System\ServiceModel\Activation\ServiceParser.cs (10)
265Type typeToPreserve = this.GetCompiledType(compiledAssembly); 290Type serviceType; 347Type GetCompiledType(Assembly compiledAssembly) 354Type type = null; 672Type GetType(string typeName) 674Type type; 682type = Type.GetType(typeName, true); 918internal static Type GetTypeFromAssemblies(ICollection assemblies, string typeName, bool ignoreCase) 923Type type = null; 927Type t = assembly.GetType(typeName, false /*throwOnError*/, ignoreCase);
System\ServiceModel\Activation\ServiceRoute.cs (1)
18public ServiceRoute(string routePrefix, ServiceHostFactoryBase serviceHostFactory, Type serviceType)
System\ServiceModel\Activation\ServiceRouteHandler.cs (1)
38public ServiceRouteHandler(string baseAddress, ServiceHostFactoryBase serviceHostFactory, Type webServiceType)
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (6)
94Type activityType = this.GetTypeFromAssembliesInCurrentDomain(constructorString); 373Type GetTypeFromAssembliesInCurrentDomain(string typeString) 375Type activityType = Type.GetType(typeString, false); 390Type GetTypeFromCompileCustomString(string compileCustomString, string typeString) 401Type activityType = null;
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (3)
90public Type GetGeneratedType(CompilerResults results) 109Type generatedType; 120Type workflowServiceType = typeof(WorkflowService);
System\ServiceModel\ServiceHostingEnvironment.cs (9)
1108internal Type GetCompiledType(string normalizedVirtualPath) 1318Type compiledType = Type.GetType(factoryType); 1342ConstructorInfo ctor = compiledType.GetConstructor(new Type[] { }); 1863Type type = Type.GetType(BuildProviderType, false); 1950Type hostedXamlType; 1951Type serviceModelActivationHandlerType; 1985static object CreateServiceModelActivationHandler(Type type)
System.ServiceModel.Activities (128)
System\ServiceModel\Activities\Configuration\BufferedReceiveElement.cs (1)
36public override Type BehaviorType
System\ServiceModel\Activities\Configuration\EtwTrackingBehaviorElement.cs (1)
27public override Type BehaviorType
System\ServiceModel\Activities\Configuration\SendMessageChannelCacheElement.cs (1)
42public override Type BehaviorType
System\ServiceModel\Activities\Configuration\ServiceModelActivitiesEnumValidator.cs (3)
16Type enumHelperType; 19public ServiceModelActivitiesEnumValidator(Type enumHelperType) 25public override bool CanValidate(Type type)
System\ServiceModel\Activities\Configuration\ServiceModelActivitiesEnumValidatorAttribute.cs (3)
13Type enumHelperType; 15public ServiceModelActivitiesEnumValidatorAttribute(Type enumHelperType) 20public Type EnumHelperType
System\ServiceModel\Activities\Configuration\SqlWorkflowInstanceStoreElement.cs (1)
36public override Type BehaviorType
System\ServiceModel\Activities\Configuration\WorkflowControlEndpointElement.cs (1)
21protected internal override Type EndpointType
System\ServiceModel\Activities\Configuration\WorkflowIdleElement.cs (1)
49public override Type BehaviorType
System\ServiceModel\Activities\Configuration\WorkflowInstanceManagementElement.cs (1)
24public override Type BehaviorType
System\ServiceModel\Activities\Configuration\WorkflowUnhandledExceptionElement.cs (1)
34public override Type BehaviorType
System\ServiceModel\Activities\Constants.cs (6)
22public static readonly Type MessageType = typeof(Message); 23public static readonly Type CorrelationHandleType = typeof(CorrelationHandle); 24public static readonly Type UriType = typeof(Uri); 25public static readonly Type NoPersistHandleType = typeof(NoPersistHandle); 29public static readonly Type[] EmptyTypeArray = new Type[0];
System\ServiceModel\Activities\ContractInferenceHelper.cs (20)
22static Type exceptionType; 23static Type faultExceptionType; 52public static Type ExceptionType 64public static Type FaultExceptionType 106Type channelType = typeof(IOutputChannel); 132Type channelType = typeof(IRequestChannel); 183Type channelType = typeof(IRequestChannel); 342public static void AddInputMessage(OperationDescription operation, string overridingAction, Type type, SerializerOption serializerOption) 354string[] argumentNames, Type[] argumentTypes) 365public static void AddOutputMessage(OperationDescription operation, string overridingAction, Type type, SerializerOption serializerOption) 378string[] argumentNames, Type[] argumentTypes) 390static void AddKnownTypesToOperation(OperationDescription operation, Collection<Type> knownTypes) 394foreach (Type knownType in knownTypes) 401public static void CheckForDisposableParameters(OperationDescription operation, Type type) 413public static void CheckForDisposableParameters(OperationDescription operation, Type[] types) 418foreach (Type type in types) 552Type type = null; 573Type faultType = type.GetGenericArguments()[0]; 605Collection<Type> knownTypes = receive.InternalKnownTypes; 609foreach (Type knownType in knownTypes)
System\ServiceModel\Activities\ContractValidationHelper.cs (2)
147public static void ValidateFault(NativeActivityContext context, OperationDescription targetOperation, string overridingAction, Type faultType) 201public static void ValidateMessageContent(NativeActivityContext context, MessageDescription targetMessage, Type declaredMessageType,
System\ServiceModel\Activities\CorrelationHandle.cs (4)
20static readonly Type requestReplyCorrelationInitializerType = typeof(RequestReplyCorrelationInitializer); 24static readonly Type callbackCorrelationInitializerType = typeof(CallbackCorrelationInitializer); 28static readonly Type contextCorrelationInitializerType = typeof(ContextCorrelationInitializer); 335internal static CorrelationHandle GetTypedCorrelationHandle(NativeActivityContext context, Collection<CorrelationInitializer> correlationInitializers, Type correlationInitializerType)
System\ServiceModel\Activities\MessageBuilder.cs (9)
16static Type messageContractAttributeType; 20public static Type MessageContractAttributeType 57MessageDirection direction, string overridingAction, Type type, SerializerOption serializerOption) 75MessageDirection direction, string overridingAction, string[] argumentNames, Type[] argumentTypes) 98public static bool IsMessageContract(Type type) 111MessageDirection direction, string overridingAction, Type messageContractType) 136MessageDescription message, Type type, SerializerOption serializerOption) 188MessageDescription message, string[] argumentNames, Type[] argumentTypes) 261public static FaultDescription CreateFaultDescription(OperationDescription operation, Type faultType, string overridingAction)
System\ServiceModel\Activities\MessagingActivityHelper.cs (4)
23static Type faultExceptionType = typeof(FaultException); 24static Type faultExceptionGenericType = typeof(FaultException<>); 39Type messageType = (messageArgument == null) ? TypeHelper.ObjectType : messageArgument.ArgumentType; 43public static void AddRuntimeArgument(Argument messageArgument, string runtimeArgumentName, Type runtimeArgumentType,
System\ServiceModel\Activities\Receive.cs (6)
32Collection<Type> knownTypes; 194public Collection<Type> KnownTypes 200this.knownTypes = new Collection<Type>(); 215internal Collection<Type> InternalKnownTypes 504Collection<Type> knownTypes = operation.KnownTypes; 507foreach (Type knownType in knownTypes)
System\ServiceModel\Activities\ReceiveContent.cs (1)
39public static ReceiveMessageContent Create(OutArgument message, Type declaredMessageType)
System\ServiceModel\Activities\ReceiveMessageContent.cs (3)
29public ReceiveMessageContent(OutArgument message, Type declaredMessageType) 52public Type DeclaredMessageType 58internal Type InternalDeclaredMessageType
System\ServiceModel\Activities\ReceiveParametersContent.cs (4)
20Type[] argumentTypes; 57internal Type[] ArgumentTypes 74this.argumentTypes = new Type[argumentCount]; 94foreach (Type argumentType in this.argumentTypes)
System\ServiceModel\Activities\ReceiveReply.cs (3)
185Type[] faultTypes = new Type[operation.KnownTypes.Count]; 186foreach (Type type in operation.KnownTypes)
System\ServiceModel\Activities\Send.cs (3)
28Collection<Type> knownTypes; 156public Collection<Type> KnownTypes 162this.knownTypes = new Collection<Type>();
System\ServiceModel\Activities\SendContent.cs (1)
39public static SendMessageContent Create(InArgument message, Type declaredMessageType)
System\ServiceModel\Activities\SendMessageContent.cs (5)
29public SendMessageContent(InArgument message, Type declaredMessageType) 52public Type DeclaredMessageType 58internal Type InternalDeclaredMessageType 246Type argumentType = this.InternalDeclaredMessageType; 250Type faultType = argumentType.GetGenericArguments()[0];
System\ServiceModel\Activities\SendParametersContent.cs (6)
20Type[] argumentTypes; 57internal Type[] ArgumentTypes 90this.argumentTypes = new Type[argumentCount]; 110foreach (Type argumentType in this.argumentTypes) 213Type argumentType = this.argumentTypes[0]; 217Type faultType = argumentType.GetGenericArguments()[0];
System\ServiceModel\Activities\SendReply.cs (2)
421Type[] substitute = { faultDescription.DetailType }; 422Type faultType = typeof(FaultException<>).MakeGenericType(substitute);
System\ServiceModel\Activities\TransactedReceiveScope.cs (9)
127Condition = new Equal<Type, Type, bool> 133Right = new InArgument<Type>(context => typeof(TransactionScope)) 156Condition = new Equal<Type, Type, bool> 162Right = new InArgument<Type>(context => typeof(CompensableActivity)) 312class ObtainType : CodeActivity<Type> 333RuntimeArgument resultArgument = new RuntimeArgument("Result", typeof(Type), ArgumentDirection.Out); 344protected override Type Execute(CodeActivityContext context)
System\ServiceModel\Activities\WorkflowHostingEndpoint.cs (2)
23protected WorkflowHostingEndpoint(Type contractType) 28protected WorkflowHostingEndpoint(Type contractType, Binding binding, EndpointAddress address)
System\ServiceModel\Activities\WorkflowService.cs (7)
33Collection<Type> implementedContracts; 101public Collection<Type> ImplementedContracts 107this.implementedContracts = new Collection<Type>(); 209static void AddAdditionalConstraint(ValidationSettings workflowServiceSettings, Type constraintType, Constraint constraint) 304foreach (KeyValuePair<Type, IList<Constraint>> constrants in source.AdditionalConstraints) 353foreach (Type contractType in this.ImplementedContracts) 1165foreach (Type targetType in targetOperation.KnownTypes)
System\ServiceModel\Activities\WorkflowServiceHost.cs (8)
31static readonly Type mexBehaviorType = typeof(ServiceMetadataBehavior); 34static readonly Type baseActivityType = typeof(Activity); 35static readonly Type correlationQueryBehaviorType = typeof(CorrelationQueryBehavior); 36static readonly Type bufferedReceiveServiceBehaviorType = typeof(BufferedReceiveServiceBehavior); 630Dictionary<Type, ContractDescription> contractDescriptionDictionary = new Dictionary<Type, ContractDescription>(); 724static Type SendReceiveExtensionType = typeof(SendReceiveExtension); 764void ThrowIfNotSupported(Type type)
System\ServiceModel\XamlIntegration\EndpointIdentityConverter.cs (2)
18public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 27public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\ServiceModel\XamlIntegration\ServiceXNameTypeConverter.cs (3)
14public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 33public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 38public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\ServiceModel\XamlIntegration\XNameTypeConverter.cs (4)
16public static bool CanConvertFrom(Type sourceType) 24public static bool CanConvertTo(Type destinationType) 28public static object ConvertTo(ITypeDescriptorContext context, object value, Type destinationType) 86internal static object ConvertToHelper(ITypeDescriptorContext context, object value, Type destinationType)
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\ByteStreamMessage.cs (1)
333Type typeT = typeof(T);
System\ServiceModel\Channels\UdpChannelListener.cs (1)
251protected override Type GetCommunicationObjectType()
System\ServiceModel\Configuration\ByteStreamMessageEncodingElement.cs (1)
21public override Type BindingElementType
System\ServiceModel\Configuration\UdpBindingElement.cs (1)
26protected override Type BindingElementType
System\ServiceModel\Configuration\UdpTransportElement.cs (1)
48public override Type BindingElementType
System.ServiceModel.Discovery (17)
System\ServiceModel\Discovery\Configuration\AnnouncementEndpointElement.cs (1)
57protected internal override Type EndpointType
System\ServiceModel\Discovery\Configuration\DiscoveryClientElement.cs (1)
45public override Type BindingElementType
System\ServiceModel\Discovery\Configuration\DiscoveryEndpointElement.cs (1)
71protected internal override Type EndpointType
System\ServiceModel\Discovery\Configuration\DiscoveryVersionConverter.cs (3)
13public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 23public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 45public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\ServiceModel\Discovery\Configuration\DynamicEndpointElement.cs (1)
31protected internal override Type EndpointType
System\ServiceModel\Discovery\Configuration\EndpointDiscoveryElement.cs (1)
24public override Type BehaviorType
System\ServiceModel\Discovery\Configuration\ServiceDiscoveryElement.cs (1)
33public override Type BehaviorType
System\ServiceModel\Discovery\Configuration\UdpAnnouncementEndpointElement.cs (1)
68protected internal override Type EndpointType
System\ServiceModel\Discovery\Configuration\UdpDiscoveryEndpointElement.cs (1)
83protected internal override Type EndpointType
System\ServiceModel\Discovery\DiscoveryClient.cs (2)
1321private static Type TaskAsyncOperationStateType = typeof(TaskAsyncOperationState<>); 1332Type userStateType = this.UserState.GetType();
System\ServiceModel\Discovery\DiscoveryUtility.cs (1)
49public static ContractDescription GetContract(Type contractType)
System\ServiceModel\Discovery\FindCriteria.cs (3)
49public FindCriteria(Type contractType) 167public static FindCriteria CreateMetadataExchangeEndpointCriteria(Type contractType) 398internal static XmlQualifiedName GetContractTypeName(Type contractType)
System.ServiceModel.Internals (72)
System\Runtime\Fx.cs (12)
263internal static Type[] BreakOnExceptionTypes 679readonly Type elementType; 682public CacheAttribute(Type elementType, CacheAttrition cacheAttrition) 697public Type ElementType 722readonly Type elementType; 724public QueueAttribute(Type elementType) 737public Type ElementType 885public Type CancelDeclaringType { get; set; } 920readonly Type exceptionType; 923public ThrowsAttribute(Type exceptionType, string diagnosis) 938public Type ExceptionType 963public Type FromDeclaringType { get; set; }
System\Runtime\PartialTrustHelpers.cs (2)
16static Type aptca; 76internal static bool IsTypeAptca(Type type)
System\Runtime\TypeHelper.cs (58)
14public static readonly Type ArrayType = typeof(Array); 15public static readonly Type BoolType = typeof(bool); 16public static readonly Type GenericCollectionType = typeof(ICollection<>); 17public static readonly Type ByteType = typeof(byte); 18public static readonly Type SByteType = typeof(sbyte); 19public static readonly Type CharType = typeof(char); 20public static readonly Type ShortType = typeof(short); 21public static readonly Type UShortType = typeof(ushort); 22public static readonly Type IntType = typeof(int); 23public static readonly Type UIntType = typeof(uint); 24public static readonly Type LongType = typeof(long); 25public static readonly Type ULongType = typeof(ulong); 26public static readonly Type FloatType = typeof(float); 27public static readonly Type DoubleType = typeof(double); 28public static readonly Type DecimalType = typeof(decimal); 29public static readonly Type ExceptionType = typeof(Exception); 30public static readonly Type NullableType = typeof(Nullable<>); 31public static readonly Type ObjectType = typeof(object); 32public static readonly Type StringType = typeof(string); 33public static readonly Type TypeType = typeof(Type); 34public static readonly Type VoidType = typeof(void); 36public static bool AreTypesCompatible(object source, Type destinationType) 47public static bool AreTypesCompatible(Type sourceType, Type destinationType) 62public static bool AreReferenceTypesCompatible(Type sourceType, Type destinationType) 74public static IEnumerable<Type> GetCompatibleTypes(IEnumerable<Type> enumerable, Type targetType) 76foreach (Type sourceType in enumerable) 85public static bool ContainsCompatibleType(IEnumerable<Type> enumerable, Type targetType) 87foreach (Type sourceType in enumerable) 127public static IEnumerable<Type> GetImplementedTypes(Type type) 129Dictionary<Type, object> typesEncountered = new Dictionary<Type, object>(); 136static void GetImplementedTypesHelper(Type type, Dictionary<Type, object> typesEncountered) 145Type[] interfaces = type.GetInterfaces(); 151Type baseType = type.BaseType; 161static bool IsImplicitNumericConversion(Type source, Type destination) 163TypeCode sourceTypeCode = Type.GetTypeCode(source); 164TypeCode destinationTypeCode = Type.GetTypeCode(destination); 272static bool IsImplicitReferenceConversion(Type sourceType, Type destinationType) 277static bool IsImplicitBoxingConversion(Type sourceType, Type destinationType) 290static bool IsImplicitNullableConversion(Type sourceType, Type destinationType) 305static bool IsNullableType(Type type) 313TypeCode sourceTypeCode = Type.GetTypeCode(source.GetType()); 314TypeCode destinationTypeCode = Type.GetTypeCode(typeof(T)); 558public static object GetDefaultValueForType(Type type) 577public static bool IsNullableValueType(Type type) 582public static bool IsNonNullableValueType(Type type)
System.ServiceModel.Routing (13)
System\ServiceModel\Channels\SynchronousSendBindingElement.cs (2)
39Type typeofTChannel = typeof(TChannel); 97Type channelType = typeof(TChannel);
System\ServiceModel\Routing\ClientFactory.cs (1)
21Type contractType = endpointTrait.RouterContract;
System\ServiceModel\Routing\Configuration\RoutingExtensionElement.cs (1)
24public override Type BehaviorType
System\ServiceModel\Routing\Configuration\RoutingSection.cs (2)
616Type customFilterType = Type.GetType(customType, true);
System\ServiceModel\Routing\Configuration\SoapProcessingExtensionElement.cs (1)
16public override Type BehaviorType
System\ServiceModel\Routing\RoutingBehavior.cs (1)
76public static Type GetContractForDescription(ContractDescription description)
System\ServiceModel\Routing\RoutingChannelExtension.cs (1)
182Type contractType = endpointBehavior.Endpoint.Contract.ContractType;
System\ServiceModel\Routing\RoutingEndpointTrait.cs (2)
11public RoutingEndpointTrait(Type routerContract, ServiceEndpoint endpoint, OperationContext operationContext) 34public Type RouterContract
System\ServiceModel\Routing\SendOperation.cs (2)
22Type routerContract; 24public SendOperation(IEnumerable<ServiceEndpoint> endpoints, Type routerContract, OperationContext operationContext)
System.ServiceModel.WasHosting (2)
System\ServiceModel\WasHosting\MetabaseSettingsIis7.cs (2)
401Type type = typeof(WebConfigurationManager); 405new Type[3] { typeof(string), typeof(string), typeof(string) }
System.ServiceModel.Web (169)
System\ServiceModel\Activation\WebScriptServiceHostFactory.cs (1)
16protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
System\ServiceModel\Activation\WebServiceHostFactory.cs (1)
18protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
System\ServiceModel\Configuration\InternalEnumValidator.cs (3)
15Type enumHelperType; 18public InternalEnumValidator(Type enumHelperType) 24public override bool CanValidate(Type type)
System\ServiceModel\Configuration\InternalEnumValidatorAttribute.cs (3)
13Type enumHelperType; 15public InternalEnumValidatorAttribute(Type enumHelperType) 20public Type EnumHelperType
System\ServiceModel\Configuration\WebEncodingValidator.cs (1)
14public override bool CanValidate(Type type)
System\ServiceModel\Configuration\WebHttpBindingElement.cs (4)
17static readonly Type WebContentTypeMapperType = typeof(WebContentTypeMapper); 149protected override Type BindingElementType 268Type type = System.Type.GetType(contentTypeMapperType, true);
System\ServiceModel\Configuration\WebHttpElement.cs (1)
76public override Type BehaviorType
System\ServiceModel\Configuration\WebHttpEndpointElement.cs (1)
28protected internal override Type EndpointType
System\ServiceModel\Configuration\WebMessageEncodingElement.cs (3)
25public override Type BindingElementType 87Type CTMType = Type.GetType(this.WebContentTypeMapperType, true);
System\ServiceModel\Configuration\WebScriptEnablingElement.cs (1)
17public override Type BehaviorType
System\ServiceModel\Configuration\WebScriptEndpointElement.cs (1)
28protected internal override Type EndpointType
System\ServiceModel\Description\DataContractJsonSerializerOperationBehavior.cs (4)
28public override XmlObjectSerializer CreateSerializer(Type type, string name, string ns, IList<Type> knownTypes) 33public override XmlObjectSerializer CreateSerializer(Type type, System.Xml.XmlDictionaryString name, System.Xml.XmlDictionaryString ns, IList<Type> knownTypes)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (4)
89private static Type ReplaceMessageWithObject(Type t) 121Type paramType = ReplaceMessageWithObject(messagePart.Type); 154internal static string GetClientProxyScript(Type contractType, string path, bool debugMode, ServiceEndpoint serviceEndpoint)
System\ServiceModel\Description\WebHttpBehavior.cs (14)
565Type type; 575Type parameterType; 591internal virtual bool UseBareReplyFormatter(WebMessageBodyStyle style, OperationDescription operationDescription, WebMessageFormat responseFormat, out Type parameterType) 611Type type; 623Type parameterType; 684Type parameterType; 756Type type; 763Type parameterType; 824internal virtual bool UseBareRequestFormatter(WebMessageBodyStyle style, OperationDescription operationDescription, out Type parameterType) 908static void HideRequestUriTemplateParameters(OperationDescription operationDescription, Dictionary<int, string> pathMapping, Dictionary<int, KeyValuePair<string, Type>> queryMapping, Effect effect) 942internal static bool TryGetNonMessageParameterType(MessageDescription message, OperationDescription declaringOperation, bool isRequest, out Type type) 979static bool TryGetStreamParameterType(MessageDescription message, OperationDescription declaringOperation, bool isRequest, out Type type) 1035Type dummy; 1188Type dummy;
System\ServiceModel\Description\WebHttpEndpoint.cs (2)
16static Type WebHttpEndpointType = typeof(WebHttpEndpoint); 65protected override Type WebEndpointType
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (1)
213internal override bool UseBareReplyFormatter(WebMessageBodyStyle style, OperationDescription operationDescription, WebMessageFormat responseFormat, out Type parameterType)
System\ServiceModel\Description\WebScriptEndpoint.cs (2)
22static Type WebScriptEndpointType = typeof(WebScriptEndpoint); 47protected override Type WebEndpointType
System\ServiceModel\Description\WebServiceEndpoint.cs (1)
82protected abstract Type WebEndpointType { get; }
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (9)
24static Dictionary<Type, Action<XmlSchemaObject, HelpExampleGeneratorContext>> XmlObjectHandler = new Dictionary<Type, Action<XmlSchemaObject, HelpExampleGeneratorContext>> 74static Dictionary<Type, Action<XmlSchemaObject, HelpExampleGeneratorContext>> JsonObjectHandler = new Dictionary<Type, Action<XmlSchemaObject, HelpExampleGeneratorContext>> 124public static void GenerateJsonSample(XmlSchemaSet schemaSet, XmlQualifiedName name, XmlWriter writer, IDictionary<XmlQualifiedName, Type> knownTypes) 171Type objectType = schemaObject.GetType(); 396Type derivedType = null; 800public IDictionary<XmlQualifiedName, Type> knownTypes; 804public Dictionary<Type, Action<XmlSchemaObject, HelpExampleGeneratorContext>> objectHandler;
System\ServiceModel\Dispatcher\HelpPage.cs (10)
221static Type GetResponseBodyType(OperationDescription od) 242static Type GetRequestBodyType(OperationDescription od, string uriTemplate) 285public Type Type { get; private set; } 292internal MessageHelpInformation(OperationDescription od, bool isRequest, Type type, bool wrapped) 360IDictionary<XmlQualifiedName, Type> knownTypes = new Dictionary<XmlQualifiedName, Type>(); 377List<Type> listTypes = new List<Type>(od.KnownTypes); 379Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(this.Type, out isQueryable); 397foreach (Type knownType in od.KnownTypes)
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (6)
42public override bool CanConvert(Type type) 48public override object ConvertStringToValue(string parameter, Type parameterType) 54switch (Type.GetTypeCode(parameterType)) 164public override string ConvertValueToString(object parameter, Type parameterType) 178object CreateJsonDeserializedObject(string parameter, Type parameterType) 186DataContractJsonSerializer GetDataContractJsonSerializer(Type parameterType)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (8)
54public virtual bool CanConvert(Type type) 69public virtual object ConvertStringToValue(string parameter, Type parameterType) 75switch (Type.GetTypeCode(parameterType)) 164public virtual string ConvertValueToString(object parameter, Type parameterType) 174switch (Type.GetTypeCode(parameterType)) 259TypeConverter GetStringConverter(Type parameterType) 270Type converterType = Type.GetType(converterAttr.ConverterTypeName, false, true);
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (27)
20static readonly Type TypeOfNullable = typeof(Nullable<>); 21static readonly Type[] CollectionDataContractInterfaces = new Type[] { typeof(IEnumerable), typeof(IList), typeof(ICollection), typeof(IDictionary) }; 22static readonly Type[] GenericCollectionDataContractInterfaces = new Type[] { typeof(IEnumerable<>), typeof(IList<>), typeof(ICollection<>), typeof(IDictionary<,>) }; 24Type cachedOutputSerializerType; 27IList<Type> knownTypes; 29Type parameterDataContractType; 36public SingleBodyParameterDataContractMessageFormatter(OperationDescription operation, Type parameterType, bool isRequestFormatter, bool useJsonFormat, DataContractSerializerOperationBehavior dcsob) 53List<Type> tmp = new List<Type>(); 56foreach (Type knownType in operation.KnownTypes) 61Type nullableType = UnwrapNullableType(this.parameterDataContractType); 78internal static Type UnwrapNullableType(Type type) 112protected override XmlObjectSerializer GetOutputSerializer(Type type) 119Type typeForSerializer; 140static bool IsTypeCollectionInterface(Type parameterType) 144Type genericTypeDef = parameterType.GetGenericTypeDefinition(); 145foreach (Type type in GenericCollectionDataContractInterfaces) 153foreach (Type type in CollectionDataContractInterfaces) 186static void ValidateType(Type parameterType, IDataContractSurrogate surrogate, IEnumerable<Type> knownTypes) 195foreach (Type knownType in knownTypes) 205void CreateInputSerializers(Type type) 209foreach (Type knownType in this.knownTypes) 216XmlObjectSerializer CreateSerializer(Type type)
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (11)
53public static IClientMessageFormatter CreateXmlAndJsonClientFormatter(OperationDescription operation, Type type, bool isRequestFormatter, UnwrappedTypesXmlSerializerManager xmlSerializerManager) 67public static IDispatchMessageFormatter CreateXmlAndJsonDispatchFormatter(OperationDescription operation, Type type, bool isRequestFormatter, UnwrappedTypesXmlSerializerManager xmlSerializerManager, string callbackParameterName) 130internal static IClientMessageFormatter CreateClientFormatter(OperationDescription operation, Type type, bool isRequestFormatter, bool useJson, UnwrappedTypesXmlSerializerManager xmlSerializerManager) 146internal static IDispatchMessageFormatter CreateDispatchFormatter(OperationDescription operation, Type type, bool isRequestFormatter, bool useJson, UnwrappedTypesXmlSerializerManager xmlSerializerManager, string callbackParameterName) 218protected abstract XmlObjectSerializer GetOutputSerializer(Type type); 224protected Type GetTypeForSerializer(Type type, Type parameterType, IList<Type> knownTypes) 243public static SingleBodyParameterMessageFormatter CreateXmlFormatter(OperationDescription operation, Type type, bool isRequestFormatter, UnwrappedTypesXmlSerializerManager xmlSerializerManager) 258public static SingleBodyParameterMessageFormatter CreateJsonFormatter(OperationDescription operation, Type type, bool isRequestFormatter)
System\ServiceModel\Dispatcher\SingleBodyParameterXmlSerializerMessageFormatter.cs (11)
20Type cachedOutputSerializerType; 21List<Type> knownTypes; 22Type parameterType; 28public SingleBodyParameterXmlSerializerMessageFormatter(OperationDescription operation, Type parameterType, bool isRequestFormatter, XmlSerializerOperationBehavior xsob, UnwrappedTypesXmlSerializerManager serializerManager) 49List<Type> operationTypes = new List<Type>(); 51this.knownTypes = new List<Type>(); 54foreach (Type knownType in operation.KnownTypes) 60Type nullableType = SingleBodyParameterDataContractMessageFormatter.UnwrapNullableType(this.parameterType); 79protected override XmlObjectSerializer GetOutputSerializer(Type type) 85Type typeForSerializer = GetTypeForSerializer(type, this.parameterType, this.knownTypes);
System\ServiceModel\Dispatcher\UnwrappedTypesXmlSerializerManager.cs (12)
18Dictionary<Type, XmlTypeMapping> allTypes; 20Dictionary<Object, IList<Type>> operationTypes; 22Dictionary<Type, XmlSerializer> serializersMap; 27this.allTypes = new Dictionary<Type, XmlTypeMapping>(); 28this.serializersMap = new Dictionary<Type, XmlSerializer>(); 29this.operationTypes = new Dictionary<Object, IList<Type>>(); 48IList<Type> operationTypes = this.operationTypes[key]; 60public void RegisterType(Object key, IList<Type> types) 90List<Type> types = new List<Type>(); 92foreach (Type type in allTypes.Keys) 108public Type Type;
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (4)
23internal Dictionary<int, KeyValuePair<string, Type>> queryMapping; 136out Dictionary<int, KeyValuePair<string, Type>> queryMapping, 144queryMapping = new Dictionary<int, KeyValuePair<string, Type>>(); 185queryMapping.Add(i, new KeyValuePair<string, Type>(parameterName, mpd.Type));
System\ServiceModel\Dispatcher\UriTemplateDispatchFormatter.cs (2)
25internal Dictionary<int, KeyValuePair<string, Type>> queryMapping; 94foreach (KeyValuePair<string, Type> kvp in this.queryMapping.Values)
System\ServiceModel\Web\AutomaticEndpointGenerator.cs (3)
22private Type singleImplementedContract; 45Type contractType = this.GetSingleImplementedContract(); 89private Type GetSingleImplementedContract()
System\ServiceModel\Web\IWebFaultException.cs (2)
12Type DetailType { get; } 14Type[] KnownTypes { get; }
System\ServiceModel\Web\WebChannelFactory.cs (1)
43public WebChannelFactory(Type channelType)
System\ServiceModel\Web\WebFaultException.cs (9)
41Type IWebFaultException.DetailType 55Type[] IWebFaultException.KnownTypes 147Type[] knownTypes; 155public WebFaultException(T detail, HttpStatusCode statusCode, IEnumerable<Type> knownTypes) 159this.knownTypes = (knownTypes == null) ? null : new List<Type>(knownTypes).ToArray(); 166this.knownTypes = (Type[])info.GetValue("knownTypes", typeof(Type[])); 173Type IWebFaultException.DetailType 187Type[] IWebFaultException.KnownTypes
System\ServiceModel\Web\WebServiceHost.cs (5)
21static readonly Type WebHttpBindingType = typeof(WebHttpBinding); 34public WebServiceHost(Type serviceType, params Uri[] baseAddresses) : 78Type contractType = null; 334static bool IsStreamPart(Type type) 339static bool IsVoidPart(Type type)
System\ServiceModel\WebScriptServiceHost.cs (1)
20public WebScriptServiceHost(Type serviceType, params Uri[] baseAddresses)
System.Transactions (5)
System\Transactions\DistributedTransactionPermission.cs (1)
132Type type = this.GetType();
System\Transactions\Trace\DiagnosticTrace.cs (1)
739Type declaringType = stackFrame.GetMethod().DeclaringType;
System\Transactions\Trace\TraceRecords.cs (2)
932private Type tmType; 936internal static void Trace(string traceSource, Type tmType, string nodeName)
System\Transactions\Transaction.cs (1)
103if (null != Type.GetType("System.EnterpriseServices.ContextUtil, " + AssemblyRef.SystemEnterpriseServices, false))
System.Web (1359)
Abstractions\HttpBrowserCapabilitiesBase.cs (1)
680public virtual Type TagWriter {
Abstractions\HttpBrowserCapabilitiesWrapper.cs (1)
665public override Type TagWriter {
Abstractions\HttpContextBase.cs (1)
313public virtual object GetService(Type serviceType) {
Abstractions\HttpContextWrapper.cs (1)
314public override object GetService(Type serviceType) {
Abstractions\HttpServerUtilityBase.cs (1)
40public virtual object CreateObject(Type type) {
Abstractions\HttpServerUtilityWrapper.cs (1)
50public override object CreateObject(Type type) {
Administration\WebAdminConfigurationHelper.cs (5)
44public object CallMembershipProviderMethod (string methodName, object[] parameters, Type[] paramTypes) { 45Type tempType = typeof(HttpContext).Assembly.GetType("System.Web.Security.Membership"); 77Type tempType = typeof(HttpContext).Assembly.GetType("System.Web.Security.Membership"); 91public object CallRoleProviderMethod (string methodName, object[] parameters, Type[] paramTypes) { 93Type tempType = typeof(HttpContext).Assembly.GetType("System.Web.Security.Roles");
AspNetEventSource.cs (1)
40new Type[] { typeof(int), typeof(Guid*), typeof(int), typeof(EventData*) }, null);
Cache\SqlCacheDependency.cs (1)
1728return (string[])tablesObj.ToArray(Type.GetType("System.String"));
Cache\SRef.cs (2)
11private static Type s_type = Type.GetType("System.SizedReference", true, false);
Cache\SubstitutionResponseElement.cs (1)
38Type target = BuildManager.GetType(_targetTypeName, true /*throwOnFail*/, false /*ignoreCase*/);
Compilation\ApplicationBuildProvider.cs (1)
75internal override BuildResultCompiledType CreateBuildResult(Type t) {
Compilation\AppSettingsExpressionBuilder.cs (1)
61public static object GetAppSetting(string key, Type targetType, string propertyName) {
Compilation\AssemblyBuilder.cs (8)
83internal Type CodeDomProviderType { 459Type t = buildProvider.GetType(); 587Type attrType = typeof(SecurityRulesAttribute); 588Type enumType = typeof(SecurityRuleSet); 787internal static void FixUpCompilerParameters(CompilationSection compilationSection, Type codeDomProviderType, CompilerParameters compilParams) { 858internal static void FixTreatWarningsAsErrors(Type codeDomProviderType, CompilerParameters compilParams) { 872private static void ProcessProviderOptions(Type codeDomProviderType, CompilerParameters compilParams) { 1012Type postProcessorType = _compConfig.AssemblyPostProcessorTypeInternal;
Compilation\BaseCodeDomTreeGenerator.cs (6)
371if (Parser.BaseType.GetConstructor(Type.EmptyTypes) != null) { 422foreach (Type t in Parser.ImplementedInterfaces) { 541Type propType, MemberAttributes attributes, CodeAttributeDeclarationCollection attrDeclarations) { 566Type propType, bool fStatic, CodeAttributeDeclarationCollection attrDeclarations) { 596Type propType, 648Type declaredType = entry.DeclaredType;
Compilation\BaseTemplateBuildProvider.cs (5)
41Type codeDomProviderType = _parser.CompilerType.CodeDomProviderType; 140public override Type GetGeneratedType(CompilerResults results) { 144internal Type GetGeneratedType(CompilerResults results, bool useDelayLoadTypeIfEnabled) { 170Type generatedType; 187internal override BuildResultCompiledType CreateBuildResult(Type t) {
Compilation\BaseTemplateCodeDomTreeGenerator.cs (7)
171Type ctrlType = GetCtrlTypeForBuilder(builder, fTemplate); 241private void BuildBuildMethodInternal(ControlBuilder builder, Type ctrlType, bool fInTemplate, 445Type containerType = builder.BindingContainerType; 1158Type memberType = Util.GetNonPrivateFieldType(Parser.BaseType, builder.ID); 1246Type bindingContainerType = builder.BindingContainerType; 1383Type eventHandlerType = eventInfo.EventHandlerType; 1712private Type GetCtrlTypeForBuilder(ControlBuilder builder, bool fTemplate) {
Compilation\BrowserCapabilitiesCompiler.cs (6)
35private static Type _browserCapabilitiesFactoryBaseType; 78Type t = GetBrowserCapabilitiesType(); 91internal static Type GetBrowserCapabilitiesFactoryBaseType() { 95internal static Type GetBrowserCapabilitiesType() { 141Type t = assembly.GetType( 284Type baseType = BrowserCapabilitiesCompiler.GetBrowserCapabilitiesFactoryBaseType();
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\BuildManagerHost.cs (7)
211out Type codeDomProviderType, out CompilerParameters compParams, 233internal void GetCompilerParams(VirtualPath virtualPath, out Type codeDomProviderType, 267Type t = BuildManager.GetCompiledType(virtualPath, callback); 283Type codeDomProviderType; 367Type codeDomProviderType; 395VirtualPath virtualPath, string virtualFileString, out Type codeDomProviderType, 494out Type codeDomProviderType, out CompilerParameters compilerParameters) {
Compilation\BuildProvider.cs (8)
92public virtual Type GetGeneratedType(CompilerResults results) { 192public static void RegisterBuildProvider(string extension, Type providerType) { 339Type type = GetGeneratedType(results); 390internal virtual BuildResultCompiledType CreateBuildResult(Type t) { 496private readonly Type _type; 498public CompilationBuildProviderInfo(Type type) { 503internal override Type Type { 522internal abstract Type Type { get; }
Compilation\BuildProvidersCompiler.cs (1)
233internal void GenerateSources(out Type codeDomProviderType,
Compilation\BuildResult.cs (21)
666Type appInitializeType = ResultAssembly.GetType(appInitializeClass); 690foreach (Type t in ResultAssembly.GetExportedTypes()) { 708private MethodInfo FindAppInitializeMethod(Type t) { 713new Type[0], // Method with no parameters 804internal BuildResultCompiledType(Type t) { 840private Type _builtType; 841internal Type ResultType { 890public virtual Type InstantiatedType { 936public BuildResultCompiledTemplateType(Type t) : base(t) {} 958public BuildResultCompiledGlobalAsaxType(Type t) : base(t) { } 971protected Type _baseType; 975internal BuildResultNoCompileTemplateControl(Type baseType, TemplateParser parser) { 1004internal Type BaseType { 1025public virtual Type InstantiatedType { 1073internal BuildResultNoCompilePage(Type baseType, TemplateParser parser) 1140internal BuildResultNoCompileUserControl(Type baseType, TemplateParser parser) 1169internal BuildResultNoCompileMasterPage(Type baseType, TemplateParser parser) 1194private Type _codeDomProviderType; 1206Type codeDomProviderType, CodeCompileUnit codeCompileUnit, 1215internal Type CodeDomProviderType { 1266_codeDomProviderType = (Type)formatter.Deserialize(stream);
Compilation\ClientBuildManager.cs (7)
264public IRegisteredObject CreateObject(Type type, bool failIfExists) { 376out Type codeDomProviderType, out CompilerParameters compilerParameters, 398out Type codeDomProviderType, out CompilerParameters compilerParameters) { 415string virtualPath, out Type codeDomProviderType, 425string virtualPath, String virtualFileString, out Type codeDomProviderType, 456public Type GetCompiledType(string virtualPath) { 470Type t = a.GetType(typeAndAsemblyName[0]);
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\CodeDirectoryCompiler.cs (1)
252out Type codeDomProviderType, out CompilerParameters compilerParameters,
Compilation\CodeDOMUtility.cs (9)
31internal /*public*/ static CodeExpression GenerateExpressionForValue(PropertyInfo propertyInfo, object value, Type valueType) { 77else if (valueType == typeof(Type)) { 78rightExpr = new CodeTypeOfExpression((Type) value); 183if (valueType.GetMethod("Parse", new Type[] {typeof(string), typeof(CultureInfo)}) != null) { 202else if (valueType.GetMethod("Parse", new Type[] {typeof(string)}) != null) { 228CodeExpression target, string targetPropertyName, Type destinationType, 347internal static CodeCastExpression BuildJSharpCastExpression(Type castType, CodeExpression expression) { 362internal static CodeTypeReference BuildGlobalCodeTypeReference(Type type) { 374private static CodeTypeReferenceExpression BuildGlobalCodeTypeReferenceExpression(Type 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\CompilerTypeWithParams.cs (3)
33private Type _codeDomProviderType; 34public Type CodeDomProviderType { get { return _codeDomProviderType; } } 39internal CompilerType(Type codeDomProviderType, CompilerParameters compilParams) {
Compilation\ConnectionStringsExpressionBuilder.cs (1)
25public override object ParseExpression(string expression, Type propertyType, ExpressionBuilderContext context) {
Compilation\ControlBuilderInterceptor.cs (1)
29Type type,
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\DesignTimeResourceProviderFactoryAttribute.cs (1)
23public DesignTimeResourceProviderFactoryAttribute(Type factoryType) {
Compilation\ExpressionBuilder.cs (2)
74Type expressionBuilderType = null; 105public virtual object ParseExpression(string expression, Type propertyType, ExpressionBuilderContext context) {
Compilation\ExpressionEditorAttribute.cs (1)
16public ExpressionEditorAttribute(Type type) : this((type != null) ? type.AssemblyQualifiedName : null) {
Compilation\NonBatchDirectoryCompiler.cs (1)
46Type buildProviderType = CompilationUtil.GetBuildProviderTypeFromExtension(_compConfig,
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (2)
196internal static InstantiateObject GetFastObjectCreationDelegate(Type t) { 202Type factoryType = a.GetType(factoryFullClassNameBase + Util.MakeValidTypeNameFromString(shortAssemblyName));
Compilation\PageCodeDomTreeGenerator.cs (1)
582null, new Type[] { typeof(HttpContext) }, null);
Compilation\PageThemeCodeDomTreeGenerator.cs (3)
41private void AddMemberOverride(string name, Type type, CodeExpression expr) { 62Type controlType = builder.ControlType; 208Type ctrlType = builder.ControlType;
Compilation\ProfileBuildProvider.cs (4)
59internal static Type GetProfileTypeFromAssembly(Assembly assembly, bool isPrecompiledApp) { 64Type t = assembly.GetType( 92Type baseType = Type.GetType(ProfileBase.InheritsFromTypeString, false);
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;
Compilation\RouteValueExpressionBuilder.cs (2)
51internal static object ConvertRouteValue(object value, Type controlType, string propertyName) { 68public static object GetRouteValue(Page page, string key, Type controlType, string propertyName) {
Compilation\SimpleHandlerBuildProvider.cs (2)
81public override Type GetGeneratedType(CompilerResults results) { 83Type t;
Compilation\TemplateControlBuildProvider.cs (1)
39public override Type GetGeneratedType(CompilerResults results) {
Compilation\TemplateControlCodeDomTreeGenerator.cs (2)
114internal void BuildStronglyTypedProperty(string propertyName, Type propertyType) { 250Type appType = BuildManager.GetGlobalAsaxType();
Compilation\WebReferencesBuildProvider.cs (1)
30private static Type s_indigoWebRefProviderType;
Configuration\BrowserCapabilitiesCodeGenerator.cs (1)
1316private CodeVariableReferenceExpression GenerateVarReference(CodeMemberMethod cmm, Type varType, string varName) {
Configuration\BrowserDefinition.cs (4)
543Type type = CheckType(controlString, typeof(Control), child); 557private static Type CheckType(string typeName, Type baseType, XmlNode child) { 560Type type = ConfigUtil.GetType(typeName, child, true /*ignoreCase*/);
Configuration\BuildProvider.cs (2)
110private Type _type; 117internal override Type Type {
Configuration\CompilationSection.cs (5)
195private Type _assemblyPostProcessorType; 196private Type _controlBuilderInterceptorType; 442internal Type AssemblyPostProcessorTypeInternal { 455Type assemblyPostProcessorType = ConfigUtil.GetType(AssemblyPostProcessorType, assemblyPostProcessorTypeAttributeName, this); 920internal Type ControlBuilderInterceptorTypeInternal {
Configuration\Compiler.cs (1)
117Type codeDomProviderType = CompilationUtil.LoadTypeWithChecks(
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\CustomWebEventKey.cs (2)
10internal Type _type; 13internal CustomWebEventKey(Type eventType, int eventCode) {
Configuration\EventMappingSettings.cs (2)
53Type _type; // The real type 55internal Type RealType {
Configuration\ExpressionBuilder.cs (1)
84internal Type TypeInternal {
Configuration\FolderLevelBuildProvider.cs (2)
31private Type _type; 91internal Type TypeInternal {
Configuration\FolderLevelBuildProviderCollection.cs (10)
18private Dictionary<FolderLevelBuildProviderAppliesTo, List<Type>> _buildProviderMappings; 19private HashSet<Type> _buildProviderTypes; 79private void AddMapping(FolderLevelBuildProviderAppliesTo appliesTo, Type buildProviderType) { 81_buildProviderMappings = new Dictionary<FolderLevelBuildProviderAppliesTo, List<Type>>(); 84_buildProviderTypes = new HashSet<Type>(); 86List<Type> buildProviders = null; 88buildProviders = new List<Type>(); 96internal List<Type> GetBuildProviderTypes(FolderLevelBuildProviderAppliesTo appliesTo) { 98var buildProviders = new List<Type>(); 109internal bool IsFolderLevelBuildProvider(Type t) {
Configuration\GlobalizationSection.cs (3)
67private Type _resourceProviderFactoryType; 229internal Type ResourceProviderFactoryTypeInternal { 234Type resourceProviderFactoryType = ConfigUtil.GetType(ResourceProviderFactoryType, "resourceProviderFactoryType", this);
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\HandlerFactoryCache.cs (5)
71private Type GetTypeWithAssert(string type) { 75internal Type GetHandlerType( HttpHandlerAction handlerAction ) { 80Type t = GetTypeWithAssert(handlerAction.Type); 91internal Type GetHandlerType(string type) { 96Type t = GetTypeWithAssert(type);
Configuration\HandlerFactoryWrapper.cs (2)
21private Type _handlerType; 23internal HandlerFactoryWrapper(IHttpHandler handler, Type handlerType) {
Configuration\HealthMonitoringSectionHelper.cs (5)
110Type type; 314internal ArrayList FindFiringRuleInfos(Type eventType, int eventCode) { 463internal Type _customEvaluatorType; 476internal bool Match(Type eventType, int eventCode) { 536Type type;
Configuration\HttpCapabilitiesBase.cs (9)
176Type writerType = BuildManager.GetType(mtw, true /* throwOnFail */, false /* ignoreCase */); 192Type tagWriter = TagWriter; 238Type controlType = control.GetType(); 245Type adapterType = (Type)o; 247Type tempControlType = controlType; 294private IWebObjectFactory GetAdapterFactory(Type adapterType) { 583public Type TagWriter { 1785volatile private Type _tagwriter;
Configuration\HttpCapabilitiesEvaluator.cs (4)
35internal Type _resultType; 56public Type ResultType { 87Type t = System.Type.GetType(BrowserCapabilitiesProviderType, true, true);
Configuration\HttpCapabilitiesSectionHandler.cs (1)
252Type resultType = null;
Configuration\HttpConfigurationSystem.cs (4)
86Type typeConfigSystem = Type.GetType(ConfigSystemTypeString, true); 113Type typeFactory = Type.GetType(InternalConfigSettingsFactoryTypeString, true);
Configuration\HttpHandlerAction.cs (3)
51private Type _type; 121internal Type TypeInternal { 179Type t = ConfigUtil.GetType(Type, "type", this);
Configuration\IISVersionHelper.cs (2)
54Type type = Type.GetTypeFromProgID("Microsoft.IIS.VersionManager", throwOnError: true);
Configuration\LowerCaseStringConverter.cs (3)
93public override bool CanConvertTo(ITypeDescriptorContext ctx, Type type) { 96public override bool CanConvertFrom(ITypeDescriptorContext ctx, Type type) { 99public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
Configuration\MachineKeyValidationConverter.cs (1)
25public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) {
Configuration\MTConfigUtil.cs (4)
15private static readonly ConcurrentDictionary<Tuple<Type, VirtualPath>, ConfigurationSection> s_sections = 16new ConcurrentDictionary<Tuple<Type, VirtualPath>, ConfigurationSection>(); 153Tuple<Type, VirtualPath> key = new Tuple<Type, VirtualPath>(typeof(S), vpath);
Configuration\PagesSection.cs (11)
161private Type _pageBaseType; 162private Type _userControlBaseType; 163private Type _pageParserFilterType; 363internal Type PageBaseTypeInternal { 369Type pageBaseType = ConfigUtil.GetType(PageBaseType, "pageBaseType", this); 380internal Type UserControlBaseTypeInternal { 386Type userControlBaseType = ConfigUtil.GetType( 413internal Type PageParserFilterTypeInternal { 422Type pageParserFilterType = ConfigUtil.GetType(PageParserFilterType, "pageParserFilterType", this); 432Type pageParserFilterType = PageParserFilterTypeInternal; 494Type buildProviderType =
Configuration\ProfilePropertyNameValidator.cs (1)
20public override bool CanValidate(Type type) {
Configuration\ProfilePropertySettings.cs (2)
77private Type _type; 175internal Type TypeInternal {
Configuration\ProtocolsConfigurationEntry.cs (6)
27private Type _processHandlerType; 29private Type _appDomainHandlerType; 59Type processHandlerType; 61processHandlerType = Type.GetType(_processHandlerTypeName, true /*throwOnError*/); 70Type appDomainHandlerType; 72appDomainHandlerType = Type.GetType(_appDomainHandlerTypeName, true /*throwOnError*/);
Configuration\ProtocolsSection.cs (4)
265Type processHandlerType; 267processHandlerType = Type.GetType(ProcessHandlerType, true /*throwOnError*/); 280Type appDomainHandlerType; 282appDomainHandlerType = Type.GetType(AppDomainHandlerType, true /*throwOnError*/);
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)
Configuration\RemoteWebConfigurationHost.cs (2)
491Type type = Type.GetTypeFromCLSID(typeof(RemoteWebConfigurationHostServer).GUID, server, true);
Configuration\RemoteWebConfigurationHostServer.cs (2)
222Type t = Type.GetType(protectionProviderType, true);
Configuration\RemoteWebConfigurationHostStream.cs (1)
165public override System.Runtime.Remoting.ObjRef CreateObjRef(Type requestedType)
Configuration\RuleInfoComparer.cs (2)
42Type xType = 44Type yType =
Configuration\RuntimeConfig.cs (3)
628private object GetHandlerSection(string sectionName, Type type, ResultsIndex index) { 657private object GetSection(string sectionName, Type type) { 666private object GetSection(string sectionName, Type type, ResultsIndex index) {
Configuration\SessionStateSection.cs (1)
465Type enumType = typeof(HttpCookieMode);
Configuration\TagMapCollection.cs (2)
82Type tagType = ConfigUtil.GetType(tmi.TagType, "tagType", tmi); 83Type mappedTagType = ConfigUtil.GetType(tmi.MappedTagType, "mappedTagType", tmi);
Configuration\TransformerInfoCollection.cs (7)
87Type transformerType = ConfigUtil.GetType(ti.Type, "type", ti); 98Type consumerType; 99Type providerType; 114Type existingTransformerType = (Type)entry.Value; 118Type existingConsumerType = 120Type existingProviderType =
Configuration\VersionConverter.cs (1)
19public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
Configuration\VersionValidator.cs (1)
18public override bool CanValidate(Type type) {
Configuration\WebBaseEventKeyComparer.cs (2)
39Type xType = xKey._type; 40Type yType = yKey._type;
Configuration\WebConfigurationHost.cs (6)
80Type type = Type.GetType(InternalHostTypeName, true); 795public override Type GetConfigType(string typeName, bool throwOnError) { 801public override string GetConfigTypeName(Type t) { 833Type type = Type.GetType(InternalConfigConfigurationFactoryTypeName, true);
DynamicModuleRegistry.cs (2)
20public void Add(Type moduleType) { 47private static string MakeUniqueModuleName(Type moduleType) {
ErrorFormatter.cs (1)
1051Type declaringType = mb.DeclaringType;
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\ApplicationHost.cs (1)
39public static Object CreateApplicationHost(Type hostType, String virtualDir, String physicalDir) {
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;
Hosting\HostingEnvironment.cs (10)
476Type appContextType = Type.GetType("System.AppContext, " + AssemblyRef.Mscorlib); 743Type type = Type.GetType(assemblyQualifiedName, true); 750Type type = Type.GetType(assemblyQualifiedName, true); 790Type type = Type.GetType(assemblyQualifiedName, true); 804Type type = Type.GetType(assemblyQualifiedName, true);
Hosting\ObjectCacheHost.cs (1)
40Object IServiceProvider.GetService(Type service) {
Hosting\PreloadHost.cs (2)
24Type preloadObjType = null; 26preloadObjType = Type.GetType(preloadObjTypeName, true);
Hosting\ProcessHost.cs (10)
360private Type ValidateAndGetType( ProtocolElement element, 362Type assignableType, 364Type handlerType; 367handlerType = Type.GetType(typeName, true /*throwOnError*/); 397private Type GetAppDomainProtocolHandlerType(String protocolId) { 398Type t = null; 467Type protocolHandlerType = null; 571Type handlerType = GetAppDomainProtocolHandlerType(protocolId); 623Type handlerType = GetAppDomainProtocolHandlerType(protocolId); 656Type handlerType = GetAppDomainProtocolHandlerType(protocolId);
HttpApplication.cs (3)
1894Type targetType = target.GetType(); 2381internal static void RegisterModuleInternal(Type moduleType) { 2385public static void RegisterModule(Type moduleType) {
HttpApplicationFactory.cs (2)
64private Type _theApplicationType; 311Type baseType = _theApplicationType.BaseType;
HttpCachePolicy.cs (1)
335Type target = null;
HttpContext.cs (2)
673Object IServiceProvider.GetService(Type service) { 890Type handlerType = handler.GetType();
HttpCookie.cs (1)
534public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
HttpRuntime.cs (11)
2719internal static void FailIfNoAPTCABit(Type t, ElementInformation elemInfo, string propertyName) { 2735internal static void FailIfNoAPTCABit(Type t, XmlNode node) { 2748internal static bool IsTypeAllowedInConfig(Type t) { 2757internal static bool IsTypeAccessibleFromPartialTrust(Type t) { 3384internal static Object CreateNonPublicInstanceByWebObjectActivator(Type type) { 3394internal static Object CreatePublicInstanceByWebObjectActivator(Type type) { 3408internal static Object CreateNonPublicInstance(Type type) { 3413internal static Object CreateNonPublicInstance(Type type, Object[] args) { 3422internal static Object CreatePublicInstance(Type type) { 3443internal static Object FastCreatePublicInstance(Type type) { 3489internal static Object CreatePublicInstance(Type type, Object[] args) {
httpserverutility.cs (5)
69Type type = null; 74type = Type.GetTypeFromProgID(progID); 105public object CreateObject(Type type) { 131Type type = null; 142type = Type.GetTypeFromCLSID(guid, null, true /*throwOnError*/);
httpstaticobjectscollection.cs (6)
42internal void Add(String name, Type t, bool lateBound) { 219entry = new HttpStaticObjectsEntry(name, Type.GetType(typename), lateBound); 235private Type _type; 239internal HttpStaticObjectsEntry(String name, Type t, bool lateBound) { 256internal Type ObjectType { 264internal Type DeclaredType {
Management\regiisutil.cs (1)
99Assembly webAssembly = Assembly.GetAssembly(Type.GetType(typeName, true));
Management\WebEvents.cs (1)
718internal Type _type;
ModelBinding\ArrayModelBinderProvider.cs (1)
11Type elementType = bindingContext.ModelType.GetElementType();
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\AssociatedValidatorProvider.cs (1)
9protected virtual ICustomTypeDescriptor GetTypeDescriptor(Type type) {
ModelBinding\CollectionModelBinderUtil.cs (11)
47public static IModelBinder GetGenericBinder(Type supportedInterfaceType, Type newInstanceType, Type openBinderType, ModelMetadata modelMetadata) { 48Type[] typeArguments = GetTypeArgumentsForUpdatableGenericCollection(supportedInterfaceType, newInstanceType, modelMetadata); 73public static Type[] GetTypeArgumentsForUpdatableGenericCollection(Type supportedInterfaceType, Type newInstanceType, ModelMetadata modelMetadata) { 83Type[] modelTypeArguments = modelMetadata.ModelType.GetGenericArguments(); 94Type closedNewInstanceType = newInstanceType.MakeGenericType(modelTypeArguments); 105Type closedSupportedInterfaceType = supportedInterfaceType.MakeGenericType(modelTypeArguments); 110Type closedCollectionType = TypeHelpers.ExtractGenericInterface(closedSupportedInterfaceType, typeof(ICollection<>));
ModelBinding\DataAnnotationsModelMetadata.cs (3)
10public DataAnnotationsModelMetadata(DataAnnotationsModelMetadataProvider provider, Type containerType, 11Func<object> modelAccessor, Type modelType, string propertyName, 33private static void ValidateDisplayColumnAttribute(DisplayColumnAttribute displayColumnAttribute, PropertyInfo displayColumnProperty, Type modelType) {
ModelBinding\DataAnnotationsModelMetadataProvider.cs (2)
11protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName) {
ModelBinding\DataAnnotationsModelValidatorProvider.cs (19)
36internal static Dictionary<Type, DataAnnotationsModelValidationFactory> AttributeFactories = new Dictionary<Type, DataAnnotationsModelValidationFactory>() { 68internal static Dictionary<Type, DataAnnotationsValidatableObjectAdapterFactory> ValidatableFactories = new Dictionary<Type, DataAnnotationsValidatableObjectAdapterFactory>(); 120public static void RegisterAdapter(Type attributeType, Type adapterType) { 136public static void RegisterAdapterFactory(Type attributeType, DataAnnotationsModelValidationFactory factory) 151public static void RegisterDefaultAdapter(Type adapterType) { 166private static ConstructorInfo GetAttributeAdapterConstructor(Type attributeType, Type adapterType) { 185private static void ValidateAttributeAdapterType(Type adapterType) { 202private static void ValidateAttributeType(Type attributeType) { 235public static void RegisterValidatableObjectAdapter(Type modelType, Type adapterType) { 255public static void RegisterValidatableObjectAdapterFactory(Type modelType, DataAnnotationsValidatableObjectAdapterFactory factory) 277public static void RegisterDefaultValidatableObjectAdapter(Type adapterType) { 296private static ConstructorInfo GetValidatableAdapterConstructor(Type adapterType) { 314private static void ValidateValidatableAdapterType(Type adapterType) { 330private static void ValidateValidatableModelType(Type modelType) {
ModelBinding\EmptyModelMetadataProvider.cs (2)
6protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName) {
ModelBinding\Error.cs (11)
14public static ArgumentException Common_TypeMustImplementInterface(Type providedType, Type requiredInterfaceType, string parameterName) { 20public static ArgumentException GenericModelBinderProvider_ParameterMustSpecifyOpenGenericType(Type specifiedType, string parameterName) { 26public static ArgumentException GenericModelBinderProvider_TypeArgumentCountMismatch(Type modelType, Type modelBinderType) { 32public static InvalidOperationException ModelBinderProviderCollection_BinderForTypeNotFound(Type modelType) { 39public static ArgumentException ModelBinderUtil_ModelCannotBeNull(Type expectedType) { 46public static ArgumentException ModelBinderUtil_ModelInstanceIsWrong(Type actualType, Type expectedType) { 58public static ArgumentException ModelBinderUtil_ModelTypeIsWrong(Type actualType, Type expectedType) {
ModelBinding\ExtensibleModelBinderAttribute.cs (2)
7public ExtensibleModelBinderAttribute(Type binderType) { 11public Type BinderType {
ModelBinding\GenericModelBinderProvider.cs (13)
7private readonly Func<Type[], IModelBinder> _modelBinderFactory; 8private readonly Type _modelType; 10public GenericModelBinderProvider(Type modelType, IModelBinder modelBinder) { 24public GenericModelBinderProvider(Type modelType, Type modelBinderType) { 41Type closedModelBinderType = (modelBinderTypeIsOpenGeneric) ? modelBinderType.MakeGenericType(typeArguments) : modelBinderType; 46public GenericModelBinderProvider(Type modelType, Func<Type[], IModelBinder> modelBinderFactory) { 60public Type ModelType { 74Type[] typeArguments = null; 76Type matchingClosedInterface = TypeHelpers.ExtractGenericInterface(bindingContext.ModelType, ModelType); 94private static void ValidateParameters(Type modelType, Type modelBinderType) {
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) {
ModelBinding\ModelBinderProviderCollection.cs (10)
66public void RegisterBinderForGenericType(Type modelType, IModelBinder modelBinder) { 70public void RegisterBinderForGenericType(Type modelType, Func<Type[], IModelBinder> modelBinderFactory) { 74public void RegisterBinderForGenericType(Type modelType, Type modelBinderType) { 78public void RegisterBinderForType(Type modelType, IModelBinder modelBinder) { 82internal void RegisterBinderForType(Type modelType, IModelBinder modelBinder, bool suppressPrefixCheck) { 89public void RegisterBinderForType(Type modelType, Func<IModelBinder> modelBinderFactory) { 110private static bool TryGetProviderFromAttributes(Type modelType, out ModelBinderProvider provider) { 121Type closedBinderType = (attr.BinderType.IsGenericTypeDefinition) ? attr.BinderType.MakeGenericType(modelType.GetGenericArguments()) : attr.BinderType;
ModelBinding\ModelBinderUtil.cs (5)
33public static IModelBinder GetPossibleBinderInstance(Type closedModelType, Type openModelType, Type openBinderType) { 34Type[] typeArguments = TypeHelpers.GetTypeArgumentsIfMatch(closedModelType, openModelType); 92public static void ValidateBindingContext(ModelBindingContext bindingContext, Type requiredType, bool allowNullModel) {
ModelBinding\ModelBindingContext.cs (1)
96public Type ModelType {
ModelBinding\ModelBindingExecutionContext.cs (2)
12private Dictionary<Type, object> _services = new Dictionary<Type,object>();
ModelBinding\ModelMetadata.cs (10)
15private readonly Type _containerType; 20private readonly Type _modelType; 24private Type _realModelType; 30public ModelMetadata(ModelMetadataProvider provider, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName) { 53public Type ContainerType { 141public Type ModelType { 181internal Type RealModelType { 373private static ModelMetadata GetMetadataFromProvider(Func<object> modelAccessor, Type modelType, string propertyName, Type containerType, ModelMetadataProvider metadataProvider) {
ModelBinding\ModelMetadataProvider.cs (3)
6public abstract IEnumerable<ModelMetadata> GetMetadataForProperties(object container, Type containerType); 8public abstract ModelMetadata GetMetadataForProperty(Func<object> modelAccessor, Type containerType, string propertyName); 10public abstract ModelMetadata GetMetadataForType(Func<object> modelAccessor, Type modelType);
ModelBinding\ModelValidationNode.cs (1)
82Type expectedContainerType = ModelMetadata.ContainerType;
ModelBinding\MutableObjectModelBinder.cs (2)
49private static bool CanUpdateReadOnlyProperty(Type propertyType) { 130internal static void GetRequiredPropertiesCollection(Type modelType, out HashSet<string> requiredProperties, out HashSet<string> skipProperties) {
ModelBinding\SimpleModelBinderProvider.cs (4)
8private readonly Type _modelType; 10public SimpleModelBinderProvider(Type modelType, IModelBinder modelBinder) { 22public SimpleModelBinderProvider(Type modelType, Func<IModelBinder> modelBinderFactory) { 34public Type ModelType {
ModelBinding\TypeDescriptorHelper.cs (1)
8public static ICustomTypeDescriptor Get(Type type) {
ModelBinding\TypeHelpers.cs (11)
7public static Type ExtractGenericInterface(Type queryType, Type interfaceType) { 8Func<Type, bool> matchesInterface = t => t.IsGenericType && t.GetGenericTypeDefinition() == interfaceType; 12public static Type[] GetTypeArgumentsIfMatch(Type closedType, Type matchingOpenType) { 17Type openType = closedType.GetGenericTypeDefinition(); 21public static bool IsCompatibleObject(Type type, object value) { 25public static bool IsNullableValueType(Type type) { 29public static bool TypeAllowsNullValue(Type type) {
ModelBinding\ValueProviderResult.cs (6)
45private static object ConvertSimpleType(CultureInfo culture, object value, Type destinationType) { 68Type underlyingType = Nullable.GetUnderlyingType(destinationType); 91public object ConvertTo(Type type) { 95public virtual object ConvertTo(Type type, CultureInfo culture) { 104private static object UnwrapPossibleArrayType(CultureInfo culture, object value, Type destinationType) { 112Type destinationElementType = destinationType.GetElementType();
ModulesEntry.cs (3)
35private Type _type; 53internal static bool IsTypeMatch(Type type, String typeName) { 66private Type SecureGetType(string typeName, string propertyName, ConfigurationElement configElement) {
parent\DataAnnotations\DataAnnotations\LocalizableString.cs (2)
19private Type _resourceType; 62public Type ResourceType {
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) {
PreApplicationStartMethodAttribute.cs (3)
11private readonly Type _type; 14public PreApplicationStartMethodAttribute(Type type, string methodName) { 19public Type Type {
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;
Routing\RouteParser.cs (1)
269Type previousSegmentType = null;
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",
Security\FileAuthorizationModule.cs (1)
78if (Type.GetType(module.Type, false) == typeof(FileAuthorizationModule)) {
Security\Membership.cs (2)
465Type t = Type.GetType(ps.Type, true, true);
Security\MembershipPasswordAttribute.cs (3)
22private Type _resourceType; 69/// Gets or sets the <see cref="System.Type"/> that contains the resources for <see cref="MinPasswordLengthError"/>, 72public Type ResourceType {
Security\RolePrincipal.cs (1)
37static Type s_type;
Security\Roles.cs (2)
536Type t = Type.GetType(ps.Type, true, true);
Security\UrlAuthorizationModule.cs (2)
84if (Type.GetType(module.Type, false) == typeof(UrlAuthorizationModule)) { 93if (Type.GetType(mod.Type, false) == typeof(UrlAuthorizationModule)) {
State\SessionStateItemCollection.cs (1)
154Type t;
State\SessionStateModule.cs (2)
289Type resolverType; 321Type managerType;
StringResourceManager.cs (1)
31internal static SafeStringResource ReadSafeStringResource(Type t) {
UI\ApplicationFileParser.cs (1)
30internal override Type DefaultBaseType { get { return PageParser.DefaultApplicationBaseType ?? typeof(System.Web.HttpApplication); } }
UI\BaseTemplateParser.cs (9)
47internal Type GetDesignTimeUserControlType(string tagPrefix, string tagName) { 50Type type = typeof(UserControl); 72protected internal Type GetUserControlType(string virtualPath) { 76internal Type GetUserControlType(VirtualPath virtualPath) { 77Type t = GetReferencedType(virtualPath, false /*allowNoCompile*/); 100protected Type GetReferencedType(string virtualPath) { 104internal Type GetReferencedType(VirtualPath virtualPath) { 108internal Type GetReferencedType(VirtualPath virtualPath, bool allowNoCompile) { 118Type t = null;
UI\BoundPropertyEntry.cs (2)
29private Type _controlType; 51public Type ControlType {
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\CollectionBuilder.cs (5)
31private Type _itemType; 41Type type, string tagName, string ID, IDictionary attribs) { 58propInfo = TargetFrameworkUtil.GetProperty(ControlType, "Item", bindingFlags, types: new Type[] { typeof(int) }); 83public override Type GetChildControlType(string tagName, IDictionary attribs) { 85Type childType = Parser.MapStringToType(tagName, attribs);
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\ControlBuilderAttribute.cs (3)
30private Type builderType = null; 36public ControlBuilderAttribute(Type builderType) { 44public Type BuilderType {
UI\controlskin.cs (3)
22private Type _controlType; 26public ControlSkin(Type controlType, ControlSkinDelegate themeDelegate) { 32public Type ControlType {
UI\ControlValuePropertyAttribute.cs (1)
42public ControlValuePropertyAttribute(string name, Type type, string defaultValue) {
UI\DataBinder.cs (5)
27private static readonly ConcurrentDictionary<Type, PropertyDescriptorCollection> propertyCache = new ConcurrentDictionary<Type, PropertyDescriptorCollection>(); 147Type containerType = container.GetType(); 277collectionProp.GetType().GetProperty("Item", BindingFlags.Public | BindingFlags.Instance, null, null, new Type[] { indexValue.GetType() }, null); 356public static bool IsBindableType(Type type) {
UI\DataBinding.cs (3)
28private Type propertyType; 35public DataBinding(string propertyName, Type propertyType, string expression) { 73public Type PropertyType {
UI\DataBindingHandlerAttribute.cs (1)
36public DataBindingHandlerAttribute(Type type) {
UI\DataSourceCacheDurationConverter.cs (3)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 56public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 66public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
UI\EventEntry.cs (2)
15private Type _handlerType; 34public Type HandlerType {
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\FileLevelControlBuilderAttribute.cs (3)
34private Type builderType = null; 40public FileLevelControlBuilderAttribute(Type builderType) 49public Type BuilderType
UI\FilterableAttribute.cs (1)
99public static bool IsTypeFilterable(Type type) {
UI\HtmlControls\HtmlHead.cs (1)
21public override Type GetChildControlType(string tagName, IDictionary attribs) {
UI\HtmlControls\HtmlSelect.cs (1)
26public override Type GetChildControlType(string tagName, IDictionary attribs) {
UI\HTMLTagNameToTypeMapper.cs (4)
28/*public*/ Type ITagNameToTypeMapper.GetControlType(string tagName, IDictionary attributeBag) { 29Type controlType; 80controlType = (Type)_inputTypes[type]; 92controlType = (Type)_tagMap[tagName];
UI\IDReferencePropertyAttribute.cs (3)
22private Type _referencedControlType; 37public IDReferencePropertyAttribute(Type referencedControlType) 46public Type ReferencedControlType
UI\IResourceUrlGenerator.cs (1)
14string GetResourceUrl(Type type, string resourceName);
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\IUserControlTypeResolutionService.cs (1)
17Type GetType(string tagPrefix, string tagName);
UI\ListSourceHelper.cs (2)
84public override Type ComponentType { 96public override Type PropertyType {
UI\MasterPageParser.cs (5)
30internal override Type DefaultBaseType { get { return typeof(System.Web.UI.MasterPage); } } 37internal override Type DefaultFileLevelBuilderType { 43private Type _masterPageType; 44internal Type MasterPageType { get { return _masterPageType; } } 96Type type = GetReferencedType(value);
UI\MinimizableAttributeTypeConverter.cs (1)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
UI\ObjectConverter.cs (2)
38public static object ConvertValue(object value, Type toType, string formatString) { 44Type fromType = value.GetType();
UI\ObjectPersistData.cs (2)
14private Type _objectType; 119public Type ObjectType {
UI\ObjectStateFormatter.cs (18)
107private static readonly Type[] KnownTypes = 108new Type[] { 266private void AddDeserializationTypeReference(Type type) { 304private void AddSerializationTypeReference(Type type) { 449private Type DeserializeType(SerializerBinaryReader reader) { 458return (Type)_typeList[typeID]; 465Type resolvedType = null; 471resolvedType = Type.GetType(typeName, true); 586Type elementType = DeserializeType(reader); 598Type enumType = DeserializeType(reader); 617Type elementType = DeserializeType(reader); 644Type valueType = DeserializeType(reader); 860private void SerializeType(SerializerBinaryWriter writer, Type type) { 1035if (value is Type) { 1037SerializeType(writer, (Type)value); 1041Type valueType = value.GetType(); 1049Type underlyingType = valueType.GetElementType(); 1122Type underlyingType = Enum.GetUnderlyingType(valueType);
UI\ObjectTag.cs (6)
43private Type _type; 54Type type, string tagName, 101_type = Type.GetTypeFromCLSID(clsid); 131_type = Type.GetTypeFromProgID(tmp); 183internal Type ObjectType { 191internal Type DeclaredType {
UI\Page.cs (4)
301private static Type _scriptManagerType; 1474public static HtmlTextWriter CreateHtmlTextWriterFromType(TextWriter tw, Type writerType) { 6379Type scriptManagerType = ScriptManagerType; 6396internal Type ScriptManagerType {
UI\PageParser.cs (16)
79private Type _previousPageType; 80internal Type PreviousPageType { get { return _previousPageType; } } 82private Type _masterPageType; 83internal Type MasterPageType { get { return _masterPageType; } } 156internal override Type DefaultBaseType { get { return typeof(System.Web.UI.Page); } } 158internal override Type DefaultFileLevelBuilderType { 183Type type = GetReferencedType(_configMasterPageFile); 531Type type = GetReferencedType(value); 680private static Type s_defaultPageBaseType; 682public static Type DefaultPageBaseType { 696private static Type s_defaultUserContorlBaseType; 698public static Type DefaultUserControlBaseType { 712private static Type s_defaultApplicationBaseType; 714public static Type DefaultApplicationBaseType { 728private static Type s_defaultPageParserFilterType; 730public static Type DefaultPageParserFilterType {
UI\PageParserFilter.cs (6)
96internal bool AllowControlInternal(Type controlType, ControlBuilder builder) { 104public virtual bool AllowControl(Type controlType, ControlBuilder builder) { 109public virtual bool AllowBaseType(Type baseType) { 117Type buildProviderType = CompilationUtil.GetBuildProviderTypeFromExtension( 242public virtual Type GetNoCompileUserControlType() { 247protected void AddControl(Type type, IDictionary attributes) {
UI\PageTheme.cs (2)
40Type ctrlType = subBuilder.ControlType; 88public static object CreateSkinKey(Type controlType, String skinID) {
UI\PageThemeParser.cs (1)
43internal override Type DefaultBaseType {
UI\ParseChildrenAsPropertiesAttribute.cs (3)
35private Type _childControlType; 52public ParseChildrenAttribute(Type childControlType) : this(false, null) { 82public Type ChildControlType {
UI\PartialCachingControl.cs (3)
547private string GetCssStyleRenderString(Type htmlTextWriterType) { 761private Type _createCachedControlType; 767internal PartialCachingControl(IWebObjectFactory objectFactory, Type createCachedControlType,
UI\PropertyConverter.cs (7)
19private static readonly Type[] s_parseMethodTypes = new Type[] { typeof(string) }; 20private static readonly Type[] s_parseMethodTypesWithSOP = new Type[] { typeof(string), typeof(IServiceProvider) }; 33public static object EnumFromString(Type enumType, string value) { 49public static string EnumToString(Type enumType, object enumValue) { 64public static object ObjectFromString(Type objType, MemberInfo propertyInfo, string value) {
UI\PropertyEntry.cs (3)
25private Type _type; 90public Type Type { 102public Type DeclaringType {
UI\PropertyMapper.cs (4)
37internal static MemberInfo GetMemberInfo(Type ctrlType, string name, out string nameForCodeGen) { 39Type currentType = ctrlType; 111private static bool IsTypeCLSCompliant(Type type) { 139Type currentType = obj.GetType();
UI\RootBuilder.cs (2)
71public override Type GetChildControlType(string tagName, 74Type type = _typeMapper.GetControlType(tagName, attribs,
UI\SimpleWebHandlerParser.cs (9)
112protected Type GetCompiledTypeFromCache() { 172internal Type GetTypeToCache(Assembly builtAssembly) { 173Type t = null; 194internal virtual void ValidateBaseType(Type t) { 463private Type GetType(string typeName) { 465Type t; 470t = Type.GetType(typeName, true); 519internal override void ValidateBaseType(Type t) { 539public static Type GetCompiledType(string inputFile, HttpContext context) {
UI\SkinBuilder.cs (2)
264public ICollection GetSkinsForControl(Type type) { 286public IDictionary GetSkinControlBuildersForControlType(Type type) {
UI\StateManagedCollection.cs (8)
98protected virtual Type[] GetKnownTypes() { 106Type[] types = GetKnownTypes(); 186Type type = Type.GetType(typeName); 264Type type = Type.GetType(typeName); 384Type objectType = o.GetType(); 469Type objectType = o.GetType();
UI\StringPropertyBuilder.cs (1)
59Type type, string tagName, string ID, IDictionary attribs) {
UI\SupportsEventValidationAttribute.cs (1)
32internal static bool SupportsEventValidation(Type type) {
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\TemplateBuilder.cs (5)
29private Type _containerType; 47public Type ContainerType { 57public TemplateContainerAttribute(Type containerType) : this(containerType, BindingDirection.OneWay) { 64public TemplateContainerAttribute(Type containerType, BindingDirection bindingDirection) { 90public override void Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, string tagName, string ID, IDictionary attribs) {
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\TemplateControlParser.cs (3)
144Type t = GetReferencedType(virtualPath); 272internal Type GetDirectiveType(IDictionary directive, string directiveName) { 276Type resultType = null;
UI\TemplateParser.cs (19)
129private Type _baseType; 130internal Type BaseType { 159internal abstract Type DefaultBaseType { get; } 589Type fileLevelBuilderType = GetFileLevelControlBuilderType(); 613internal virtual Type DefaultFileLevelBuilderType { 625private Type GetFileLevelControlBuilderType() { 1482Type childType = null; 1819Type interfaceType = GetType(interfaceName); 2071Type baseType = null; 2344internal Type GetType(string typeName, bool ignoreCase) { 2351internal Type GetType(string typeName, bool ignoreCase, bool throwOnError) { 2374Type t; 2395internal Type GetType(string typeName) { 2651internal void AddControl(Type type, IDictionary attributes) { 2844internal Type MapStringToType(string typeName, IDictionary attribs) { 2897internal void AddTypeDependency(Type type) { 2911private void AddBaseTypeDependencies(Type type) { 2925Type[] interfaceTypes = type.GetInterfaces(); 2926foreach (Type interfaceType in interfaceTypes)
UI\ThemeableAttribute.cs (1)
89public static bool IsTypeThemeable(Type type) {
UI\TraceContext.cs (3)
656Type strtype = typeof(string); 657Type inttype = typeof(int); 658Type doubletype = typeof(double);
UI\UserControlParser.cs (2)
53internal override Type DefaultBaseType { get { return typeof(System.Web.UI.UserControl); } } 60internal override Type DefaultFileLevelBuilderType {
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\ViewStateModeByIdAttribute.cs (1)
22internal static bool IsEnabled(Type type) {
UI\WebControls\AdRotator.cs (4)
59private static readonly Type _adrotatorType = typeof(AdRotator); 60private static readonly Type[] _AdCreatedParameterTypes = {typeof(AdCreatedEventArgs)}; 508private bool IsBindableType(Type type) { 517Type type = this.GetType();
UI\WebControls\AutoGeneratedField.cs (2)
52public Type DataType { 56return (Type)o;
UI\WebControls\AutoGeneratedFieldProperties.cs (2)
71public Type Type { 75return (Type)o;
UI\WebControls\BaseDataList.cs (1)
525public static bool IsBindableType(Type type) {
UI\WebControls\CallingDataMethodsEventArgs.cs (1)
12public Type DataMethodsType {
UI\WebControls\CheckBox.cs (1)
187Type t = this.GetType();
UI\WebControls\Content.cs (2)
35public override Type BindingContainerType { 80Type type, string tagName, string ID, IDictionary attribs) {
UI\WebControls\ContentPlaceHolder.cs (1)
23Type type, string tagName, string ID, IDictionary attribs) {
UI\WebControls\DataBoundControlHelper.cs (6)
79internal static bool IsBindableType(Type type, bool enableEnums) { 84Type underlyingType = Nullable.GetUnderlyingType(type); 130Type dataControlExtensionsType = Assembly.Load(AssemblyRef.SystemWebDynamicData).GetType("System.Web.UI.DataControlExtensions"); 134types: new Type[] { typeof(INamingContainer), typeof(Type) }, 139Type entityType = BuildManager.GetType(entityTypeName, throwOnError: false);
UI\WebControls\DataControlFieldCollection.cs (3)
19private static readonly Type[] knownTypes = new Type[] { 113protected override Type[] GetKnownTypes() {
UI\WebControls\DataGrid.cs (4)
879Type sampleItemType = null; 885Type dataSourceType = realDataSource.GetType(); 888PropertyInfo itemProp = dataSourceType.GetProperty("Item", BindingFlags.Public | BindingFlags.Instance, null, null, new Type[] { typeof(int) }, null); 945Type propType = pd.PropertyType;
UI\WebControls\DataSourceSelectResultProcessingParameters.cs (1)
19public Type ModelType { get; set; }
UI\WebControls\DetailsView.cs (1)
2807public virtual bool IsBindableType(Type type) {
UI\WebControls\DetailsViewRowsGenerator.cs (3)
25Type dataItemType = null; 73Type propertyType = pd.PropertyType; 103private bool ShouldGenerateField(Type propertyType, DetailsView detailsView) {
UI\WebControls\EmbeddedMailObject.cs (1)
63public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
UI\WebControls\EmptyStringExpandableObjectConverter.cs (1)
22public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
UI\WebControls\ErrorStyle.cs (1)
47object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
UI\WebControls\ErrorTableItemStyle.cs (1)
45object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
UI\WebControls\FontNamesConverter.cs (2)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 58public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
UI\WebControls\FontUnitConverter.cs (5)
28public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 64public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 76/// <para>Converts the specified <see cref='System.Web.UI.WebControls.FontUnit'/> into the specified <see cref='System.Type' qualify='true'/>. </para> 78public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 130member = typeof(FontUnit).GetConstructor(new Type[] { typeof(Unit) });
UI\WebControls\FormView.cs (1)
2434public virtual bool IsBindableType(Type type) {
UI\WebControls\GridView.cs (1)
941public virtual bool IsBindableType(Type type) {
UI\WebControls\GridViewColumnsGenerator.cs (5)
36Type sampleItemType = null; 42Type dataSourceType = realDataSource.GetType(); 45PropertyInfo itemProp = dataSourceType.GetProperty("Item", BindingFlags.Public | BindingFlags.Instance, null, null, new Type[] { typeof(int) }, null); 119Type propertyType = pd.PropertyType; 148private bool ShouldGenerateField(Type propertyType, GridView gridView) {
UI\WebControls\HorizontalAlignConverter.cs (3)
39public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 73public override bool CanConvertTo(ITypeDescriptorContext context, Type sourceType) { 81public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
UI\WebControls\HotSpotCollection.cs (3)
24private static readonly Type[] knownTypes = new Type[] { 70protected override Type[] GetKnownTypes() {
UI\WebControls\ListControl.cs (1)
264Type t = this.GetType();
UI\WebControls\Menu.cs (4)
102private Type _designTimeTextWriterType; 1927ConstructorInfo constructor = _designTimeTextWriterType.GetConstructor(new Type[] { typeof(TextWriter) }); 2442Type writerType = data["DesignTimeTextWriterType"] as Type;
UI\WebControls\MenuItemBindingCollection.cs (3)
18private static readonly Type[] knownTypes = new Type[] { typeof(MenuItemBinding) }; 115protected override Type[] GetKnownTypes() {
UI\WebControls\MenuItemStyleCollection.cs (3)
14private static readonly Type[] knownTypes = new Type[] { typeof(MenuItemStyle) }; 63protected override Type[] GetKnownTypes() {
UI\WebControls\ModelDataSourceView.cs (12)
379Type selectMethodReturnType = method.MethodInfo.ReturnType; 384Type modelType = ModelType; 389foreach (Type typeParameter in selectMethodReturnType.GetGenericArguments()) { 395Type queryableModelType = (modelType != null) ? typeof(IQueryable<>).MakeGenericType(modelType) : null; 430private Type ExtractAsyncSelectReturnType(Type t) { 434Type[] typeArguments = t.GetGenericArguments(); 460Type modelType = selectResultProcessingOptions.ModelType; 536Type modelType = ModelType; 539Type enumerableModelType = (modelType != null) ? typeof(IEnumerable<>).MakeGenericType(modelType) : typeof(IEnumerable); 1121Type type; 1280private Type ModelType {
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\WebControls\Parameter.cs (1)
328private static bool IsNullableType(Type type) {
UI\WebControls\ParameterCollection.cs (3)
34private static readonly Type[] knownTypes = new Type[] { 162protected override Type[] GetKnownTypes() {
UI\WebControls\QueryExtensions.cs (1)
51new Type[] { source.ElementType, property.Type },
UI\WebControls\StringArrayConverter.cs (2)
27public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 61public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
UI\WebControls\StyleCollection.cs (3)
18private static readonly Type[] knownTypes = new Type[] { typeof(Style) }; 73protected override Type[] GetKnownTypes() {
UI\WebControls\SubMenuStyle.cs (1)
254 object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
UI\WebControls\SubMenuStyleCollection.cs (3)
14private static readonly Type[] knownTypes = new Type[] { typeof(SubMenuStyle) }; 63protected override Type[] GetKnownTypes() {
UI\WebControls\Substitution.cs (1)
75private HttpResponseSubstitutionCallback GetDelegate(Type targetType, string methodName) {
UI\WebControls\TreeNodeBindingCollection.cs (3)
18private static readonly Type[] knownTypes = new Type[] { typeof(TreeNodeBinding) }; 110protected override Type[] GetKnownTypes() {
UI\WebControls\TreeNodeStyleCollection.cs (3)
14private static readonly Type[] knownTypes = new Type[] { typeof(TreeNodeStyle) }; 63protected override Type[] GetKnownTypes() {
UI\WebControls\TreeView.cs (3)
3452public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 3460public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 3483public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {
UI\WebControls\unitconverter.cs (4)
25public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 40public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 82public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 98member = typeof(Unit).GetConstructor(new Type[] { typeof(double), typeof(UnitType) });
UI\WebControls\ValidatorCompatibilityHelper.cs (9)
17Type scriptManagerType = control.Page.ScriptManagerType; 29Type scriptManagerType = control.Page.ScriptManagerType; 40public static void RegisterClientScriptResource(Control control, Type type, string resourceName) { 41Type scriptManagerType = control.Page.ScriptManagerType; 52Type scriptManagerType = control.Page.ScriptManagerType; 62public static void RegisterOnSubmitStatement(Control control, Type type, string key, string script) { 63Type scriptManagerType = control.Page.ScriptManagerType; 73public static void RegisterStartupScript(Control control, Type type, string key, string script, bool addScriptTags) { 74Type scriptManagerType = control.Page.ScriptManagerType;
UI\WebControls\VerticalAlignConverter.cs (3)
38public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 71public override bool CanConvertTo(ITypeDescriptorContext context, Type sourceType) { 79public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
UI\WebControls\WebColorConverter.cs (1)
66public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
UI\WebControls\xml.cs (1)
35public override Type GetChildControlType(string tagName, IDictionary attribs) {
UI\WebControls\XmlDataSourceNodeDescriptor.cs (3)
64object ICustomTypeDescriptor.GetEditor(Type editorBaseType) { 113public override Type ComponentType { 125public override Type PropertyType {
UI\WebControls\XmlHierarchyData.cs (3)
153object ICustomTypeDescriptor.GetEditor(Type editorBaseType) { 201public override Type ComponentType { 213public override Type PropertyType {
UI\WebParts\BlobPersonalizationState.cs (3)
493Type controlType = null; 505controlType = (Type)item; 1218public Type _controlType;
UI\WebParts\ConnectionConsumerAttribute.cs (4)
18private Type _connectionPointType; 38public ConnectionConsumerAttribute(string displayName, Type connectionPointType) : this(displayName) { 46public ConnectionConsumerAttribute(string displayName, string id, Type connectionPointType) : this(displayName, connectionPointType) { 84public Type ConnectionPointType {
UI\WebParts\ConnectionInterfaceCollection.cs (7)
31foreach (Type existingConnectionInterface in existingConnectionInterfaces) { 43if (!(obj is Type)) { 51public bool Contains(Type value) { 55public int IndexOf(Type value) { 59public Type this[int index] { 61return (Type)InnerList[index]; 65public void CopyTo(Type[] array, int index) {
UI\WebParts\ConnectionPoint.cs (6)
20private Type _controlType; 21private Type _interfaceType; 33internal ConnectionPoint(MethodInfo callbackMethod, Type interfaceType, Type controlType, string displayName, string id, bool allowsMultipleConnections) { 74public Type ControlType { 80public Type InterfaceType {
UI\WebParts\ConnectionProviderAttribute.cs (4)
18private Type _connectionPointType; 38public ConnectionProviderAttribute(string displayName, Type connectionPointType) : this(displayName) { 46public ConnectionProviderAttribute(string displayName, string id, Type connectionPointType) : this(displayName, connectionPointType) { 84public Type ConnectionPointType {
UI\WebParts\ConnectionsZone.cs (8)
118foreach (Type type in availableTransformerTypes) { 671Type transformerType = provider.TransformerType; 755Type transformerType = consumer.TransformerType; 2322private Type _transformerType; 2328protected ConnectionPointInfo(WebPart webPart, Type transformerType) : this(webPart) { 2332public Type TransformerType { 2353Type transformerType) : base(webPart, transformerType) { 2372Type transformerType) : base(webPart, transformerType) {
UI\WebParts\ConsumerConnectionPoint.cs (3)
17internal static readonly Type[] ConstructorTypes; 24public ConsumerConnectionPoint(MethodInfo callbackMethod, Type interfaceType, Type controlType,
UI\WebParts\ImportCatalogPart.cs (1)
227Type partType = WebPartUtil.DeserializeType(partTypeName, true);
UI\WebParts\PersonalizableAttribute.cs (3)
23internal static readonly Type PersonalizableAttributeType = typeof(PersonalizableAttribute); 153public static ICollection GetPersonalizableProperties(Type type) { 169internal static IDictionary GetPersonalizablePropertyEntries(Type type) {
UI\WebParts\PersonalizableTypeEntry.cs (4)
20private Type _type; 24public PersonalizableTypeEntry(Type type) { 100Type declaringTypeX = ((PropertyInfo)x).DeclaringType; 101Type declaringTypeY = ((PropertyInfo)y).DeclaringType;
UI\WebParts\PersonalizationStateQuery.cs (3)
16private static readonly Dictionary<String, Type> _knownPropertyTypeMappings; 21_knownPropertyTypeMappings = new Dictionary<String, Type>(StringComparer.OrdinalIgnoreCase); 79Type valueType = _knownPropertyTypeMappings[queryKey];
UI\WebParts\PropertyGridEditorPart.cs (2)
193Type propertyType = pd.PropertyType; 337Type propertyType = pd.PropertyType;
UI\WebParts\ProviderConnectionPoint.cs (3)
17internal static readonly Type[] ConstructorTypes; 24public ProviderConnectionPoint(MethodInfo callbackMethod, Type interfaceType, Type controlType,
UI\WebParts\ProxyWebPart.cs (1)
44Type originalType;
UI\WebParts\TransformerTypeCollection.cs (10)
28internal int Add(Type value) { 37foreach (Type existingTransformerType in existingTransformerTypes) { 49if (!(obj is Type)) { 52if (!((Type)obj).IsSubclassOf(typeof(WebPartTransformer))) { 53throw new ArgumentException(SR.GetString(SR.WebPartTransformerAttribute_NotTransformer, ((Type)obj).Name), 61public bool Contains(Type value) { 65public int IndexOf(Type value) { 69public Type this[int index] { 71return (Type)InnerList[index]; 75public void CopyTo(Type[] array, int index) {
UI\WebParts\WebPartAuthorizationEventArgs.cs (3)
12private Type _type; 18public WebPartAuthorizationEventArgs(Type type, string path, string authorizationFilter, bool isShared) { 53public Type Type {
UI\WebParts\WebPartConnection.cs (3)
309Type transformerType = transformer.GetType(); 325Type transformerConsumerType = WebPartTransformerAttribute.GetConsumerType(transformerType); 326Type transformerProviderType = WebPartTransformerAttribute.GetProviderType(transformerType);
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) {
UI\WebParts\WebPartManagerInternals.cs (1)
39public object CreateObjectFromType(Type type) {
UI\WebParts\WebPartMenuStyle.cs (1)
164object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
UI\WebParts\WebPartTransformerAttribute.cs (18)
22private Type _consumerType; 23private Type _providerType; 25public WebPartTransformerAttribute(Type consumerType, Type providerType) { 38public Type ConsumerType { 44public Type ProviderType { 50public static Type GetConsumerType(Type transformerType) { 54public static Type GetProviderType(Type transformerType) { 61private static Type[] GetTransformerTypes(Type transformerType) { 71Type[] types = (Type[])transformerCache[transformerType]; 80private static Type[] GetTransformerTypesFromAttribute(Type transformerType) { 81Type[] types = new Type[2];
UI\WebParts\WebPartUtil.cs (9)
17internal static object CreateObjectFromType(Type type) { 23internal static Type DeserializeType(string typeName, bool throwOnError) { 27internal static Type[] GetTypesForConstructor(ConstructorInfo constructor) { 30Type[] types = new Type[parameters.Length]; 37internal static bool IsConnectionPointTypeValid(Type connectionPointType, bool isConsumer) { 46Type baseType = isConsumer ? typeof(ConsumerConnectionPoint) : typeof(ProviderConnectionPoint); 51Type[] constructorTypes = isConsumer ? ConsumerConnectionPoint.ConstructorTypes : 65internal static string SerializeType(Type type) {
Util\AppVerifier.cs (2)
195Type httpHandlerType = null; 674Type type = method.ReflectedType;
Util\FactoryGenerator.cs (17)
64private Type _factoryInterface; 65private Type _returnedType; 68private Type[] _emptyParameterList = new Type[] { }; 69private Type[] _interfacesToImplement; 73private FactoryGenerator(Type returnedType, Type factoryInterface) { 80_methodToOverride = factoryInterface.GetMethod("CreateInstance", new Type[0]); 86_interfacesToImplement = new Type[1]; 92internal static void CheckPublicParameterlessConstructor(Type type) { 101ConstructorInfo constructor = type.GetConstructor(Type.EmptyTypes); 111Type GetFactoryTypeWithAssert(Type type) { 115Type factoryType; 163ConstructorInfo cons = type.GetConstructor(Type.EmptyTypes); 176internal IWebObjectFactory CreateFactory(Type type) { 179Type factoryType = GetFactoryTypeWithAssert(type);
Util\FastDelegateCreator.cs (2)
37ConstructorInfo delegateCtor = typeof(TDelegate).GetConstructor(new Type[] { typeof(object), typeof(IntPtr) }); 43parameterTypes: new Type[] { typeof(object), typeof(IntPtr) },
Util\FastPropertyAccessor.cs (20)
31private static Type[] _getPropertyParameterList = new Type[] { typeof(object) }; 32private static Type[] _setPropertyParameterList = new Type[] { typeof(object), typeof(object) }; 33private static Type[] _interfacesToImplement; 54_interfacesToImplement = new Type[1]; 62Type GetPropertyAccessorTypeWithAssert(Type type, string propertyName, 65Type accessorType; 69Type propertyType; 150ConstructorInfo cons = typeof(InvalidOperationException).GetConstructor(Type.EmptyTypes); 255private static void GetPropertyInfo(Type type, string propertyName, out PropertyInfo propInfo, out FieldInfo fieldInfo, out Type declaringType) { 299private static IWebPropertyAccessor GetPropertyAccessor(Type type, string propertyName) { 324Type declaringType; 353Type propertyAccessorType; 386Type declaringType; 399private static PropertyInfo GetPropertyMostSpecific(Type type, string name) { 401Type currentType = type; 426Type declaringType = null;
Util\HashCodeCombiner.cs (1)
94internal void AddObject(Type t) {
Util\HttpEncoder.cs (1)
144Type encoderType = ConfigUtil.GetType(encoderTypeName, "encoderType", runtimeSection);
Util\IObjectFactory.cs (1)
18Type InstantiatedType { get; }
Util\ReflectionUtil.cs (3)
27Type targetType = typeof(T); 58Type targetType = typeof(T); 62parameterTypes: new Type[] { targetType },
Util\RequestValidator.cs (1)
49Type validatorType = ConfigUtil.GetType(validatorTypeName, "requestValidationType", runtimeSection);
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) {
WebSysDefaultValueAttribute.cs (2)
15private Type _type; 18internal WebSysDefaultValueAttribute(Type type, string value) : base(value) {
System.Web.ApplicationServices (5)
Hosting\CustomLoaderAttribute.cs (2)
14public CustomLoaderAttribute(Type customLoaderType) { 23public Type CustomLoaderType { get; private set; }
Util\SystemWebProxy.cs (3)
33Type type = Type.GetType("System.Web.Security.MembershipAdapter, " + AssemblyRef.SystemWeb, throwOnError:false); 47private static object DangerousCreateInstance(Type type) {
System.Web.DataVisualization (84)
Common\Borders3D\Borders3D.cs (6)
618object IServiceProvider.GetService(Type serviceType) 636 public void Register(string name, Type borderType) 653 Type[] interfaces = borderType.GetInterfaces(); 654 foreach(Type type in interfaces) 689 ((Type)registeredBorderTypes[name]).Assembly. 690 CreateInstance(((Type)registeredBorderTypes[name]).ToString());
Common\ChartTypes\ChartTypeRegistry.cs (6)
148 object IServiceProvider.GetService(Type serviceType) 166 public void Register(string name, Type chartType) 183 Type[] interfaces = chartType.GetInterfaces(); 184 foreach(Type type in interfaces) 229 ((Type)registeredChartTypes[name]).Assembly. 230 CreateInstance(((Type)registeredChartTypes[name]).ToString());
Common\Converters\AnnotationConverters.cs (2)
70 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 111public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\AxesArrayConverter.cs (1)
81 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\AxisConverters.cs (5)
66 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 277 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 349 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 489 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 629 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\CustomAttributesConverters.cs (7)
61 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 77 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 95 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) 507 Type componentType, 509 Type propertyType, 869 public override Type ComponentType 917 public override Type PropertyType
Common\Converters\DataManagerConverters.cs (8)
450 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 482 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 565 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 622 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 679 public SeriesYValueTypeConverter(Type type) : base(type) 726 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 746 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 763 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\ElementPositionConverter.cs (3)
56 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 90 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\LegendConverters.cs (5)
267 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) 318 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 337 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 356 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 466 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
Common\DataManager\DataManager.cs (1)
96 object IServiceProvider.GetService(Type serviceType)
Common\DataManager\DataPoint.cs (3)
1351 Type columnDataType = null; 2103 Type paramType = xValue.GetType(); 2204 Type paramType = yValue[0].GetType();
Common\DataManager\DataSeries.cs (1)
921 internal void CheckSupportedTypes(Type type)
Common\Formulas\FormulaRegistry.cs (6)
67 public void Register(string name, Type moduleType) 87 Type[] interfaces = moduleType.GetInterfaces(); 88 foreach(Type type in interfaces) 111 object IServiceProvider.GetService(Type serviceType) 138 ((Type)registeredModules[name]).Assembly. 139 CreateInstance(((Type)registeredModules[name]).ToString());
Common\General\AxisScrollZoom.cs (2)
1505 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 1591 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\General\Chart.cs (3)
447Type selectArgsType = dataSource.GetType().Assembly.GetType("System.Web.UI.DataSourceSelectArguments", true); 448ConstructorInfo ci = selectArgsType.GetConstructor(new Type[] { }); 1584 object IServiceProvider.GetService(Type serviceType)
Common\General\ChartSerializer.cs (1)
168 internal object GetService(Type serviceType)
Common\General\DataManipulator.cs (1)
972 Type columnType = typeof(double);
Common\General\Selection.cs (1)
3372object IServiceProvider.GetService(Type serviceType)
Common\Utilities\CustomAttributesRegistry.cs (3)
429 object IServiceProvider.GetService(Type serviceType) 1893 public Type ValueType = typeof(int); 1956 Type valueType,
Common\Utilities\ImageLoader.cs (1)
101 object IServiceProvider.GetService(Type serviceType)
Common\Utilities\KeywordsRegistry.cs (1)
137 object IServiceProvider.GetService(Type serviceType)
Common\Utilities\XmlSerializer.cs (10)
638 Type currentType = objectToSerialize.GetType(); 748 Type itemType = null; 751itemType = Type.GetType(typeof(Chart).Namespace + "." + itemTypeName, false, true); 755 PropertyInfo pi = list.GetType().GetProperty("Item", itemType, new Type[] {typeof(string)} ); 756MethodInfo mi = list.GetType().GetMethod("IndexOf", new Type[] { typeof(String) }); 842ci = itemType.GetConstructor(Type.EmptyTypes); 846ci = pi.PropertyType.GetConstructor(Type.EmptyTypes); 2951 Type[] assemblyTypes = null; 2960PropertyInfo listItemPI = objectToDeserialize.GetType().GetProperty("Item", new Type[] { typeof(int) }); 2981foreach (Type type in assemblyTypes)
WebForm\ChartWebControl.cs (1)
3110 public object GetService(Type serviceType)
WebForm\Converters\MapAreaCoordinatesConverter.cs (2)
39public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 85public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
WebForm\General\ChartHttpHandler.cs (4)
947private Type _customHandlerType = null; 952public Type HandlerType 958this._customHandlerType = Type.GetType(this.CustomHandlerName, true); 1046new Type[0],
System.Web.DynamicData (134)
DynamicData\ContextConfiguration.cs (1)
16public Func<Type, TypeDescriptionProvider> MetadataProviderFactory { get; set; }
DynamicData\DataSourceUtil.cs (4)
14private static Dictionary<Type, TypeCode> s_typeToTypeCodeMap; 16internal static TypeCode TypeCodeFromType(Type type) { 22Dictionary<Type, TypeCode> typeNameToTypeCode = new Dictionary<Type, TypeCode>();
DynamicData\DynamicControl.cs (1)
195var ucType = FieldTemplate.GetType();
DynamicData\DynamicDataExtensions.cs (5)
259public static void LoadWithForeignKeys(this LinqDataSource dataSource, Type rowType) { 384public static Type GetEnumType(this MetaColumn column) { 388internal static Type GetEnumType(this IMetaColumn column) { 389return column.Attributes.GetAttributePropertyValue<EnumDataTypeAttribute, Type>(a => a.EnumType, null) ?? 393internal static bool IsEnumType(this MetaColumn column, out Type enumType) {
DynamicData\DynamicHyperLink.cs (1)
257Type contextType = BuildManager.GetType(contextTypeName, /* throwOnError */ true, /* ignoreCase */ true);
DynamicData\DynamicValidator.cs (3)
24private Dictionary<Type, bool> _ignoredModelValidationAttributes; 131internal static bool TryConvertControlValue(string controlValue, Type columnType, out object value) { 175internal void SetIgnoredModelValidationAttributes(Dictionary<Type, bool> ignoredModelValidationAttributes) {
DynamicData\FieldTemplateFactory.cs (11)
24private Dictionary<Type, string> _typesToTemplateNames; 25private Dictionary<Type, Type> _typesFallBacks; 68_typesToTemplateNames = new Dictionary<Type, string>(); 74_typesFallBacks = new Dictionary<Type, Type>(); 95private Type GetFallBackType(Type t) { 97Type fallbackType; 222private string GetVirtualPathForTypeWithFallback(Type fieldType, MetaColumn column, DataBoundControlMode mode) { 255Type fallbackType = GetFallBackType(fieldType);
DynamicData\FieldTemplateUserControl.cs (6)
23private Dictionary<Type, bool> _ignoredModelValidationAttributes; 308Type enumType; 317private void FillEnumListControl(ListControl list, Type enumType) { 330Type enumType; 549protected void IgnoreModelValidationAttribute(Type attributeType) 553_ignoredModelValidationAttributes = new Dictionary<Type, bool>();
DynamicData\FilterRepeater.cs (1)
151Type contextType = null;
DynamicData\FilterUserControlBase.cs (3)
149Type contextType = GetContextType(ContextTypeName); 198private Type GetContextType(string contextTypeName) { 199Type contextType = null;
DynamicData\IMetaColumn.cs (1)
12Type ColumnType { get; }
DynamicData\IMetaModel.cs (5)
11IMetaTable GetTable(string tableName, Type contextType); 13IMetaTable GetTable(Type entityType); 16void RegisterContext(Type contextType); 17void RegisterContext(Type contextType, ContextConfiguration configuration); 22bool TryGetTable(Type entityType, out IMetaTable table);
DynamicData\IMetaTable.cs (3)
23Type DataContextType { get; } 26Type EntityType { get; } 54Type RootEntityType { get; }
DynamicData\MetaColumn.cs (3)
18private Type _type; 47public Type ColumnType { 334Type enumType;
DynamicData\MetaForeignKeyColumn.cs (1)
194Type rowType = foreignKeyReference.GetType();
DynamicData\MetaModel.cs (23)
20private List<Type> _contextTypes = new List<Type>(); 34private readonly static ConcurrentDictionary<Type, bool> s_registeredMetadataTypes = new ConcurrentDictionary<Type, bool>(); 117public static MetaModel GetModel(Type contextType) { 138public void RegisterContext(Type contextType) { 147public void RegisterContext(Type contextType, ContextConfiguration configuration) { 179Type contextType = contextInstance.GetType(); 291internal static MetaModel CreateSimpleModel(Type entityType) { 363private static void RegisterMetadataTypeDescriptionProvider(TableProvider entity, Func<Type, TypeDescriptionProvider> providerFactory) { 365Type entityType = entity.EntityType; 409public MetaTable GetTable(Type entityType) { 427public bool TryGetTable(Type entityType, out MetaTable table) { 485public MetaTable GetTable(string tableName, Type contextType) { 581public ContextTypeTableNamePair(Type contextType, string tableName) { 592public Type ContextType { get; private set; } 615internal static void AddModel(Type contextType, MetaModel model) { 623internal static bool TryGetModel(Type contextType, out MetaModel model) { 628internal static void AddTable(Type entityType, MetaTable table) { 645internal static bool TryGetTable(Type type, out MetaTable table) { 667bool IMetaModel.TryGetTable(Type entityType, out IMetaTable table) { 683IMetaTable IMetaModel.GetTable(string tableName, Type contextType) { 691IMetaTable IMetaModel.GetTable(Type entityType) {
DynamicData\MetaTable.cs (6)
83public Type DataContextType { 125public Type EntityType { 247public Type RootEntityType { 345public static MetaTable CreateTable(Type entityType) { 770public static MetaTable GetTable(Type entityType) { 952public static bool TryGetTable(Type entityType, out MetaTable table) {
DynamicData\ModelProviders\ColumnProvider.cs (1)
85public virtual Type ColumnType { get; protected set; }
DynamicData\ModelProviders\DataModelProvider.cs (1)
17public virtual Type ContextType { get; protected set; }
DynamicData\ModelProviders\DLinqColumnProvider.cs (4)
63internal static int ProcessMaxLength(Type memberType, String dbType) { 92internal static bool ProcessIsSortable(Type memberType, String dbType) { 126private static Type GetMemberType(MetaDataMember member) { 127Type type = member.Type;
DynamicData\ModelProviders\DLinqDataModelProvider.cs (3)
24Type entityType = GetEntityType(prop); 37private LinqMetaTable GetLinqTable(DataContext context, Type entityType) { 41private Type GetEntityType(PropertyInfo prop) {
DynamicData\ModelProviders\DLinqTableProvider.cs (1)
59private IEnumerable<PropertyInfo> GetOrderedProperties(Type type) {
DynamicData\ModelProviders\EFColumnProvider.cs (1)
92public override Type ColumnType {
DynamicData\ModelProviders\EFDataModelProvider.cs (9)
16private Dictionary<EdmType, Type> _entityTypeToClrType = new Dictionary<EdmType, Type>(); 85internal Type GetClrType(EdmType entityType) { 86var result = _entityTypeToClrType[entityType]; 91internal Type GetClrType(EnumType enumType) { 96private Type GetClrType(EntityType entityType) { 103Type parentClrType = null; 109Type rootClrType = GetClrType(entitySet.ElementType); 110Type clrType = GetClrType(entityType);
DynamicData\ModelProviders\EFTableProvider.cs (4)
13Type entityClrType, Type parentEntityClrType, Type rootEntityClrType, string name) 42private static bool IsPublicProperty(Type entityClrType, string propertyName) {
DynamicData\ModelProviders\SchemaCreator.cs (4)
27public virtual bool ValidDataContextType(Type contextType) { 32internal static bool IsDataContext(Type contextType) { 36internal static bool IsObjectContext(Type contextType) { 40private static bool IsValidType<T>(Type contextType) where T : class {
DynamicData\ModelProviders\SimpleModelProvider.cs (1)
12public SimpleDataModelProvider(Type entityType) {
DynamicData\ModelProviders\SimpleTableProvider.cs (1)
13public SimpleTableProvider(DataModelProvider modelProvider, Type entityType)
DynamicData\ModelProviders\TableProvider.cs (4)
12private Type _rootEntityType; 62public virtual Type EntityType { get; protected set; } 90public virtual Type ParentEntityType { get; protected set; } 96public virtual Type RootEntityType {
DynamicData\QueryableFilterUserControl.cs (3)
45Type enumType; 56private void FillEnumListControl(ListControl list, Type enumType) { 156MethodCallExpression whereCall = Expression.Call(typeof(Queryable), "Where", new Type[] { source.ElementType }, source.Expression, Expression.Quote(lambda));
DynamicData\Util\DictionaryCustomTypeDescriptor.cs (2)
44public override Type ComponentType { 67public override Type PropertyType {
DynamicData\Util\MetaTableHelper.cs (1)
105Type contextType = dynamicDataSource.ContextType;
DynamicData\Util\Misc.cs (10)
33public static MetaTable GetTableFromTypeHierarchy(Type entityType) { 38Type type = entityType; 50public static Type RemoveNullableFromType(Type type) { 84public static object ChangeType(object value, Type type) { 117internal static bool TypeAllowsNull(Type type) { 142public static IOrderedDictionary GetEnumNamesAndValues(Type enumType) { 163public static object GetUnderlyingTypeValue(Type enumType, object enumValue) { 167public static string GetUnderlyingTypeValueString(Type enumType, object enumValue) { 250var expression = Expression.Call(typeof(Queryable), ordering, new Type[] { query.ElementType, lambda.Body.Type }, query.Expression, lambda);
UI\DataControlExtensions.cs (6)
8private readonly static ConcurrentDictionary<Type, MetaTable> s_MetaTableCache = new ConcurrentDictionary<Type, MetaTable>(); 10public static void EnableDynamicData(this INamingContainer control, Type entityType, object defaults) { 16public static void EnableDynamicData(this INamingContainer control, Type entityType, IDictionary<string, object> defaultValues) { 22public static void EnableDynamicData(this INamingContainer control, Type entityType) { 28private static MetaTable GetTableFromCache(Type entityType) {
System.Web.Entity (69)
System\Data\WebControls\EntityDataSource.cs (2)
98private Type _contextType = null; 240public Type ContextType
System\Data\WebControls\EntityDataSourceColumn.cs (7)
75internal abstract Type ClrType { get; } 150internal override Type ClrType 191private readonly Type clrType; 242internal override Type ClrType 345internal static EntityDataSourceReferenceValueColumn Create(Type clrToType, MetadataWorkspace ocWorkspace, NavigationProperty navigationProperty) 349Type columnType = typeof(EntityDataSourceReferenceValueColumn<>).MakeGenericType(clrToType); 423internal override Type ClrType
System\Data\WebControls\EntityDataSourceMemberPath.cs (3)
34private readonly Type clrType; 50Type parentClrType = EntityDataSourceUtil.GetClrType(ocWorkspace, parentType); 102internal Type ClrType
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (2)
45internal static EntityDataSourceReferenceGroup Create(Type entityType, AssociationSetEnd end) 49Type groupType = typeof(EntityDataSourceReferenceGroup<>).MakeGenericType(entityType);
System\Data\WebControls\EntityDataSourceUtil.cs (32)
232internal static Type GetClrType(MetadataWorkspace ocWorkspace, StructuralType edmType) 239internal static Type GetClrType(MetadataWorkspace ocWorkspace, EnumType edmType) 246internal static ConstructorInfo GetConstructorInfo(Type type) 249ConstructorInfo constructorInfo = type.GetConstructor(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, System.Type.EmptyTypes, null); 259internal static PropertyInfo GetPropertyInfo(Type type, string name) 264PropertyInfo propertyInfo = type.GetProperty(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, null, Type.EmptyTypes, null); 274internal static object InitializeType(Type type) 314internal static Type ConvertTypeCodeToType(TypeCode typeCode) 383internal static Type ConvertDbTypeToType(DbType dbType) 481internal static bool NullCanBeAssignedTo(Type type) 487internal static bool IsNullableType(Type type, out Type underlyingType) 510internal static object ConvertType(object value, Type type, string paramName) 555Type[] types = type.GetGenericArguments(); 569Type underlyingType = null; 696internal static Type GetMemberClrType(MetadataWorkspace ocWorkspace, EdmMember member) 706Type clrType; 738internal static Type MakeNullable(Type type) 1013Type clrToType = EntityDataSourceUtil.GetMemberClrType(ocWorkspace, navigationProperty); 1029Type clrToType = EntityDataSourceUtil.GetClrType(ocWorkspace, toType); 1064static private readonly Type StackOverflowType = typeof(System.StackOverflowException); 1065static private readonly Type OutOfMemoryType = typeof(System.OutOfMemoryException); 1066static private readonly Type ThreadAbortType = typeof(System.Threading.ThreadAbortException); 1067static private readonly Type NullReferenceType = typeof(System.NullReferenceException); 1068static private readonly Type AccessViolationType = typeof(System.AccessViolationException); 1069static private readonly Type SecurityType = typeof(System.Security.SecurityException); 1070static private readonly Type AppDomainUnloadedType = typeof(System.AppDomainUnloadedException); 1071static private readonly Type CannotUnloadAppDomainType = typeof(CannotUnloadAppDomainException); 1072static private readonly Type BadImageFormatType = typeof(BadImageFormatException); 1073static private readonly Type InvalidProgramType = typeof(InvalidProgramException); 1079Type type = e.GetType();
System\Data\WebControls\EntityDataSourceView.cs (8)
184private static readonly Type[] queryBuilderCreatorArgTypes = { typeof(DataSourceSelectArguments), typeof(string), typeof(ObjectParameter[]), 228Type builderType = typeof(EntityDataSourceObjectQueryBuilder<>).MakeGenericType(EntityClrType); 284var elementType = queryReturned.ElementType; 1109Type contextType = null; 1131null, System.Type.EmptyTypes, null); 1541private Type EntityClrType 1547Type clrType = objectItemCollection.GetClrType(EntityOSpaceType); 1736Type valueType = value.GetType();
System\Data\WebControls\EntityDataSourceViewSchema.cs (8)
31Type propertyType = property.PropertyType; 62Type type = GetListItemType(results.GetType()); 101Type propertyType = property.PropertyType; 105Type[] typeArguments = propertyType.GetGenericArguments(); 125private static PropertyInfo GetTypedIndexer(Type type) 153private static Type GetListItemType(Type type) 155Type itemType;
System\Data\WebControls\EntityDataSourceWrapper.cs (1)
84object ICustomTypeDescriptor.GetEditor(Type editorBaseType) { return null; }
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (2)
55private readonly Type _clrEntityType; 158internal Type ClrEntityType
System\Data\WebControls\EntityDataSourceWrapperPropertyDescriptor.cs (2)
54public override Type ComponentType 64public override Type PropertyType
System\Data\WebControls\OrderByBuilder.cs (1)
202expression = Expression.Call(typeof(Queryable), methodName, new Type[] { source.ElementType, memberExpression.Type },
System\Data\WebControls\WebControlParameterProxy.cs (1)
96internal Type ClrType
System.Web.Entity.Design (9)
parent\parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (6)
79private static Stream GetResourceStreamHelper(Assembly assembly, Type type, string name) { 93private static bool DoesAssemblyHaveCustomAttribute(Assembly assembly, Type attrType) { 136public static Stream GetResourceStream(Assembly assembly, Type type, string originalName) { 186public static Stream GetResourceStream(Type type, string originalName) { 200public static Icon CreateIcon(Type type, string originalName) { 214public static Bitmap CreateBitmap(Type type, string originalName) {
System\Data\WebControls\Design\EntityDataSourceDesigner.cs (1)
377Type designerType = GetType();
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (1)
666foreach (Type type in typeDiscoverySvc.GetTypes(typeof(object), false /*excludeGlobalTypes*/))
System\Data\WebControls\Design\Util\DesignerForm.cs (1)
107protected override object GetService(Type serviceType)
System.Web.Extensions (432)
ApplicationServices\ApplicationServicesHostFactory.cs (1)
14protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) {
ApplicationServices\KnownTypesProvider.cs (4)
16public static Type[] GetKnownTypes(ICustomAttributeProvider knownTypeAttributeTarget) 19return new Type[0]; 20Type[] retArray = new Type[ProfileBase.Properties.Count];
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (2)
44private Type _GetCredentialsType = null; 460_GetCredentialsType = Type.GetType(_GetCredentialsTypeName, true, true);
ClientServices\Providers\ClientSettingsProvider.cs (11)
53private static Type [] _KnownTypesArray = null; 124Type propType = Type.GetType(p.TypeName, false, true); 221Type oType = context["SettingsClassType"] as Type; 373internal static Type[] GetKnownTypes(ICustomAttributeProvider knownTypeAttributeTarget) 382_KnownTypesArray = new Type[]{ typeof(bool), 410Type [] temp = new Type[_KnownTypesArray.Length + al.Count]; 433Type [] temp = new Type[_KnownTypesArray.Length + al.Count];
ClientServices\Providers\ProxyHelper.cs (1)
43Type returnType)
ClientServices\Providers\SqlHelper.cs (8)
173private static Type _SqlCeConnectionType = null; 174private static Type _SqlCeParamType = null; 243private static Type GetSqlCeType(string typeName) 246Type t = Type.GetType("System.Data.SqlServerCe." + typeName + ", System.Data.SqlServerCe", 252t = Type.GetType("System.Data.SqlServerCe." + typeName + 260t = Type.GetType("System.Data.SqlServerCe." + typeName + 268return Type.GetType("System.Data.SqlServerCe." + typeName +
Compilation\WCFBuildProvider.cs (2)
605System.Type IContractGeneratorReferenceTypeLoader.LoadType(string typeName) 644public object GetService(Type serviceType)
Compilation\WCFModel\AsmxEndpointPickerExtension.cs (1)
111private bool IsSoapAsmxPort(System.Type addressType, Port port)
Compilation\WCFModel\IContractGeneratorReferenceTypeLoader.cs (2)
30Type LoadType(string typeName); 48IEnumerable<Type> LoadExportedTypes(Assembly assembly);
Compilation\WCFModel\SchemaMerger.cs (13)
34private static Type[] xmlSerializationAttributes = new Type[] { 52private static Type[] ignorablePropertyTypes = new Type[] { 132Type itemType, 210Type itemType = originalItem.GetType(); 554Type itemType = item.GetType(); 645Type elementType = elementAttribute.Type; 699foreach (Type serializationAttibuteType in xmlSerializationAttributes) 717Type propertyType = property.PropertyType; 718foreach (Type ignoreableType in ignorablePropertyTypes) 740public Type ItemType; 743public SchemaTopLevelItemType(Type itemType, string name)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (27)
123private static Type[] unsupportedTypesInFramework30 = new Type[] { 368System.Type typedDataSetSchemaImporterExtension) 558Type sharedType = typeLoader.LoadType(mapping.TypeName); 712System.Type typedDataSetSchemaImporterExtension) 790IEnumerable<Type> referencedTypes = LoadSharedDataContractTypes(proxyOptions, typeLoader, targetFrameworkVersion, importErrors); 793foreach (Type sharedType in referencedTypes) 799IEnumerable<Type> referencedCollectionTypes = LoadSharedCollectionTypes(proxyOptions, typeLoader, importErrors); 802foreach (Type collectionType in referencedCollectionTypes) 832protected static IEnumerable<Type> LoadSharedDataContractTypes( 840Dictionary<Type, ReferencedType> sharedTypeTable = new Dictionary<Type, ReferencedType>(); 851foreach (Type sharedType in typeLoader2.LoadExportedTypes(referencedAssembly)) 859foreach (Type typeInAssembly in referencedAssembly.GetExportedTypes()) 894Type sharedType = typeLoader.LoadType(referencedType.TypeName); 924Type sharedType = typeLoader.LoadType(excludedType.TypeName); 951foreach (Type unsupportedType in GetUnsupportedTypes(targetFrameworkVersion)) 965private static IEnumerable<Type> GetUnsupportedTypes(int targetFrameworkVersion) 974return new Type[0]; 1103private static bool IsTypeShareable(Type t) 1189protected static IEnumerable<Type> LoadSharedCollectionTypes(ClientOptions proxyOptions, IContractGeneratorReferenceTypeLoader typeLoader, IList<ProxyGenerationError> importErrors) 1191List<Type> referencedCollectionTypes = new List<Type>(); 1196Type collectionType = typeLoader.LoadType(referencedCollectionMapping.TypeName); 1245System.Type typedDataSetSchemaImporterExtension) 1386private static void RemoveExtension(Type extensionType, Collection<IWsdlImportExtension> wsdlImportExtensions) 1772private static bool IsDefinedInCodeAttributeCollection(Type type, CodeAttributeDeclarationCollection metadata)
Compilation\XmlSerializer\DataSvcMapFileSerializer.cs (7)
31System.Type t = o.GetType(); 90System.Type t = o.GetType(); 110System.Type t = o.GetType(); 130System.Type t = o.GetType(); 182System.Type t = o.GetType(); 769public override System.Boolean CanSerialize(System.Type type) { 773public override System.Xml.Serialization.XmlSerializer GetSerializer(System.Type type) {
Compilation\XmlSerializer\SvcMapFileSerializer.cs (12)
31System.Type t = o.GetType(); 81System.Type t = o.GetType(); 101System.Type t = o.GetType(); 153System.Type t = o.GetType(); 174System.Type t = o.GetType(); 269System.Type t = o.GetType(); 290System.Type t = o.GetType(); 309System.Type t = o.GetType(); 339System.Type t = o.GetType(); 370System.Type t = o.GetType(); 1494public override System.Boolean CanSerialize(System.Type type) { 1498public override System.Xml.Serialization.XmlSerializer GetSerializer(System.Type type) {
Configuration\ConvertersCollection.cs (1)
80Type t = BuildManager.GetType(converter.Type, false /*throwOnError*/);
DynamicData\IDynamicDataSource.cs (1)
9Type ContextType { get; set; }
Globalization\ClientCultureInfo.cs (3)
62var calendarType = calendar.GetType(); 115Type calendarType = cultureInfo.DateTimeFormat == null ? null : cultureInfo.DateTimeFormat.Calendar.GetType(); 120var key = new Tuple<CultureInfo, Type>(cultureInfo, calendarType);
Handlers\ScriptModule.cs (1)
24private static Type _authenticationServiceType = typeof(System.Web.Security.AuthenticationService); // disambiguation required
Profile\ProfileService.cs (1)
101Type propertyType = settingProperty.PropertyType;
Script\Serialization\JavaScriptConverter.cs (2)
14public abstract IEnumerable<Type> SupportedTypes { 18public abstract object Deserialize(IDictionary<string, object> dictionary, Type type, JavaScriptSerializer serializer);
Script\Serialization\JavaScriptSerializer.cs (13)
29internal static object Deserialize(JavaScriptSerializer serializer, string input, Type type, int depthLimit) { 84private Dictionary<Type, JavaScriptConverter> _converters; 85private Dictionary<Type, JavaScriptConverter> Converters { 88_converters = new Dictionary<Type, JavaScriptConverter>(); 102IEnumerable<Type> supportedTypes = converter.SupportedTypes; 104foreach (Type supportedType in supportedTypes) { 112private JavaScriptConverter GetConverter(Type t) 125internal bool ConverterExistsForType(Type t, out JavaScriptConverter converter) { 144public object Deserialize(string input, Type targetType) { 164public object ConvertToType(object obj, Type targetType) { 233Type type = o.GetType(); 479Type type = o.GetType(); 482Type underlyingType = Enum.GetUnderlyingType(type);
Script\Serialization\JavaScriptTypeResolver.cs (2)
12public abstract Type ResolveType(string id); 13public abstract string ResolveTypeId(Type type);
Script\Serialization\ObjectConverter.cs (26)
18private static readonly Type[] s_emptyTypeArray = new Type[] { }; 19private static Type _listGenericType = typeof(List<>); 20private static Type _enumerableGenericType = typeof(IEnumerable<>); 21private static Type _dictionaryGenericType = typeof(Dictionary<,>); 22private static Type _idictionaryGenericType = typeof(IDictionary<,>); 25private static bool AddItemToList(IList oldList, IList newList, Type elementType, JavaScriptSerializer serializer, bool throwOnError) { 50Type serverType = o.GetType(); 110private static bool ConvertDictionaryToObject(IDictionary<string, object> dictionary, Type type, JavaScriptSerializer serializer, bool throwOnError, out object convertedObject) { 113Type targetType = type; 187Type keyType = type.GetGenericArguments()[0]; 197Type valueType = type.GetGenericArguments()[1]; 204Type t = _dictionaryGenericType.MakeGenericType(keyType, valueType); 270internal static object ConvertObjectToType(object o, Type type, JavaScriptSerializer serializer) { 276private static bool ConvertObjectToTypeMain(object o, Type type, JavaScriptSerializer serializer, bool throwOnError, out object convertedObject) { 312private static bool ConvertObjectToTypeInternal(object o, Type type, JavaScriptSerializer serializer, bool throwOnError, out object convertedObject) { 421private static bool ConvertListToObject(IList list, Type type, JavaScriptSerializer serializer, bool throwOnError, out IList convertedList) { 428Type elementType = typeof(Object); 457Type elementType = type.GetGenericArguments()[0]; 460Type strongTypedEnumerable = _enumerableGenericType.MakeGenericType(elementType); 466Type t = _listGenericType.MakeGenericType(elementType); 521private static bool IsArrayListCompatible(Type type) { 526internal static bool IsClientInstantiatableType(Type t, JavaScriptSerializer serializer) { 560private static bool IsGenericDictionary(Type type) { 567private static bool IsNonNullableValueType(Type type) { 573internal static bool TryConvertObjectToType(object o, Type type, JavaScriptSerializer serializer, out object convertedObject) {
Script\Serialization\SimpleTypeResolver.cs (3)
12public override Type ResolveType(string id) { 13return Type.GetType(id); 16public override string ResolveTypeId(Type type) {
Script\Services\ClientProxyGenerator.cs (1)
254Type serverType = ServicesUtilities.UnwrapNullableType(paramData.ParameterType);
Script\Services\GenerateScriptTypeAttribute.cs (3)
18public GenerateScriptTypeAttribute(Type type) { 26private Type _type; 29public Type Type {
Script\Services\ProxyGenerator.cs (6)
20public static string GetClientProxyScript(Type type, string path, bool debug) { 24public static string GetClientProxyScript(Type type, string path, bool debug, ServiceEndpoint serviceEndpoint) { 45Type wcfProxyType = wcfWebAssembly.GetType(WCFProxyTypeName); 67private static bool IsPageType(Type type) { 71private static bool IsWCFServiceType(Type type) { 76private static bool IsWebServiceType(Type type) {
Script\Services\ServicesUtilities.cs (5)
24internal static string GetClientTypeFromServerType(WebServiceData webServiceData, Type type) 81Type gtd = type; 98internal static Type UnwrapNullableType(Type type) { 101Type genericTypeDefinition = type.GetGenericTypeDefinition();
Script\Services\WebServiceData.cs (17)
34private Dictionary<Type, string> _clientTypeNameDictionary; 100Type compiledType = null; 171internal WebServiceData(Type type, bool pageMethods) 216List<Type> typeList = new List<Type>(); 217Type current = _typeData.Type; 261_clientTypeNameDictionary = new Dictionary<Type, string>(); 298_clientTypeNameDictionary = new Dictionary<Type, string>(); 344Type t = attribute.Type; 357private void ProcessClientType(Type t) { 362private void ProcessClientType(Type t, bool force) { 368internal void ProcessClientType(Type t, bool force, bool isWCF) 393Type[] genericArgs = t.GetGenericArguments(); 429private void ProcessKnownTypes(Type t) 491internal Dictionary<Type, string> ClientTypeNameDictionary { 515public override Type ResolveType(string id) { 525public override string ResolveTypeId(Type type) {
Script\Services\WebServiceEnumData.cs (2)
22internal WebServiceEnumData(string typeName, string typeNamespace, Type t, string[] names, long[] values, bool isULong) 32internal WebServiceEnumData(string typeName, string typeNamespace, Type t, string[] names, Array values, bool isULong)
Script\Services\WebServiceMethodData.cs (2)
115internal Type ReturnType { 192Type paramType = paramDataDictionary[memberName].ParameterInfo.ParameterType;
Script\Services\WebServiceParameterData.cs (3)
14private Type _paramType; 22internal WebServiceParameterData(string paramName, Type paramType, int index) { 48internal Type ParameterType {
Script\Services\WebServiceTypeData.cs (9)
20private Type _actualType; 25static Dictionary<XmlQualifiedName, Type> _nameToType = new Dictionary<XmlQualifiedName, Type>(); 50internal WebServiceTypeData(string name, string ns, Type type) { 102internal Type Type { 108private static void Add(Type type, string localName) { 199internal static List<WebServiceTypeData> GetKnownTypes(Type type, WebServiceTypeData typeData) { 237internal static WebServiceTypeData GetWebServiceTypeData(Type type) { 294Type baseEnumType = _nameToType[baseTypeName];
UI\BundleReflectionHelper.cs (4)
56Type resolverType = value.GetType(); 57Type[] args = new Type[] { typeof(string) }; 117Type bundleResolverType = BuildManager.GetType("System.Web.Optimization.BundleResolver", throwOnError: false);
UI\ClientScriptManagerWrapper.cs (5)
34string IClientScriptManager.GetWebResourceUrl(Type type, string resourceName) { 38void IClientScriptManager.RegisterClientScriptBlock(Type type, string key, string script) { 42void IClientScriptManager.RegisterClientScriptInclude(Type type, string key, string url) { 46void IClientScriptManager.RegisterClientScriptBlock(Type type, string key, string script, bool addScriptTags) { 50void IClientScriptManager.RegisterStartupScript(Type type, string key, string script, bool addScriptTags) {
UI\EmptyStringExpandableObjectConverter.cs (1)
16Type destinationType) {
UI\IClientScriptManager.cs (5)
19string GetWebResourceUrl(Type type, string resourceName); 20void RegisterClientScriptBlock(Type type, string key, string script); 21void RegisterClientScriptInclude(Type type, string key, string url); 22void RegisterClientScriptBlock(Type type, string key, string script, bool addScriptTags); 23void RegisterStartupScript(Type type, string key, string script, bool addScriptTags);
UI\RegisteredScript.cs (4)
16private Type _type; 20internal RegisteredScript(Control control, Type type, string key, string url) { 34Type type, 89public Type Type {
UI\ResourceDefaultValueAttribute.cs (2)
16private Type _type; 19internal ResourceDefaultValueAttribute(Type type, string value)
UI\ScriptControlManager.cs (4)
292Type extenderControlType = extenderControl.GetType(); 296Type[] types = TargetControlTypeCache.GetTargetControlTypes(extenderControlType); 304Type targetControlType = targetControl.GetType(); 305foreach (Type type in types) {
UI\ScriptManager.cs (18)
1428internal virtual void RegisterClientScriptBlockInternal(Control control, Type type, string key, string script, bool addScriptTags) { 1433public static void RegisterClientScriptBlock(Page page, Type type, string key, string script, bool addScriptTags) { 1437public static void RegisterClientScriptBlock(Control control, Type type, string key, string script, bool addScriptTags) { 1442internal virtual void RegisterClientScriptIncludeInternal(Control control, Type type, string key, string url) { 1454public static void RegisterClientScriptInclude(Page page, Type type, string key, string url) { 1465public static void RegisterClientScriptInclude(Control control, Type type, string key, string url) { 1470public static void RegisterClientScriptResource(Page page, Type type, string resourceName) { 1474public static void RegisterClientScriptResource(Control control, Type type, string resourceName) { 1571public static void RegisterOnSubmitStatement(Page page, Type type, string key, string script) { 1575public static void RegisterOnSubmitStatement(Control control, Type type, string key, string script) { 1966internal virtual void RegisterStartupScriptInternal(Control control, Type type, string key, string script, bool addScriptTags) { 1971public static void RegisterStartupScript(Page page, Type type, string key, string script, bool addScriptTags) { 1975public static void RegisterStartupScript(Control control, Type type, string key, string script, bool addScriptTags) { 2136void IScriptManager.RegisterClientScriptBlock(Control control, Type type, string key, string script, bool addScriptTags) { 2140void IScriptManager.RegisterClientScriptInclude(Control control, Type type, string key, string url) { 2144void IScriptManager.RegisterClientScriptResource(Control control, Type type, string resourceName) { 2160void IScriptManager.RegisterOnSubmitStatement(Control control, Type type, string key, string script) { 2168void IScriptManager.RegisterStartupScript(Control control, Type type, string key, string script, bool addScriptTags) {
UI\ScriptRegistrationManager.cs (6)
187public static void RegisterClientScriptBlock(Control control, Type type, string key, string script, bool addScriptTags) { 210public static void RegisterClientScriptInclude(Control control, Type type, string key, string url) { 231public static void RegisterFallbackScriptForAjaxPostbacks(Control control, Type type, string key, string fallbackExpression, string fallbackPath) { 245public static void RegisterClientScriptResource(Control control, Type type, string resourceName) { 375public static void RegisterOnSubmitStatement(Control control, Type type, string key, string script) { 398public static void RegisterStartupScript(Control control, Type type, string key, string script, bool addScriptTags) {
UI\TargetControlTypeAttribute.cs (3)
16private Type _targetControlType; 18public TargetControlTypeAttribute(Type targetControlType) { 25public Type TargetControlType {
UI\TargetControlTypeCache.cs (8)
16public static Type[] GetTargetControlTypes(Type extenderControlType) { 17Type[] types = (Type[])_targetControlTypeCache[extenderControlType]; 25private static Type[] GetTargetControlTypesInternal(Type extenderControlType) { 27Type[] types = new Type[attrs.Length];
UI\WebControls\ContextDataSourceView.cs (13)
15private Type _contextType; 17private Type _entityType; 18private Type _entitySetType; 62protected override Type EntityType { 85public virtual Type ContextType { 112protected Type EntitySetType { 122protected virtual Type GetEntitySetType() { 134private MemberInfo GetEntitySetMember(Type contextType) { 153private static Type GetDataObjectTypeByName(string typeName) { 154Type entityType = null; 161protected virtual Type GetDataObjectType(Type type) { 163Type[] genericTypes = type.GetGenericArguments();
UI\WebControls\DataPagerFieldCollection.cs (3)
22private static readonly Type[] knownTypes = new Type[] { 106protected override Type[] GetKnownTypes() {
UI\WebControls\DataSourceHelper.cs (7)
56internal static object CreateObjectInstance(Type type) { 101public static Type GetType(string typeName) { 105private static object ConvertType(object value, Type type, string paramName) { 131public static object BuildDataObject(Type dataObjectType, IDictionary inputParameters, IDictionary<string, Exception> validationErrors) { 161internal static object BuildObjectValue(object value, Type destinationType, string paramName) { 165Type innerDestinationType = destinationType; 186Type paramValueType = value.GetType();
UI\WebControls\Dynamic.cs (109)
36new Type[] { source.ElementType }, 47new Type[] { source.ElementType, lambda.Body.Type }, 68new Type[] { source.ElementType, o.Selector.Type }, 81new Type[] { source.ElementType }, 90new Type[] { source.ElementType }, 103new Type[] { source.ElementType, keyLambda.Body.Type, elementLambda.Body.Type }, 112new Type[] { source.ElementType }, source.Expression)); 120new Type[] { source.ElementType }, source.Expression)); 144Type type; 146public DynamicProperty(string name, Type type) { 157public Type Type { 164static readonly Type[] funcTypes = new Type[] { 172public static Expression Parse(Type resultType, string expression, params object[] values) { 177public static LambdaExpression ParseLambda(Type itType, Type resultType, string expression, params object[] values) { 181public static LambdaExpression ParseLambda(ParameterExpression[] parameters, Type resultType, string expression, params object[] values) { 190public static Type CreateClass(params DynamicProperty[] properties) { 194public static Type CreateClass(IEnumerable<DynamicProperty> properties) { 200Type[] typeArgs = new Type[paramCount + 1]; 207public static Type GetFuncType(params Type[] typeArgs) { 259Dictionary<Signature, Type> classes; 267ConstructorInfo securityRulesConstructor = typeof(SecurityRulesAttribute).GetConstructor(new Type[] { typeof(SecurityRuleSet) }); 283classes = new Dictionary<Signature, Type>(); 287public Type GetDynamicClass(IEnumerable<DynamicProperty> properties) { 291Type type; 313Type CreateDynamicClass(DynamicProperty[] properties) { 324Type result = tb.CreateType(); 343dp.Type, Type.EmptyTypes); 350null, new Type[] { dp.Type }); 367typeof(bool), new Type[] { typeof(object) }); 380Type ft = field.FieldType; 381Type ct = typeof(EqualityComparer<>).MakeGenericType(ft); 388gen.EmitCall(OpCodes.Callvirt, ct.GetMethod("Equals", new Type[] { ft, ft }), null); 402typeof(int), Type.EmptyTypes); 406Type ft = field.FieldType; 407Type ct = typeof(EqualityComparer<>).MakeGenericType(ft); 411gen.EmitCall(OpCodes.Callvirt, ct.GetMethod("GetHashCode", new Type[] { ft }), null); 598static readonly Type[] predefinedTypes = { 681public Expression Parse(Type resultType) { 1018if (value is Type) return ParseTypeAccess((Type)value); 1108Type type = DynamicExpression.CreateClass(properties); 1125Expression ParseTypeAccess(Type type) { 1153Expression GenerateConversion(Expression expr, Type type, int errorPos) { 1154Type exprType = expr.Type; 1171Expression ParseMemberAccess(Type type, Expression instance) { 1178Type enumerableType = FindGenericType(typeof(IEnumerable<>), type); 1180Type elementType = enumerableType.GetGenericArguments()[0]; 1214static Type FindGenericType(Type generic, Type type) { 1218foreach (Type intfType in type.GetInterfaces()) { 1219Type found = FindGenericType(generic, intfType); 1228Expression ParseAggregate(Expression instance, Type elementType, string methodName, int errorPos) { 1237Type[] typeArgs; 1239typeArgs = new Type[] { elementType, args[0].Type }; 1242typeArgs = new Type[] { elementType }; 1304static bool IsPredefinedType(Type type) { 1305foreach (Type t in predefinedTypes) if (t == type) return true; 1309static bool IsNullableType(Type type) { 1313static Type GetNonNullableType(Type type) { 1317static string GetTypeName(Type type) { 1318Type baseType = GetNonNullableType(type); 1324static bool IsNumericType(Type type) { 1328static bool IsSignedIntegralType(Type type) { 1332static bool IsUnsignedIntegralType(Type type) { 1336static int GetNumericTypeKind(Type type) { 1339switch (Type.GetTypeCode(type)) { 1360static bool IsEnumType(Type type) { 1364void CheckAndPromoteOperand(Type signatures, string opName, ref Expression expr, int errorPos) { 1373void CheckAndPromoteOperands(Type signatures, string opName, ref Expression left, ref Expression right, int errorPos) { 1387MemberInfo FindPropertyOrField(Type type, string memberName, bool staticAccess) { 1390foreach (Type t in SelfAndBaseTypes(type)) { 1392flags, Type.FilterNameIgnoreCase, memberName); 1398int FindMethod(Type type, string methodName, bool staticAccess, Expression[] args, out MethodBase method) { 1401foreach (Type t in SelfAndBaseTypes(type)) { 1403flags, Type.FilterNameIgnoreCase, methodName); 1411int FindIndexer(Type type, Expression[] args, out MethodBase method) { 1412foreach (Type t in SelfAndBaseTypes(type)) { 1427static IEnumerable<Type> SelfAndBaseTypes(Type type) { 1429List<Type> types = new List<Type>(); 1436static IEnumerable<Type> SelfAndBaseClasses(Type type) { 1443static void AddInterface(List<Type> types, Type type) { 1446foreach (Type t in type.GetInterfaces()) AddInterface(types, t); 1492Expression PromoteExpression(Expression expr, Type type, bool exact) { 1503Type target = GetNonNullableType(type); 1505switch (Type.GetTypeCode(ce.Type)) { 1531static object ParseNumber(string text, Type type) { 1532switch (Type.GetTypeCode(GetNonNullableType(type))) { 1581static object ParseEnum(string name, Type type) { 1585Type.FilterNameIgnoreCase, name); 1591static bool IsCompatibleWith(Type source, Type target) { 1594Type st = GetNonNullableType(source); 1595Type tt = GetNonNullableType(target); 1597TypeCode sc = st.IsEnum ? TypeCode.Object : Type.GetTypeCode(st); 1598TypeCode tc = tt.IsEnum ? TypeCode.Object : Type.GetTypeCode(tt); 1719static int CompareConversions(Type s, Type t1, Type t2) { 2063foreach (Type type in predefinedTypes) d.Add(type.Name, type);
UI\WebControls\Expressions\DataSourceExpressionCollection.cs (3)
11private static readonly Type[] knownTypes = new Type[] { 81protected override Type[] GetKnownTypes() {
UI\WebControls\Expressions\ExpressionHelper.cs (6)
9Type realType = GetUnderlyingType(exp.Type); 16public static Type GetUnderlyingType(Type type) { 24public static object BuildObjectValue(object value, Type type) { 55public static IQueryable Call(this IQueryable source, string queryMethod, Type[] genericArgs, params Expression[] arguments) { 66public static IQueryable Call(this IQueryable source, string queryableMethod, LambdaExpression lambda, params Type[] genericArgs) {
UI\WebControls\Expressions\MethodExpression.cs (6)
18private Func<Type>[] typeGetters; 52typeGetters = new Func<Type>[] { 59private static Type GetType(string typeName) { 66private static Type GetType(IQueryableDataSource dataSource) { 90foreach (Func<Type> typeGetter in typeGetters) { 91Type type = typeGetter();
UI\WebControls\Expressions\OfTypeExpression.cs (5)
20var type = GetType(TypeName); 44public OfTypeExpression(Type type) { 57private Type GetType(string typeName) { 73private static MethodInfo GetOfTypeMethod(Type type) { 75return typeof(Queryable).GetMethod("OfType").MakeGenericMethod(new Type[] { type });
UI\WebControls\Expressions\SearchExpression.cs (2)
84return Expression.Call(property, SearchType.ToString(), Type.EmptyTypes, Expression.Constant(query, property.Type)); 86return Expression.Call(property, SearchType.ToString(), Type.EmptyTypes, Expression.Constant(query, property.Type), Expression.Constant(ComparisonType));
UI\WebControls\LinqDataSource.cs (1)
578Type IDynamicDataSource.ContextType {
UI\WebControls\LinqDataSourceHelper.cs (4)
27public static Type FindGenericEnumerableType(Type type) { 34foreach (Type interfaceType in type.GetInterfaces()) { 35Type genericInterface = FindGenericEnumerableType(interfaceType);
UI\WebControls\LinqDataSourceView.cs (10)
40private Type _contextType; 107public override Type ContextType { 331protected virtual object CreateContext(Type contextType) { 350Type contextType = null; 533Type dataObjectType = GetDataObjectType(query.GetType()); 607protected virtual MemberInfo GetTableMemberInfo(Type contextType) { 626private ReadOnlyCollection<MetaDataMember> GetTableMetaDataMembers(ITable table, Type dataObjectType) { 867Type entityType = EntityType; 920protected virtual void ValidateContextType(Type contextType, bool selecting) { 958protected virtual void ValidateTableType(Type tableType, bool selecting) {
UI\WebControls\QueryableDataSourceHelper.cs (7)
44Type genericType = FindGenericEnumerableType(o.GetType()); 59Type listType = typeof(List<>).MakeGenericType(o.GetType()); 65public static IList ToList(this IQueryable query, Type dataObjectType) { 90public static Type FindGenericEnumerableType(Type type) { 97foreach (Type interfaceType in type.GetInterfaces()) { 98Type genericInterface = FindGenericEnumerableType(interfaceType);
UI\WebControls\QueryableDataSourceView.cs (4)
164protected abstract Type EntityType { 617Type dataObjectType = EntityType; 655Type dataObjectType = EntityType; 679Type dataObjectType = EntityType;
System.Web.Mobile (123)
Mobile\DeviceFiltersSection.cs (4)
192typeof( Type ), 236public DeviceFilterElement( string name, Type filterClass, string method ) { 264public Type FilterClass { 266return (Type)base[ _propFilterClass ];
Mobile\MobileDeviceCapabilitiesSectionHandler.cs (2)
113Type evaluatorClass = Type.GetType(className);
UI\MobileControls\ControlsConfig.cs (3)
184internal /*public*/ Type CookielessDataDictionaryType 188Type cookielessDataType = null; 191cookielessDataType = Type.GetType(typeString);
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (3)
154Type designerType, 174Type designerType, 175Type newType,
UI\MobileControls\Design\Converters\DataFieldConverter.cs (1)
57public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
UI\MobileControls\Design\Converters\DataMemberConverter.cs (1)
54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
UI\MobileControls\Design\Converters\FontNameConverter.cs (1)
41public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
UI\MobileControls\Design\Converters\FormConverter.cs (1)
39private Control FindContainer(MobileControl mc, Type containerType)
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (1)
33private Control FindContainer(MobileControl mc, Type containerType)
UI\MobileControls\Design\DesignerForm.cs (1)
99protected override object GetService(Type serviceType) {
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (1)
312Type type = typeof(System.Web.Mobile.MobileCapabilities);
UI\MobileControls\Design\ListComponentEditor.cs (3)
32private static Type[] _editorPages = new Type[] 79protected override Type[] GetComponentEditorPages()
UI\MobileControls\Design\ListDesigner.cs (2)
447public override Type GetTemplatePropertyParentType(String templateName) 620Type designerType = this.GetType();
UI\MobileControls\Design\MobileControlPersister.cs (2)
57private static string GetDeclarativeType(Type type, IDesignerHost host) { 535Type propType = properties[i].PropertyType;
UI\MobileControls\Design\ObjectListComponentEditor.cs (3)
32private static Type[] _editorPages = new Type[] 81protected override Type[] GetComponentEditorPages()
UI\MobileControls\Design\ObjectListDesigner.cs (2)
222Type designerType = this.GetType(); 450public override Type GetTemplatePropertyParentType(String templateName)
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
1114Object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
UI\MobileControls\Design\SelectionListComponentEditor.cs (3)
34private static Type[] _editorPages = new Type[] 85protected override Type[] GetComponentEditorPages()
UI\MobileControls\Design\SelectionListDesigner.cs (1)
508Type designerType = this.GetType();
UI\MobileControls\Design\StylesEditorDialog.cs (6)
50private Type _currentNewStyleType; 364Type type = Type.GetType(mobileStyle, true); 374Type type = style.GetType(); 402_currentNewStyleType = Type.GetType((String) _lvAvailableStyles.Items[0].SubItems[1].Text + "." + 800_currentNewStyleType = Type.GetType((String) _lvAvailableStyles.SelectedItems[0].SubItems[1].Text + "." +
UI\MobileControls\Design\Util\DesignerUtility.cs (2)
78Type serviceType = Type.GetType("Microsoft.VisualStudio.Shell.VsCheckoutService, " + AssemblyRef.MicrosoftVisualStudio);
UI\MobileControls\DesignerAdapterAttribute.cs (1)
37public DesignerAdapterAttribute(Type adapterType)
UI\MobileControls\DesignerDeviceConfig.cs (4)
21internal DesignerDeviceConfig(String pageAdapterType) : base(Type.GetType (pageAdapterType)) 25internal override IControlAdapter NewControlAdapter(Type originalControlType) 45Type adapterType = Type.GetType(da.TypeName);
UI\MobileControls\DeviceSpecific.cs (1)
374public override Type GetChildControlType(String tagName, IDictionary attributes)
UI\MobileControls\DeviceSpecificChoice.cs (5)
225Type type = pd.PropertyType; 337new Type[] 494Type type, 517public override Type GetChildControlType(String tagName, IDictionary attributes) 631Type type,
UI\MobileControls\FactoryGenerator.cs (10)
67private Type _factoryInterface; 68private Type _returnedType; 71private Type[] _emptyParameterList = new Type[] { }; 72private Type[] _interfacesToImplement; 84private FactoryGenerator(Type returnedType, Type factoryInterface) { 98_interfacesToImplement = new Type[1]; 119internal /*public*/ Object GetFactory(Type type) { 133Type factoryType;
UI\MobileControls\Form.cs (1)
765Type controlType = subBuilder.ControlType;
UI\MobileControls\IndividualDeviceConfig.cs (12)
39private Type _pageAdapterType; 63private static readonly Type _baseControlType = typeof(System.Web.UI.Control); 72Type pageAdapterType, 85internal IndividualDeviceConfig(Type pageAdapterType) : this(null, null, null, pageAdapterType, null) 99internal /*public*/ void AddControl(Type controlType, 100Type adapterType) 107private Type PageAdapterType 135protected IWebObjectFactory LookupControl(Type controlType) 140private IWebObjectFactory LookupControl(Type controlType, bool lookInTypeCache) 175internal virtual IControlAdapter NewControlAdapter(Type originalControlType) 205protected IWebObjectFactory GetAdapterFactory(Type originalControlType) 209Type controlType = originalControlType;
UI\MobileControls\ListControlBuilder.cs (1)
28public override Type GetChildControlType(String tagName, IDictionary attributes)
UI\MobileControls\MobileControlBuilder.cs (2)
40public override Type GetChildControlType(String tagName, IDictionary attributes) 42Type type;
UI\MobileControls\MobileControlsSection.cs (26)
35typeof( Type ), 103public Type CookielessDataDictionaryType 107return (Type)base[ _propDictType ]; 273typeof( Type ), 287typeof( Type ), 319public DeviceElement( string name, Type predicateClass, string predicateMethod, Type pageAdapter ) 327public DeviceElement(string name, string inheritsFrom, Type predicateClass, 328string predicateMethod, Type pageAdapter) 375public Type PredicateClass 379return (Type)base[ _propPredicateClass ]; 404public Type PageAdapter 408return (Type)base[_propPageAdapter]; 607typeof( Type ), 624public ControlElement( string name, Type adapter ) 651public Type Control 655return Type.GetType( Name ); 672public Type Adapter 676return (Type)base[ _propAdapter ]; 701Type tp = MobileControlsSection.StdTypeNameConverter.ConvertFromInvariantString( elem.Name ) as Type; 717object value, Type targetType) { 719Type valueType = value as Type; 731Type result = Type.GetType((string)data);
UI\MobileControls\MobileControlsSectionHandler.cs (8)
46Type t = Type.GetType(cookielessDataDictionaryType); 173Type predicateClassType = CheckedGetType(predicateClass, "PredicateClass", helper, null, null); 192Type pageAdapterType = null; 208private Type CheckedGetType(String typename, 211Type typeImplemented, 214Type t = Type.GetType(typename);
UI\MobileControls\MobilePage.cs (1)
297Type t = ControlsConfig.GetFromContext(HttpContext.Current).CookielessDataDictionaryType;
UI\MobileControls\ObjectList.cs (2)
885private bool IsBindableType(Type type) 1573public override Type GetChildControlType(String tagName, IDictionary attributes)
UI\MobileControls\Style.cs (3)
795public static Object RegisterStyle(String name, Type type, Object defaultValue, bool inherit) 803public Type Type; 807public Property(String name, Type type, Object defaultValue, bool inherit)
UI\MobileControls\StyleSheet.cs (2)
746public override Type GetChildControlType(String name, IDictionary attributes) 761Type type = null;
System.Web.Services (336)
System\Web\Services\Configuration\SoapExtensionTypeElement.cs (8)
27this.Type = Type.GetType(type, true, true); 32public SoapExtensionTypeElement(Type type, int priority, PriorityGroup group) : 64public Type Type 67return (Type)base[this.type]; 84readonly ConfigurationProperty type = new ConfigurationProperty("type", typeof(Type), null, new TypeTypeConverter(), null, ConfigurationPropertyOptions.IsKey); 88public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 101public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 104TypeAndName castedValue = new TypeAndName((Type)value);
System\Web\Services\Configuration\TypeElement.cs (7)
24public TypeElement(Type type) : this(type.AssemblyQualifiedName) { 29public Type Type { 51this.type = Type.GetType(name, true, true); 55public TypeAndName(Type type) 70public readonly Type type; 75public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 90public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
System\Web\Services\Configuration\WebServicesSection.cs (45)
94foreach (Type discoveryReferenceType in this.DiscoveryReferenceTypes) { 114internal Type[] DiscoveryReferenceTypes { 135internal Type[] GetAllFormatExtensionTypes() { 140Type[] formatTypes = new Type[defaultFormatTypes.Length + this.ServiceDescriptionFormatExtensionTypes.Count]; 150static XmlFormatExtensionPointAttribute GetExtensionPointAttribute(Type type) { 175internal static void LoadXmlFormatExtensions(Type[] extensionTypes, XmlAttributeOverrides overrides, XmlSerializerNamespaces namespaces) { 195foreach (Type extensionType in extensionTypes) { 205foreach (Type extensionPointType in extensionAttr.ExtensionPoints) { 228foreach (Type extensionPointType in table.Keys) { 238internal Type[] MimeImporterTypes { 242internal Type[] MimeReflectorTypes { 246internal Type[] ParameterReaderTypes { 254internal Type[] ProtocolImporterTypes { 260List<Type> protocolImporterList = new List<Type>(); 285internal Type[] ProtocolReflectorTypes { 291List<Type> protocolReflectorList = new List<Type>(); 346internal Type[] ReturnWriterTypes { 414internal Type SoapServerProtocolFactory { 432internal Type[] SoapTransportImporters { 434Type[] retval = new Type[1 + this.SoapTransportImporterTypes.Count]; 459ProtocolImporterTypes = (Type[])importers.ToArray(typeof(Type)); 460ProtocolReflectorTypes = (Type[])reflectors.ToArray(typeof(Type)); 485Type[] defaultFormatTypes = new Type[] { 507Type[] discoveryReferenceTypes = new Type[] { typeof(DiscoveryDocumentReference), typeof(ContractReference), typeof(SchemaReference), typeof(System.Web.Services.Discovery.SoapBinding) }; 510Type[] mimeImporterTypes = new Type[] { typeof(MimeXmlImporter), typeof(MimeFormImporter), typeof(MimeTextImporter) }; 511Type[] mimeReflectorTypes = new Type[] { typeof(MimeXmlReflector), typeof(MimeFormReflector) }; 512Type[] parameterReaderTypes = new Type[] { typeof(UrlParameterReader), typeof(HtmlFormParameterReader) }; 513Type[] protocolImporterTypes = new Type[0]; 514Type[] protocolReflectorTypes = new Type[0]; 515Type[] returnWriterTypes = new Type[] { typeof(XmlReturnWriter) }; 517Type soapServerProtocolFactory = null;
System\Web\Services\Configuration\XmlFormatExtensionAttribute.cs (18)
17Type[] types; 29public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1) : this(elementName, ns, new Type[] { extensionPoint1 }) { 32public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2) : this(elementName, ns, new Type[] { extensionPoint1, extensionPoint2 }) { 35public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3) : this(elementName, ns, new Type[] { extensionPoint1, extensionPoint2, extensionPoint3 }) { 38public XmlFormatExtensionAttribute(string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3, Type extensionPoint4) : this(elementName, ns, new Type[] { extensionPoint1, extensionPoint2, extensionPoint3, extensionPoint4 }) { 45public XmlFormatExtensionAttribute(string elementName, string ns, Type[] extensionPoints) { 55public Type[] ExtensionPoints { 56get { return types == null ? new Type[0] : types; }
System\Web\Services\Description\HttpGetProtocolImporter.cs (1)
17internal override Type BaseClass {
System\Web\Services\Description\HttpPostProtocolImporter.cs (1)
17internal override Type BaseClass {
System\Web\Services\Description\HttpProtocolImporter.cs (4)
41Type[] importerTypes = WebServicesSection.Current.MimeImporterTypes; 340Type[] requiredTypes = new Type[] { 393internal abstract Type BaseClass { get; }
System\Web\Services\Description\HttpProtocolReflector.cs (1)
23Type[] reflectorTypes = WebServicesSection.Current.MimeReflectorTypes;
System\Web\Services\Description\MimeParameters.cs (2)
18Type writerType; 20internal Type WriterType {
System\Web\Services\Description\MimeReturn.cs (2)
20Type readerType; 28internal Type ReaderType {
System\Web\Services\Description\MimeXmlImporter.cs (1)
76foreach (Type extensionType in ImportContext.ServiceImporter.Extensions) {
System\Web\Services\Description\ProtocolReflector.cs (3)
118public Type ServiceType { 321Type[] interfaces = ServiceType.GetInterfaces(); 323foreach (Type bindingInterface in interfaces) {
System\Web\Services\Description\ServiceDescription.cs (3)
1465public object Find(Type type) { 1480public object[] FindAll(Type type) { 2851static string GetDuplicateMessage(Type type, string elemName) {
System\Web\Services\Description\ServiceDescriptionImporter.cs (5)
119List<Type> extensions; 126Type[] importerTypes = WebServicesSection.Current.ProtocolImporterTypes; 190internal List<Type> Extensions { 193extensions = new List<Type>(); 279importer.Extensions.Add(Type.GetType(extensionType, true /*throwOnError*/));
System\Web\Services\Description\ServiceDescriptionReflector.cs (4)
40Type serviceType; 79internal Type ServiceType { 116Type[] reflectorTypes = WebServicesSection.Current.ProtocolReflectorTypes; 172public void Reflect(Type type, string url) {
System\Web\Services\Description\ServiceDescriptionSerializer.cs (88)
21System.Type t = o.GetType(); 110System.Type t = o.GetType(); 165System.Type t = o.GetType(); 233System.Type t = o.GetType(); 255System.Type t = o.GetType(); 277System.Type t = o.GetType(); 299System.Type t = o.GetType(); 375System.Type t = o.GetType(); 452System.Type t = o.GetType(); 516System.Type t = o.GetType(); 555System.Type t = o.GetType(); 594System.Type t = o.GetType(); 676System.Type t = o.GetType(); 705System.Type t = o.GetType(); 765System.Type t = o.GetType(); 794System.Type t = o.GetType(); 833System.Type t = o.GetType(); 855System.Type t = o.GetType(); 878System.Type t = o.GetType(); 909System.Type t = o.GetType(); 940System.Type t = o.GetType(); 973System.Type t = o.GetType(); 1005System.Type t = o.GetType(); 1038System.Type t = o.GetType(); 1070System.Type t = o.GetType(); 1158System.Type t = o.GetType(); 1179System.Type t = o.GetType(); 1200System.Type t = o.GetType(); 1235System.Type t = o.GetType(); 1257System.Type t = o.GetType(); 1295System.Type t = o.GetType(); 1320System.Type t = o.GetType(); 1342System.Type t = o.GetType(); 1367System.Type t = o.GetType(); 1422System.Type t = o.GetType(); 1501System.Type t = o.GetType(); 1549System.Type t = o.GetType(); 1597System.Type t = o.GetType(); 1645System.Type t = o.GetType(); 1700System.Type t = o.GetType(); 1749System.Type t = o.GetType(); 1803System.Type t = o.GetType(); 1909System.Type t = o.GetType(); 1959System.Type t = o.GetType(); 2007System.Type t = o.GetType(); 2054System.Type t = o.GetType(); 2101System.Type t = o.GetType(); 2163System.Type t = o.GetType(); 2210System.Type t = o.GetType(); 2302System.Type t = o.GetType(); 2342System.Type t = o.GetType(); 2375System.Type t = o.GetType(); 2415System.Type t = o.GetType(); 2456System.Type t = o.GetType(); 2506System.Type t = o.GetType(); 2538System.Type t = o.GetType(); 2621System.Type t = o.GetType(); 2655System.Type t = o.GetType(); 2689System.Type t = o.GetType(); 2723System.Type t = o.GetType(); 2757System.Type t = o.GetType(); 2791System.Type t = o.GetType(); 2825System.Type t = o.GetType(); 2859System.Type t = o.GetType(); 2893System.Type t = o.GetType(); 2927System.Type t = o.GetType(); 2961System.Type t = o.GetType(); 2995System.Type t = o.GetType(); 3029System.Type t = o.GetType(); 3108System.Type t = o.GetType(); 3205System.Type t = o.GetType(); 3239System.Type t = o.GetType(); 3302System.Type t = o.GetType(); 3333System.Type t = o.GetType(); 3366System.Type t = o.GetType(); 3406System.Type t = o.GetType(); 3468System.Type t = o.GetType(); 3512System.Type t = o.GetType(); 3584System.Type t = o.GetType(); 3656System.Type t = o.GetType(); 3699System.Type t = o.GetType(); 3804System.Type t = o.GetType(); 3857System.Type t = o.GetType(); 3890System.Type t = o.GetType(); 3943System.Type t = o.GetType(); 3974System.Type t = o.GetType(); 4006System.Type t = o.GetType(); 4066System.Type t = o.GetType();
System\Web\Services\Description\SoapProtocolImporter.cs (5)
338foreach (Type extensionType in ServiceImporter.Extensions) { 412foreach (Type type in WebServicesSection.Current.SoapTransportImporters) 431Type[] requiredTypes = new Type[] { typeof(SoapDocumentMethodAttribute), typeof(XmlAttributeAttribute), typeof(WebService), typeof(Object), typeof(DebuggerStepThroughAttribute), typeof(DesignerCategoryAttribute) }; 501void EndMetadata(CodeAttributeDeclarationCollection metadata, Type attributeType, string parameter) {
System\Web\Services\Description\WebCodeGenerator.cs (4)
70internal static string[] GetNamespacesForTypes(Type[] types) { 232internal static CodeAttributeDeclarationCollection AddCustomAttribute(CodeAttributeDeclarationCollection metadata, Type type, CodeAttributeArgument[] arguments) { 239internal static CodeAttributeDeclarationCollection AddCustomAttribute(CodeAttributeDeclarationCollection metadata, Type type, CodeExpression[] arguments) { 243internal static CodeAttributeDeclarationCollection AddCustomAttribute(CodeAttributeDeclarationCollection metadata, Type type, CodeExpression[] parameters, string[] propNames, CodeExpression[] propValues) {
System\Web\Services\Description\WebReferenceOptions.cs (1)
201System.Type t = o.GetType();
System\Web\Services\Diagnostics\TraceUtility.cs (4)
350else if (o is Type) { 351Type type = (Type)o; 376Type type = o.GetType();
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (4)
123Type[] refTypes = WebServicesSection.Current.DiscoveryReferenceTypes; 132foreach (Type type in refTypes) { 348DiscoveryReference reference = (DiscoveryReference) Activator.CreateInstance(Type.GetType(typeName)); 607public DiscoveryClientResult(Type referenceType, string url, string filename) {
System\Web\Services\Discovery\DiscoveryDocumentSerializer.cs (5)
21System.Type t = o.GetType(); 66System.Type t = o.GetType(); 86System.Type t = o.GetType(); 105System.Type t = o.GetType(); 125System.Type t = o.GetType();
System\Web\Services\Protocols\ClientProtocol.cs (7)
27internal object this[Type key] { 31internal void Add(Type key, object value) { 515protected static object GetFromCache(Type type) { 525protected static void AddToCache(Type type, object value) { 914public static bool GenerateXmlMappings(Type type, ArrayList mappings) { 934public static Hashtable GenerateXmlMappings(Type[] types, ArrayList mappings) { 939foreach (Type type in types) {
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (1)
42internal DiscoveryServerType(Type type, string uri, bool excludeSchemeHostPortFromCachingKey)
System\Web\Services\Protocols\DocumentationServerProtocol.cs (1)
42internal DocumentationServerType(Type type, string uri, bool excludeSchemeHostPortFromCachingKey)
System\Web\Services\Protocols\HttpClientProtocol.cs (6)
22internal Type readerType; 24internal Type writerType; 32internal HttpClientType(Type type) { 58foreach (Type t in formatterTypes.Keys) { 76static void AddFormatter(Hashtable formatterTypes, Type formatterType, HttpClientMethod method) { 110Type type = this.GetType();
System\Web\Services\Protocols\HttpMethodAttribute.cs (6)
16Type returnFormatter; 17Type parameterFormatter; 32public HttpMethodAttribute(Type returnFormatter, Type parameterFormatter) { 41public Type ReturnFormatter { 50public Type ParameterFormatter {
System\Web\Services\Protocols\HttpServerProtocol.cs (7)
23internal HttpServerType(Type type) : base(type) { 25Type[] returnWriterTypes = config.ReturnWriterTypes; 26Type[] parameterReaderTypes = config.ParameterReaderTypes; 81method.readerTypes = new Type[count]; 124internal Type[] readerTypes; 126internal Type writerType; 241Type parameterType = parameter.ParameterType;
System\Web\Services\Protocols\LogicalMethodInfo.cs (6)
47Type retType; 210public Type DeclaringType { 250public Type ReturnType { 298public object[] GetCustomAttributes(Type type) { 342public object GetCustomAttribute(Type type) { 579internal static bool CanMerge(Type type) {
System\Web\Services\Protocols\MimeFormatter.cs (3)
48public static object GetInitializer(Type type, LogicalMethodInfo methodInfo) { 57public static object[] GetInitializers(Type type, LogicalMethodInfo[] methodInfos) { 66public static MimeFormatter CreateInstance(Type type, object initializer) {
System\Web\Services\Protocols\PatternMatcher.cs (7)
20public PatternMatcher(Type type) { 34Type type; 37internal Type Type { 41internal static MatchType Reflect(Type type) { 81Type fieldType = memberInfo is FieldInfo ? ((FieldInfo)memberInfo).FieldType : ((PropertyInfo)memberInfo).PropertyType; 115Type fieldType = memberInfo is FieldInfo ? ((FieldInfo)memberInfo).FieldType : ((PropertyInfo)memberInfo).PropertyType; 156Type memberType = null;
System\Web\Services\Protocols\Scalars.cs (3)
31internal static object FromString(string value, Type type) { 48static object EnumFromString(string value, Type type) { 57internal static bool IsTypeSupported(Type type) {
System\Web\Services\Protocols\ServerProtocol.cs (26)
26Type type; 44internal void SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) { 80internal Type Type { 168delegate string CreateCustomKeyForAspNetWebServiceMetadataCache(Type protocolType, Type serverType, string originalKey); 170static string DefaultCreateCustomKeyForAspNetWebServiceMetadataCache(Type protocolType, Type serverType, string originalKey) { 174static CreateCustomKeyForAspNetWebServiceMetadataCache GetCreateCustomKeyForAspNetWebServiceMetadataCacheDelegate(Type serverType) { 183new Type[] { typeof(Type), typeof(Type), typeof(string) }, 190result = delegate(Type pt, Type st, string originalString) 202string CreateKey(Type protocolType, Type serverType, bool excludeSchemeHostPort = false, string keySuffix = null) { 226protected void AddToCache(Type protocolType, Type serverType, object value) { 231internal void AddToCache(Type protocolType, Type serverType, object value, bool excludeSchemeHostPort) { 242protected object GetFromCache(Type protocolType, Type serverType) { 246internal object GetFromCache(Type protocolType, Type serverType, bool excludeSchemeHostPort) { 269internal bool IsCacheUnderPressure(Type protocolType, Type serverType) { 304internal ServerProtocol Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, out bool abortProcessing) {
System\Web\Services\Protocols\ServerType.cs (3)
21Type type; 23public ServerType(Type type) { 27internal Type Type {
System\Web\Services\Protocols\SoapClientProtocol.cs (4)
39internal SoapClientType(Type type) { 113internal static void GenerateXmlMappings(Type type, ArrayList soapMethodList, string serviceNamespace, bool serviceDefaultIsEncoded, ArrayList mappings) { 179Type type = this.GetType(); 463private static Array CombineExtensionsHelper(Array array1, Array array2, Array array3, Type elementType) {
System\Web\Services\Protocols\SoapExtension.cs (1)
23public abstract object GetInitializer(Type serviceType);
System\Web\Services\Protocols\SoapExtensionAttribute.cs (1)
26public abstract Type ExtensionType {
System\Web\Services\Protocols\SoapHeader.cs (4)
164internal Type headerType; 170public Type HeaderType { 468Type headerType = header.GetType(); 480static string GetHeaderElementName(Type headerType) {
System\Web\Services\Protocols\SoapReflector.cs (10)
19internal Type headerType; 27Type type; 31internal SoapReflectedExtension(Type type, SoapExtensionAttribute attribute) : this(type, attribute, attribute.Priority) { } 33internal SoapReflectedExtension(Type type, SoapExtensionAttribute attribute, int priority) { 51internal object GetInitializer(Type serviceType) { 63internal static object[] GetInitializers(Type serviceType, SoapReflectedExtension[] extensions) { 120internal static bool ServiceDefaultIsEncoded(Type type) { 189internal static object GetSoapServiceAttribute(Type type) { 452Type declaringType = methodInfo.DeclaringType; 546static Exception HeaderException(string memberName, Type declaringType, string description) {
System\Web\Services\Protocols\SoapServerMethod.cs (2)
45public SoapServerMethod(Type serverType, LogicalMethodInfo methodInfo) { 185private Evidence GetServerTypeEvidence(Type type) {
System\Web\Services\Protocols\SoapServerProtocol.cs (2)
64public SoapServerType(Type type, WebServiceProtocols protocolsSupported) : base(type) { 516private static Array CombineExtensionsHelper(Array array1, Array array2, Type elementType) {
System\Web\Services\Protocols\ValueCollectionParameterReader.cs (2)
53Type arrayType = paramInfo.ParameterType.GetElementType(); 89Type type = paramInfo.ParameterType;
System\Web\Services\Protocols\WebServiceHandlerFactory.cs (3)
73Type type = GetCompiledType(url, context); 85private Type GetCompiledType(string url, HttpContext context) 90internal IHttpHandler CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) {
System\Web\Services\Protocols\XmlReturnReader.cs (3)
33Type type = methodInfo.ReturnType; 74static bool IsSupported(Type returnType) { 86static Evidence GetEvidenceForType(Type type)
System\Web\Services\WebMethodAttribute.cs (5)
249internal static MethodInfo FindInterfaceMethodInfo(Type type, string signature) 251Type[] interfaces = type.GetInterfaces(); 254foreach (Type i in interfaces) { 266internal static LogicalMethodInfo[] GetMethods(Type type) { 275Type declaringType = methods[i].DeclaringType;
System\Web\Services\WebServiceAttribute.cs (5)
82internal static WebServiceAttribute GetAttribute(Type type) { 90Type mostDerived = GetMostDerivedType(methodInfos); 94internal static Type GetMostDerivedType(LogicalMethodInfo[] methodInfos) { 96Type mostDerived = methodInfos[0].DeclaringType; 98Type derived = methodInfos[i].DeclaringType;
System\Web\Services\WebServiceBindingAttribute.cs (2)
108internal static WebServiceBindingAttribute GetAttribute(Type type) { 124Type type = methodInfo.DeclaringType;
System.Windows.Forms (613)
misc\MultitargetUtil.cs (2)
20public static string GetAssemblyQualifiedName(Type type, Func<Type, string> typeNameConverter)
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) {
parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (2)
86Type appContextType = typeof(object).Assembly.GetType("System.AppContext"); 94new Type[] { typeof(string), typeof(bool).MakeByRefType() },
parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (6)
79private static Stream GetResourceStreamHelper(Assembly assembly, Type type, string name) { 93private static bool DoesAssemblyHaveCustomAttribute(Assembly assembly, Type attrType) { 136public static Stream GetResourceStream(Assembly assembly, Type type, string originalName) { 186public static Stream GetResourceStream(Type type, string originalName) { 200public static Icon CreateIcon(Type type, string originalName) { 214public static Bitmap CreateBitmap(Type type, string originalName) {
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (2)
2527System.Type t = o.GetType(); 2996internal static Guid GetGuidOfType(Type type)
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\Resources\ResXFileRef.cs (5)
204Type sourceType) { 216Type destinationType) { 230Type destinationType) { 289Type toCreate = Type.GetType(parts[1], true);
winforms\Managed\System\Resources\ResXResourceReader.cs (2)
445Type readerType = typeof(ResXResourceReader); 446Type writerType = typeof(ResXResourceWriter);
winforms\Managed\System\Resources\ResXResourceSet.cs (2)
62public override Type GetDefaultReader() { 70public override Type GetDefaultWriter() {
winforms\Managed\System\Resources\ResXResourceWriter.cs (7)
242private Func<Type, string> typeNameConverter; // no public property to be consistent with ResXDataNode class. 264public ResXResourceWriter(string fileName, Func<Type, string> typeNameConverter) { 276public ResXResourceWriter(Stream stream, Func<Type, string> typeNameConverter) { 288public ResXResourceWriter(TextWriter textWriter, Func<Type, string> typeNameConverter) { 544Type typeObject = Type.GetType(type); 738private string TypeNameWithAssembly(Type type) {
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\AlphaSortedEnumConverter.cs (1)
13public AlphaSortedEnumConverter(Type type) : base(type) {
winforms\Managed\System\WinForms\Application.cs (5)
51static Type mainType; 288Type t = GetAppMainType(); 517Type t = GetAppMainType(); 1191Type t = GetAppMainType(); 1220private static Type GetAppMainType() {
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\Binding.cs (5)
511Type controlClass = control.GetType(); 515Type propType = null; 595private object GetDataSourceNullValue(Type type) { 708Type type = this.bindToObject.BindToType; 771Type type = propInfo.PropertyType;
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (2)
113internal abstract Type BindType{ 146protected virtual PropertyDescriptorCollection GetItemProperties(Type listType, int offset, ArrayList dataSources, ArrayList listAccessors) {
winforms\Managed\System\WinForms\BindingSource.cs (11)
77private Type itemType; 687private static IList CreateBindingList(Type type) { 688Type genericType = typeof(BindingList<>); 689Type bindingType = genericType.MakeGenericType(new Type[] { type }); 695private static object CreateInstanceOfType(Type type) { 816private static IList GetListFromType(Type type) { 1243object dataSourceInstance = (this.dataSource is Type) ? GetListFromType(this.dataSource as Type) : this.dataSource; 1279Type type = ListBindingHelper.GetListItemType(this.dataSource, this.dataMember); 1344null, new Type[0], null);
winforms\Managed\System\WinForms\BindToObject.cs (2)
149internal Type BindToType { 154Type type = this.bindingManager.BindType;
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
433Type clonedType = this.GetType();
winforms\Managed\System\WinForms\ColumnHeaderConverter.cs (6)
33public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 48public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 57Type t = TypeDescriptor.GetReflectionType(value); 61ctor = t.GetConstructor(new Type[]{typeof(int)}); 69ctor = t.GetConstructor(new Type[]{typeof(string)}); 76ctor = t.GetConstructor(new Type[0]);
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (1)
238Type ourType = typeof(ComponentManagerBroker);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\BaseCAMarshaler.cs (1)
66public abstract Type ItemType {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (3)
33public override Type ComponentType { 66public override Type PropertyType { 89public override object GetEditor(Type editorBaseType) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ColorConverter.cs (1)
27public override Type ManagedType{
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2DataTypeToManagedDataTypeConverter.cs (1)
35public abstract Type ManagedType{
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2EnumConverter.cs (3)
34public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 41public override bool CanConvertTo(ITypeDescriptorContext context, Type destType) { 68public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ExtendedBrowsingHandler.cs (1)
32public abstract Type Interface{
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (5)
32public Com2ExtendedTypeConverter(Type baseType) { 42public TypeConverter GetWrappedConverter(Type t) { 67public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 79public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 105public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ExtendedUITypeEditor.cs (1)
36public Com2ExtendedUITypeEditor(Type baseType) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
38public override Type ManagedType {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
18public override Type Interface {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (3)
47public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 56public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 69public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (6)
20public override Type Interface { 75Type[] types = new Type[attrTypeNames.Length]; 81Type t = Type.GetType(attrName); 115t = Type.GetType(attrName.Substring(0,lastDot) + assemblyName);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (3)
20public override Type Interface { 185public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destType) { 282Type targetType = target.PropertyType;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
19public override Type Interface {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (1)
34public override Type Interface {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (2)
29Type pictureType = typeof(Bitmap); 41public override Type ManagedType {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (5)
83private static Type[] extendedInterfaces = new Type[]{ 95private static Type[] extendedInterfaceHandlerTypes = new Type[]{ 262Type t;
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\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (11)
324private static Type GetValueTypeFromTypeDesc(NativeMethods.tagTYPEDESC typeDesc, UnsafeNativeMethods.ITypeInfo typeInfo, Object[] typeData, StructCache structCache) { 716private static Type ProcessTypeInfoEnum(UnsafeNativeMethods.ITypeInfo enumTypeInfo, StructCache structCache) { 847return (Type)builtEnums[enumName]; 850Type enumType = typeof(int); 860Type t = enumBuilder.CreateType(); 939private static Type VTToType(NativeMethods.tagVT vt) { 1101private Queue GetQueue(Type t, bool create) { 1115public Object GetStruct(Type t) { 1136Type t = str.GetType(); 1159Type valueType = null; 1175public Type ValueType {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (5)
87public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 133internal Object GetEditor(Object component, Type baseEditorType) { 447internal static void ResolveVariantTypeConverterAndTypeEditor(Object propertyValue, ref TypeConverter currentConverter, Type editorType, ref Object currentEditor) { 451Type t = curValue.GetType(); 531object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\Int32CAMarshaler.cs (1)
29public override Type ItemType {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\OleStrCAMarshaler.cs (1)
28public override Type ItemType {
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\ConvertEvent.cs (3)
20private Type desiredType; 26public ConvertEventArgs(object value, Type desiredType) { 48public Type DesiredType {
winforms\Managed\System\WinForms\CurrencyManager.cs (2)
58protected Type finalType; 164internal override Type BindType {
winforms\Managed\System\WinForms\Cursor.cs (1)
140public Cursor(Type type, string resource) : this(type.Module.Assembly.GetManifestResourceStream(type,resource)) {
winforms\Managed\System\WinForms\CursorConverter.cs (3)
35public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 47public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 90public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\DataGridDefaultColumnWidthTypeConverter.cs (2)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 38public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
winforms\Managed\System\WinForms\DataGridTable.cs (1)
1460Type dataType = prop.PropertyType;
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (1)
183this.parseMethod = this.PropertyDescriptor.PropertyType.GetMethod("Parse", new Type[]{typeof(string), typeof(IFormatProvider)});
winforms\Managed\System\WinForms\DataGridViewBand.cs (7)
167public Type DefaultHeaderCellType 171Type dhct = (Type)this.Properties.GetObject(PropDefaultHeaderCellType); 189if (Type.GetType("System.Windows.Forms.DataGridViewHeaderCell").IsAssignableFrom(value)) 350Type cellType = this.DefaultHeaderCellType; 1036Type dhct = (Type)this.Properties.GetObject(PropDefaultHeaderCellType);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (8)
40private static Type defaultFormattedValueType = typeof(System.String); 41private static Type defaultValueType = typeof(System.Object); 42private static Type cellType = typeof(DataGridViewButtonCell); 74public override Type EditType 127public override Type FormattedValueType 172public override Type ValueType 176Type valueType = base.ValueType; 189Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (2)
21private static Type columnType = typeof(DataGridViewButtonColumn); 204Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewCell.cs (7)
71private static Type stringType = typeof(string); // cache the string type for performance 268public virtual Type EditType 361public virtual Type FormattedValueType 920public virtual Type ValueType 924Type cellValueType = (Type) this.Properties.GetObject(PropCellValueType); 4451internal object ParseFormattedValueInternal(Type valueType,
winforms\Managed\System\WinForms\DataGridViewCellConverter.cs (3)
20public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 28public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 35ConstructorInfo ctor = cell.GetType().GetConstructor(new Type[0]);
winforms\Managed\System\WinForms\DataGridViewCellFormattingEventArgs.cs (1)
24Type desiredType,
winforms\Managed\System\WinForms\DataGridViewCellParsingEventArgs.cs (1)
24Type desiredType,
winforms\Managed\System\WinForms\DataGridViewCellStyleConverter.cs (3)
32public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 47public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 53ConstructorInfo ctor = value.GetType().GetConstructor(new Type[0]);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (8)
51private static Type defaultCheckStateType = typeof(System.Windows.Forms.CheckState); 52private static Type defaultBooleanType = typeof(System.Boolean); 53private static Type cellType = typeof(DataGridViewCheckBoxCell); 225public override Type EditType 316public override Type FormattedValueType 456public override Type ValueType 460Type valueType = base.ValueType; 486Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewColumn.cs (3)
221public Type CellType 1049public Type ValueType 1053return (Type) this.Properties.GetObject(PropDataGridViewColumnValueType);
winforms\Managed\System\WinForms\DataGridViewColumnConverter.cs (5)
25public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 39public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 51ctor = dataGridViewColumn.GetType().GetConstructor(new Type[] { typeof(Type) }); 59ctor = dataGridViewColumn.GetType().GetConstructor(new Type[0]);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (2)
39private static Type cellType = typeof(DataGridViewColumnHeaderCell); 115Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (10)
58private static Type defaultFormattedValueType = typeof(System.String); 59private static Type defaultEditType = typeof(System.Windows.Forms.DataGridViewComboBoxEditingControl); 60private static Type defaultValueType = typeof(System.Object); 61private static Type cellType = typeof(DataGridViewComboBoxCell); 401private Type DisplayType 476public override Type EditType 526public override Type FormattedValueType 708public override Type ValueType 722Type baseValueType = base.ValueType; 860Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (2)
24private static Type columnType = typeof(DataGridViewComboBoxColumn); 499Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (4)
429public Type BoundColumnValueType(int boundColumnIndex) 995private static DataGridViewColumn GetDataGridViewColumnFromType(Type type) 1577Type valueType = value.GetType(); 1578Type columnType = this.owner.Columns[columnIndex].ValueType;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (8)
26private static Type defaultFormattedValueType = typeof(System.String); 27private static Type defaultValueType = typeof(System.Object); 28private static Type cellType = typeof(DataGridViewHeaderCell); 126public override Type FormattedValueType 234public override Type ValueType 238Type valueType = (Type) this.Properties.GetObject(PropValueType); 290Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (8)
26private static Type defaultTypeImage = typeof(System.Drawing.Image); 27private static Type defaultTypeIcon = typeof(System.Drawing.Icon); 28private static Type cellType = typeof(DataGridViewImageCell); 96public override Type EditType 130public override Type FormattedValueType 249public override Type ValueType 253Type baseValueType = base.ValueType; 280Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (2)
22private static Type columnType = typeof(DataGridViewImageColumn); 283Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (8)
27private static Type defaultFormattedValueType = typeof(System.String); 28private static Type defaultValueType = typeof(System.Object); 29private static Type cellType = typeof(DataGridViewLinkCell); 119public override Type EditType 129public override Type FormattedValueType 467public override Type ValueType 471Type valueType = base.ValueType; 484Type thisType = this.GetType ();
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (2)
20private static Type columnType = typeof(DataGridViewLinkColumn); 365Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewMethods.cs (10)
2628Type editControlType = dataGridViewCell.EditType; 2632Type editingCellInterface = dataGridViewCell.GetType().GetInterface("System.Windows.Forms.IDataGridViewEditingCell"); 2665Type editingCellInterface = dataGridViewCell.GetType().GetInterface("System.Windows.Forms.IDataGridViewEditingCell"); 2688Type editingCtrlInterface = editControlType.GetInterface("System.Windows.Forms.IDataGridViewEditingControl"); 2689if (!editControlType.IsSubclassOf(Type.GetType("System.Windows.Forms.Control")) || 6872internal TypeConverter GetCachedTypeConverter(Type type) 12114internal DataGridViewCellFormattingEventArgs OnCellFormatting(int columnIndex, int rowIndex, object val, Type formattedValueType, DataGridViewCellStyle cellStyle) 13102internal DataGridViewCellParsingEventArgs OnCellParsing(int rowIndex, int columnIndex, object formattedValue, Type valueType, DataGridViewCellStyle cellStyle) 22321Type editControlType = dataGridViewCell.EditType; 22322Type editingCellInterface = null;
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
27private static Type rowType = typeof(DataGridViewRow); 1123Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewRowConverter.cs (3)
25public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 39public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 48ConstructorInfo ctor = dataGridViewRow.GetType().GetConstructor(new Type[0]);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
42private static Type cellType = typeof(DataGridViewRowHeaderCell); 158Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (7)
41private static Type defaultFormattedValueType = typeof(System.String); 42private static Type defaultValueType = typeof(System.Object); 43private static Type cellType = typeof(DataGridViewTextBoxCell); 85public override Type FormattedValueType 128public override Type ValueType 132Type valueType = base.ValueType; 151Type thisType = this.GetType();
winforms\Managed\System\WinForms\DataObject.cs (10)
204public virtual object GetData(Type format) { 219public virtual bool GetDataPresent(Type format) { 1192public virtual void SetData(Type format, object data) { 1792public override Type BindToType(string assemblyName, string typeName) { 1944public virtual Object GetData(Type format) { 1957public virtual void SetData(Type format, Object data) { 1980public virtual bool GetDataPresent(Type format) { 2157public virtual Object GetData(Type format) { 2185public virtual void SetData(Type format, Object data) { 2201public virtual bool GetDataPresent(Type format) {
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (3)
36private Type[] pageTypes; 67public ComponentEditorForm(object component, Type[] pageTypes) : base() { 543internal ComponentEditorPageSite(Control parent, Type pageClass, IComponent component, ComponentEditorForm form) {
winforms\Managed\System\WinForms\Design\WinFormsComponentEditor.cs (2)
52Type[] pageControlTypes = GetComponentEditorPages(); 69protected virtual Type[] GetComponentEditorPages() {
winforms\Managed\System\WinForms\FeatureSupport.cs (4)
46Type c = null; 48c = Type.GetType(featureClassName); 81Type c = null; 83c = Type.GetType(featureClassName);
winforms\Managed\System\WinForms\FlatButtonAppearance.cs (1)
179public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\Form.cs (7)
6598private static Type FindClosestStockType(Type type) { 6599Type[] stockTypes = new Type[] { typeof (MenuStrip) }; // as opposed to what we had before... see VSWhidbey 516929 6601foreach(Type t in stockTypes) { 6636Type closestMatchingSourceType = FindClosestStockType(sourceToolStrip.GetType()); 6638Type closestMatchingTargetType = FindClosestStockType(thisToolstrip.GetType());
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\HtmlElement.cs (1)
1394private static Type[] dispInterfaceTypes = {typeof(UnsafeNativeMethods.DHTMLElementEvents2),
winforms\Managed\System\WinForms\HtmlToClrEventProxy.cs (5)
43Type htmlToClrEventProxyType = typeof(HtmlToClrEventProxy); 65Type IReflect.UnderlyingSystemType { 87System.Reflection.MethodInfo IReflect.GetMethod(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers) { 99System.Reflection.PropertyInfo IReflect.GetProperty(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers) {
winforms\Managed\System\WinForms\IDataObject.cs (3)
41object GetData(Type format); 63void SetData(Type format, object data); 91bool GetDataPresent(Type format);
winforms\Managed\System\WinForms\ImageIndexConverter.cs (1)
74public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\ImageKeyConverter.cs (2)
55public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 86public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\KeysConverter.cs (3)
118public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 130public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 237public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\LinkArea.cs (4)
110public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 122public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 179public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 203ConstructorInfo ctor = typeof(LinkArea).GetConstructor(new Type[] {typeof(int), typeof(int)});
winforms\Managed\System\WinForms\LinkConverter.cs (5)
35public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 47public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 104public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 131info = typeof(LinkLabel.Link).GetConstructor(new Type[] {typeof(int), typeof(int)}); 137info = typeof(LinkLabel.Link).GetConstructor(new Type[] {typeof(int), typeof(int), typeof(object)});
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\ListBindingHelper.cs (30)
63if (dataSource == null || dataSource is Type || String.IsNullOrEmpty(dataMember)) { 110Type type; 113Type listAsType = list as Type; 142} else if (list is Type) { 143pdc = GetListItemPropertiesByType(list as Type); 173if (list is Type) { 174pdc = GetListItemPropertiesByType(list as Type, listAccessors); 230public static Type GetListItemType(object list) { 235Type itemType = null; 238if ((list is Type) && (typeof(IListSource).IsAssignableFrom(list as Type))) { 239list = CreateInstanceOfType(list as Type); 243Type listType = (list is Type) ? (list as Type) : list.GetType(); 244object listInstance = (list is Type) ? null : list; 267private static object CreateInstanceOfType(Type type) { 295public static Type GetListItemType(object dataSource, string dataMember) { 322private static string GetListNameFromType(Type type) { 349private static PropertyDescriptorCollection GetListItemPropertiesByType(Type type, PropertyDescriptor[] listAccessors) { 362private static PropertyDescriptorCollection GetListItemPropertiesByType(Type type, PropertyDescriptor[] listAccessors, int startIndex) { 364Type subType = listAccessors[startIndex].PropertyType; 458private static Type GetListItemTypeByEnumerable(IEnumerable iEnumerable) { 503private static bool IsListBasedType(Type type) 520foreach (Type curInterface in type.GetInterfaces()) { 546private static PropertyInfo GetTypedIndexer(Type type) 569private static PropertyDescriptorCollection GetListItemPropertiesByType(Type type) { 575Type targetType = enumerable.GetType(); 589Type type = indexer.PropertyType;
winforms\Managed\System\WinForms\ListControlConvertEventArgs.cs (1)
15public ListControlConvertEventArgs(object value, Type desiredType, object listItem) : base(value, desiredType) {
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\ListViewGroupConverter.cs (4)
36public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 48public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 95public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 106ctor = typeof(ListViewGroup).GetConstructor(new Type[] {typeof(string), typeof(HorizontalAlignment)});
winforms\Managed\System\WinForms\ListViewItem.cs (1)
982Type clonedType = this.GetType();
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
112private Type validatingType; 1633public Type ValidatingType
winforms\Managed\System\WinForms\MdiWindowListItemConverter.cs (1)
13public MdiWindowListItemConverter(Type type) : base(type) {
winforms\Managed\System\WinForms\Message.cs (1)
89public object GetLParam(Type cls) {
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4301Type t = var.GetType();
winforms\Managed\System\WinForms\OpacityConverter.cs (2)
34public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 99public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
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)}),
winforms\Managed\System\WinForms\Panel.cs (1)
306Type borderStyleType = typeof(BorderStyle);
winforms\Managed\System\WinForms\PropertyGrid.cs (31)
714protected virtual Type DefaultTabType { 1207Type oldType = GetUnwrappedObject(i).GetType(); 1214Type newType = objTemp.GetType(); 1271Type tabType = selectedViewTab == -1 ? null : viewTabs[selectedViewTab].GetType(); 1307Type objType = tempObj.GetType(); 1834internal void AddTab(Type tabType, PropertyTabScope scope) { 1839internal void AddRefTab(Type tabType, Object component, PropertyTabScope type, bool setupToolbar) { 2020protected virtual PropertyTab CreatePropertyTab(Type tabType) { 2024private PropertyTab CreateTab(Type tabType, IDesignerHost host) { 2028ConstructorInfo constructor = tabType.GetConstructor(new Type[] {typeof(IServiceProvider)}); 2033constructor = tabType.GetConstructor(new Type[] {typeof(IDesignerHost)}); 2524private static Type[] GetCommonTabs(Object[] objs, PropertyTabScope tabScope) { 2527return new Type[0]; 2530Type[] tabTypes = new Type[5]; 2536return new Type[0]; 2545Type[] newTabs = new Type[types * 2]; 2554return new Type[0]; 2566return new Type[0]; 2593Type[] returnTypes = new Type[types]; 3366Type propertyType = changedItem.PropertyDescriptor.PropertyType; 3461Type typeChanged = e.TypeChanged; 3942Type[] tabTypes = GetCommonTabs(currentObjects, PropertyTabScope.Component); 3976internal void ReleaseTab(Type tabType, Object component) { 4128internal void RemoveTab(Type tabType) { 5140public void AddTabType(Type propertyTabType) { 5151public void AddTabType(Type propertyTabType, PropertyTabScope tabScope) { 5197public void RemoveTabType(Type propertyTabType) { 5237public object GetService(Type serviceType) {
winforms\Managed\System\WinForms\PropertyGridInternal\ArrayElementGridEntry.cs (1)
56public override Type PropertyType {
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (1)
179public override Type PropertyType {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (7)
940public virtual Type PropertyType { 1362public virtual object FindPropertyValue(string propertyName, Type propertyType) { 1500Type type = this.PropertyType; 1513public virtual Type GetValueType() { 1521protected virtual GridEntry[] GetPropEntries(GridEntry peParent, object obj, Type objType) { 1832public virtual object GetService(Type serviceType) { 2565Type type = this.PropertyType;
winforms\Managed\System\WinForms\PropertyGridInternal\MergePropertyDescriptor.cs (6)
55public override Type ComponentType { 133public override Type PropertyType { 181Type type = value.GetType(); 260public override object GetEditor(Type editorBaseType) { 538public override Attribute this[Type attributeType] { 623private Attribute GetCommonAttribute(Type attributeType) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (6)
137Type componentType = propertyInfo.ComponentType; 149Type ownerType = owner.GetType(); 290public override Type PropertyType { 358Type propType = this.PropertyType; 837Type propType = ParentGridEntry.PropertyType; 1208public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (3)
1231Type propType = entry.PropertyType; 1598public new object GetService(Type classService) { 5736Type createType = gridView.SelectedGridEntry.PropertyType;
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
255public override object GetService(Type serviceType) {
winforms\Managed\System\WinForms\PropertyManager.cs (1)
80internal override Type BindType {
winforms\Managed\System\WinForms\RelatedPropertyManager.cs (1)
84internal override Type BindType {
winforms\Managed\System\WinForms\SelectionRangeConverter.cs (4)
36public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 48public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 103public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 129ConstructorInfo ctor = typeof(SelectionRange).GetConstructor(new Type[] {
winforms\Managed\System\WinForms\SpecialFolderEnumConverter.cs (1)
13public SpecialFolderEnumConverter(Type type) : base(type) {
winforms\Managed\System\WinForms\SplitContainer.cs (1)
2572public SplitContainerTypedControlCollection(Control c, Type type, bool isReadOnly): base(c, type, isReadOnly)
winforms\Managed\System\WinForms\TabControl.cs (1)
1225protected virtual object[] GetItems(Type baseType) {
winforms\Managed\System\WinForms\TableLayoutPanelCellPosition.cs (4)
81public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 88public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 134public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 144typeof(TableLayoutPanelCellPosition).GetConstructor(new Type[] {typeof(int), typeof(int)}),
winforms\Managed\System\WinForms\TableLayoutSettings.cs (4)
672public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 679public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 690style.GetType().GetConstructor(new Type[] {}), 695style.GetType().GetConstructor(new Type[] {typeof(SizeType), typeof(int)}),
winforms\Managed\System\WinForms\TableLayoutSettingsTypeConverter.cs (4)
25public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 37public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 66public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 185Type sizeTypeType = typeof(SizeType);
winforms\Managed\System\WinForms\TextBoxAutoCompleteSourceConverter.cs (1)
13public TextBoxAutoCompleteSourceConverter(Type type) : base(type) {
winforms\Managed\System\WinForms\ToolStrip.cs (3)
82private Type currentRendererType = typeof(System.Type); 1704currentRendererType = (renderer != null) ? renderer.GetType() : typeof(System.Type);
winforms\Managed\System\WinForms\ToolStripContainer.cs (3)
447Type contentPanelType = typeof(ToolStripContentPanel); 448Type panelType = typeof(ToolStripPanel); 463Type controlType = value.GetType();
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
1165object IServiceProvider.GetService(Type service) {
winforms\Managed\System\WinForms\ToolStripManager.cs (6)
446internal static Type SystemRendererType = typeof(ToolStripSystemRenderer); 447internal static Type ProfessionalRendererType = typeof(ToolStripProfessionalRenderer); 451private static Type currentRendererType; 453private static Type CurrentRendererType { 463private static Type DefaultRendererType { 523Type currentType = CurrentRendererType;
winforms\Managed\System\WinForms\ToolStripPanel.cs (2)
37private Type currentRendererType = typeof(System.Type);
winforms\Managed\System\WinForms\ToolStripRendererSwitcher.cs (3)
24private Type currentRendererType = typeof(System.Type); 67currentRendererType = (renderer != null) ? renderer.GetType() : typeof(System.Type);
winforms\Managed\System\WinForms\ToolStripSettings.cs (1)
287private ArrayList FindControls(Type baseType, bool searchAllChildren, Control.ControlCollection controlsToLookIn, ArrayList foundControls) {
winforms\Managed\System\WinForms\TreeNode.cs (1)
1263Type clonedType = this.GetType();
winforms\Managed\System\WinForms\TreeNodeConverter.cs (6)
36public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { 51public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { 63info = typeof(TreeNode).GetConstructor(new Type[] {typeof(string)}); 67info = typeof(TreeNode).GetConstructor(new Type[] {typeof(string), typeof(TreeNode[])}); 77info = typeof(TreeNode).GetConstructor(new Type[] { 87info = typeof(TreeNode).GetConstructor(new Type[] {
winforms\Managed\System\WinForms\TreeViewImageIndexConverter.cs (1)
63public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\TreeViewImageKeyConverter.cs (1)
35public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
winforms\Managed\System\WinForms\TypeValidationEventArgs.cs (3)
14private Type validatingType; 20public TypeValidationEventArgs(Type validatingType, bool isValidInput, object returnValue, string message) 80public Type ValidatingType
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (2)
7525public static object PtrToStructure(IntPtr lparam, Type cls) { 7534internal static int SizeOf(Type t)
winforms\Managed\System\WinForms\WebBrowser.cs (1)
509Type t = value.GetType();
winforms\Managed\System\WinForms\WinFormsUtils.cs (4)
537private Type typeOfControl; 540public TypedControlCollection(Control owner, Type typeOfControl, bool isReadOnly) : base(owner, isReadOnly) { 545public TypedControlCollection(Control owner, Type typeOfControl) : base(owner, /*isReadOnly*/false) { 755Type binaryCompatibitlityType;
System.Windows.Forms.DataVisualization (79)
Common\Borders3D\Borders3D.cs (6)
618object IServiceProvider.GetService(Type serviceType) 636 public void Register(string name, Type borderType) 653 Type[] interfaces = borderType.GetInterfaces(); 654 foreach(Type type in interfaces) 689 ((Type)registeredBorderTypes[name]).Assembly. 690 CreateInstance(((Type)registeredBorderTypes[name]).ToString());
Common\ChartTypes\ChartTypeRegistry.cs (6)
148 object IServiceProvider.GetService(Type serviceType) 166 public void Register(string name, Type chartType) 183 Type[] interfaces = chartType.GetInterfaces(); 184 foreach(Type type in interfaces) 229 ((Type)registeredChartTypes[name]).Assembly. 230 CreateInstance(((Type)registeredChartTypes[name]).ToString());
Common\Converters\AnnotationConverters.cs (2)
70 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 111public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\AxesArrayConverter.cs (1)
81 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\AxisConverters.cs (5)
66 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 277 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 349 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 489 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 629 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\CustomAttributesConverters.cs (7)
61 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 77 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 95 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) 507 Type componentType, 509 Type propertyType, 869 public override Type ComponentType 917 public override Type PropertyType
Common\Converters\DataManagerConverters.cs (8)
450 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 482 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 565 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 622 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 679 public SeriesYValueTypeConverter(Type type) : base(type) 726 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 746 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 763 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\ElementPositionConverter.cs (3)
56 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 90 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\Converters\LegendConverters.cs (5)
267 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) 318 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 337 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 356 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 466 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
Common\DataManager\DataManager.cs (1)
96 object IServiceProvider.GetService(Type serviceType)
Common\DataManager\DataPoint.cs (3)
1351 Type columnDataType = null; 2103 Type paramType = xValue.GetType(); 2204 Type paramType = yValue[0].GetType();
Common\DataManager\DataSeries.cs (1)
921 internal void CheckSupportedTypes(Type type)
Common\Formulas\FormulaRegistry.cs (6)
67 public void Register(string name, Type moduleType) 87 Type[] interfaces = moduleType.GetInterfaces(); 88 foreach(Type type in interfaces) 111 object IServiceProvider.GetService(Type serviceType) 138 ((Type)registeredModules[name]).Assembly. 139 CreateInstance(((Type)registeredModules[name]).ToString());
Common\General\AxisScrollZoom.cs (2)
1505 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 1591 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Common\General\Chart.cs (3)
447Type selectArgsType = dataSource.GetType().Assembly.GetType("System.Web.UI.DataSourceSelectArguments", true); 448ConstructorInfo ci = selectArgsType.GetConstructor(new Type[] { }); 1584 object IServiceProvider.GetService(Type serviceType)
Common\General\ChartSerializer.cs (1)
168 internal object GetService(Type serviceType)
Common\General\DataManipulator.cs (1)
972 Type columnType = typeof(double);
Common\General\Selection.cs (1)
3372object IServiceProvider.GetService(Type serviceType)
Common\Utilities\CustomAttributesRegistry.cs (3)
429 object IServiceProvider.GetService(Type serviceType) 1893 public Type ValueType = typeof(int); 1956 Type valueType,
Common\Utilities\ImageLoader.cs (1)
101 object IServiceProvider.GetService(Type serviceType)
Common\Utilities\KeywordsRegistry.cs (1)
137 object IServiceProvider.GetService(Type serviceType)
Common\Utilities\XmlSerializer.cs (10)
638 Type currentType = objectToSerialize.GetType(); 748 Type itemType = null; 751itemType = Type.GetType(typeof(Chart).Namespace + "." + itemTypeName, false, true); 755 PropertyInfo pi = list.GetType().GetProperty("Item", itemType, new Type[] {typeof(string)} ); 756MethodInfo mi = list.GetType().GetMethod("IndexOf", new Type[] { typeof(String) }); 842ci = itemType.GetConstructor(Type.EmptyTypes); 846ci = pi.PropertyType.GetConstructor(Type.EmptyTypes); 2951 Type[] assemblyTypes = null; 2960PropertyInfo listItemPI = objectToDeserialize.GetType().GetProperty("Item", new Type[] { typeof(int) }); 2981foreach (Type type in assemblyTypes)
WinForm\ChartWinControl.cs (1)
2987 public new object GetService(Type serviceType)
WinForm\Utilities\Printing.cs (1)
82 internal object GetService(Type serviceType)
System.Workflow.Activities (696)
CodeExpressionRuleDeclaration.cs (1)
42protected override object GetBoundValue(ActivityBind bind, Type targetType)
Common\BasePropertyDescriptor.cs (28)
70internal static Type GetBaseType(PropertyDescriptor property, object owner, IServiceProvider serviceProvider) 72Type baseType = null; 74Type ownerType = owner.GetType(); 235public override Type ComponentType 243public override Type PropertyType 304private Type componentType; 308private Type parameterType = null; 311internal ParameterInfoBasedPropertyDescriptor(Type componentType, ParameterInfo paramInfo, bool avoidDuplication, params Attribute[] attributes) 340internal ParameterInfoBasedPropertyDescriptor(Type componentType, string propertyName, Type propertyType, bool avoidDuplication, params Attribute[] attributes) 355internal Type ParameterType 359Type type = this.parameterType; 382public override object GetEditor(Type editorBaseType) 403public override Type ComponentType 426internal static MemberInfo FindMatchingMember(string name, Type ownerType, bool ignoreCase) 440public override Type PropertyType 444Type propertyType = ParameterType; 563MemberInfo memberInfo = component.GetType().GetProperty("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, typeof(WorkflowParameterBindingCollection), new Type[] { }, new ParameterModifier[] { }); 569public static string GetParameterPropertyName(Type componentType, string paramName) 641Type baseConverterType = Assembly.GetExecutingAssembly().GetType(baseConverterTypeName); 683Type type = value as Type; 730public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 742public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 747if (TypeDescriptor.Equals(destinationType, typeof(Type))) 769public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 771if (value is Type && TypeDescriptor.Equals(destinationType, typeof(string))) 772return ((Type)value).FullName;
Common\CompilerHelpers.cs (5)
46private static Dictionary<Type, Dictionary<string, CodeDomProvider>> providers = null; 50internal static CodeDomProvider CreateCodeProviderInstance(Type type) 56internal static CodeDomProvider CreateCodeProviderInstance(Type type, string compilerVersion) 80static CodeDomProvider GetCodeProviderInstance(Type type, string compilerVersion) 87providers = new Dictionary<Type, Dictionary<string, CodeDomProvider>>();
Common\CompModHelpers.cs (12)
418internal static Type GetDataSourceClass(Activity activity, IServiceProvider serviceProvider) 425Type activityType = null; 632internal static Type GetBaseType(PropertyInfo property, object owner, IServiceProvider serviceProvider) 646Type type = basetypeProvider.GetPropertyType(serviceProvider, property.Name); 695internal static bool TypesEqual(CodeTypeReference typeLeft, Type typeRight) 740internal static MethodInfo GetMethodExactMatch(Type type, string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers) 785internal static Type GetDelegateFromEvent(EventInfo eventInfo) 816foreach (Type type in assembly.GetTypes()) 952internal static MethodInfo GetInterfaceMethod(Type interfaceType, string methodName) 966foreach (Type inheritedInterface in interfaceType.GetInterfaces()) 1365public object GetService(Type serviceType)
Common\DelegateTypeInfo.cs (6)
30private Type[] parameterTypes; 41internal Type[] ParameterTypes 57internal DelegateTypeInfo(Type delegateClass) 63private void Resolve(Type delegateClass) 79parameterTypes = new Type[argTypes.Length]; 83Type paramType = argTypes[index].ParameterType;
Common\TypeSystemHelpers.cs (5)
284internal static string FormatType(Type type, SupportedLanguages language) 311Type[] genericArguments = type.GetGenericArguments(); 318foreach (Type genericArgument in genericArguments) 409internal static Type ParseTypeName(ITypeProvider typeProvider, SupportedLanguages language, string typeName) 411Type returnType = null;
Common\ValidationHelpers.cs (1)
194Type objType = obj.GetType();
Common\Walker.cs (1)
280private static bool IsBrowsableType(Type type)
CorrelationValidator.cs (31)
34Type interfaceType = (activity is CallExternalMethodActivity) ? ((CallExternalMethodActivity)activity).InterfaceType : ((HandleExternalEventActivity)activity).InterfaceType; 359private static ValidationErrorCollection ValidateHostInterface(IServiceProvider serviceProvider, Type interfaceType, Activity activity) 361Dictionary<Type, ValidationErrorCollection> typesValidated = serviceProvider.GetService(typeof(Dictionary<Type, ValidationErrorCollection>)) as Dictionary<Type, ValidationErrorCollection>; 365typesValidated = new Dictionary<Type, ValidationErrorCollection>(); 368serviceContainer.AddService(typeof(Dictionary<Type, ValidationErrorCollection>), typesValidated); 396private static ValidationErrorCollection ValidateHostInterfaceMembers(Type interfaceType, Activity activity) 409Type delegateType = null; 466private static ValidationErrorCollection ValidateHostInterfaceAttributes(Type interfaceType) 514Type paramType = FetchParameterType(memberInfo, paramPath); 533Type delegateType = Helpers.GetDelegateFromEvent((EventInfo)memberInfo); 552Type paramType = FetchParameterType(memberInfo, paramPath); 594Type paramType = FetchParameterType((MemberInfo)memberEntry.Key, paramPath); 606else if (paramTypes.ContainsKey(paramName) && (Type)paramTypes[paramName] != paramType) 609ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationTypeNotConsistent, paramPath, typeof(CorrelationAliasAttribute).Name, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramType.Name, ((Type)paramTypes[paramName]).Name, paramName, interfaceType.Name), ErrorNumbers.Error_CorrelationTypeNotConsistent); 626private static ValidationErrorCollection ValidateInvalidHostInterfaceAttributes(Type interfaceType) 653private static Type FetchParameterType(MemberInfo memberInfo, string paramPath) 658Type delegateType = Helpers.GetDelegateFromEvent((EventInfo)memberInfo); 702private static Type GetCorrelationParameterType(string parameterPropertyName, object parametersCollection) 705Type correlationParameterType = null; 710Type evntHandlerType = null; 716evntHandlerType = parameterDeclaration.UserData[typeof(Type)] as Type; 739correlationParameterType = parameterDeclaration.UserData[typeof(Type)] as Type; 759Type tempParameterType = null; 819Type interfaceType = (activity is CallExternalMethodActivity) ? ((CallExternalMethodActivity)activity).InterfaceType : ((HandleExternalEventActivity)activity).InterfaceType; 850Type delegateType = eventInfo.EventHandlerType; 923private static void ValidateParameterSerializabiltiy(ValidationErrorCollection validationErrors, Type type) 926Type serializableType = type.GetInterface(typeof(ISerializable).FullName);
Delay.cs (3)
202public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 210public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 221public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Designers\ConditionalDesigner.cs (1)
23public IfElseToolboxItem(Type type)
Designers\EventDrivenDesigner.cs (2)
26if (!(Type.GetType("System.Workflow.Activities.ListenActivity," + AssemblyRef.ActivitiesAssemblyRef).IsAssignableFrom(parentActivityDesigner.Activity.GetType())) && 28!(Type.GetType("System.Workflow.Activities.StateActivity," + AssemblyRef.ActivitiesAssemblyRef).IsAssignableFrom(parentActivityDesigner.Activity.GetType())))
Designers\EventSinkActivityDesigner.cs (4)
31Type type = eventSink.InterfaceType; 40private void AddRemoveCorrelationToken(Type interfaceType, IDictionary properties, object corrRefProperty) 67Type interfaceType = e.NewValue as Type;
Designers\InvokeMethodActivityDesigner.cs (4)
30Type type = invokeMethod.InterfaceType; 39private void AddRemoveCorrelationToken(Type interfaceType, IDictionary properties, object corrRefProperty) 66Type interfaceType = e.NewValue as Type;
Designers\InvokeWebServiceDesigner.cs (3)
30public InvokeWebServiceToolboxItem(Type type) 44Type proxyClass = null; 229Type proxyClass = null;
Designers\ListenDesigner.cs (1)
23public ListenToolboxItem(Type type)
Designers\ParallelDesigner.cs (1)
23public ParallelToolboxItem(Type type)
Designers\PolicyDesigner.cs (1)
25new public object GetService(Type type)
Designers\ServiceDesigner.cs (1)
48protected override bool IsSupportedActivityType(Type activityType)
Designers\StateDesigner.cs (11)
766internal virtual ReadOnlyCollection<Type> ValidChildTypes 770List<Type> validChildTypes = new List<Type>(); 850ReadOnlyCollection<Type> validChildTypes = ValidChildTypes; 854foreach (Type type in validChildTypes) 2228private static object GetService(ActivityDesigner designer, Type serviceType) 2441public override Type DeclaringType 2449public override Type ReflectedType 2457public override Type PropertyType 2529public override object[] GetCustomAttributes(Type attributeType, bool inherit) 2534public override bool IsDefined(Type attributeType, bool inherit)
Designers\StateDesignerConnector.cs (1)
270protected override object CreateInstance(WorkflowMarkupSerializationManager serializationManager, Type type)
Designers\StateMachineWorkflowDesigner.cs (1)
104protected override bool IsSupportedActivityType(Type activityType)
Designers\WebServiceReceiveDesigner.cs (5)
48Type interfaceType = e.NewValue as Type; 110Type type = typeProvider.GetType(value as string); 118Type typeFilterProviderType = Type.GetType(filterProviderAttribute.TypeFilterProviderTypeName);
EventSinkActivity.cs (9)
37public static readonly DependencyProperty InterfaceTypeProperty = DependencyProperty.Register("InterfaceType", typeof(System.Type), typeof(HandleExternalEventActivity), new PropertyMetadata(null, DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) })); 85public virtual Type InterfaceType 89return base.GetValue(InterfaceTypeProperty) as Type; 187Type type = this.InterfaceType; 218Type type = this.InterfaceType; 419Type IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider serviceProvider, string propertyName) 453Type type = this.InterfaceType; 463Type delegateType = TypeProvider.GetEventHandlerType(eventInfo); 510public bool CanFilterType(Type type, bool throwOnError)
Executors\InboundActivityHelper.cs (3)
20internal static ActivityExecutionStatus ExecuteForActivity(HandleExternalEventActivity activity, ActivityExecutionContext context, Type interfaceType, string operation, out object[] args) 54private static object[] ProcessEvent(HandleExternalEventActivity activity, ActivityExecutionContext context, object msg, Type interfaceType, string operation) 77private static bool ProcessEventParameters(WorkflowParameterBindingCollection parameters, IMethodMessage message, Type interfaceType, string operation)
Executors\WorkflowWebService.cs (4)
29Type workflowType; 34protected WorkflowWebService(Type workflowType) 38protected Object[] Invoke(Type interfaceType, String methodName, bool isActivation, Object[] parameters) 178private static MethodMessage PrepareMessage(Type interfaceType, String operation, object[] parameters, bool responseRequired)
InvokeMethodActivity.cs (7)
34public static readonly DependencyProperty InterfaceTypeProperty = DependencyProperty.Register("InterfaceType", typeof(System.Type), typeof(CallExternalMethodActivity), new PropertyMetadata(null, DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) })); 63public virtual Type InterfaceType 67return base.GetValue(InterfaceTypeProperty) as Type; 160Type type = this.InterfaceType; 193Type type = this.InterfaceType; 224Type IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider serviceProvider, string propertyName) 261Type type = this.InterfaceType;
InvokeSchedule.cs (7)
38public static readonly DependencyProperty TargetWorkflowProperty = DependencyProperty.Register("TargetWorkflow", typeof(Type), typeof(InvokeWorkflowActivity), new PropertyMetadata(null, DependencyPropertyOptions.Metadata)); 68public Type TargetWorkflow 72return base.GetValue(TargetWorkflowProperty) as Type; 123bool ITypeFilterProvider.CanFilterType(Type type, bool throwOnError) 211Type targetWorkflowType = invokeWorkflow.TargetWorkflow; 214Type workflowType = typeProvider.LocalAssembly.GetType(targetWorkflowType.FullName); 295Type parameterType = propertyInfo.PropertyType;
InvokeWebService.cs (12)
62public static readonly DependencyProperty ProxyClassProperty = DependencyProperty.Register("ProxyClass", typeof(Type), typeof(InvokeWebServiceActivity), new PropertyMetadata(null, DependencyPropertyOptions.Metadata)); 219public Type ProxyClass 223return base.GetValue(ProxyClassProperty) as Type; 318List<Type> typeList = new List<Type>(); 319Type webServiceBaseType = typeProvider.GetType(typeof(System.Web.Services.Protocols.SoapHttpClientProtocol).FullName); 322Type[] types = typeProvider.GetTypes(); 323foreach (Type type in types) 334Type type = this.ProxyClass; 355Type IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider serviceProvider, string propertyName) 389Type type = this.ProxyClass; 445Type proxyClassType = invokeWebService.ProxyClass;
LocalService\CorrelationResolver.cs (21)
25static Dictionary<Type, CorrelationMethodResolver> cachedTypeResolver = new Dictionary<Type, CorrelationMethodResolver>(); 28internal static bool IsInitializingMember(Type interfaceType, string memberName, object[] methodArgs) 41internal static ICollection<CorrelationProperty> ResolveCorrelationValues(Type interfaceType, string eventName, object[] eventArgs, bool provideInitializerTokens) 54internal static ICorrelationProvider GetCorrelationProvider(Type interfaceType) 60private static CorrelationMethodResolver GetResolver(Type interfaceType) 82Type interfaceType; 88internal CorrelationMethodResolver(Type interfaceType) 124Type providerType = cpattrib.CorrelationProviderType; 160Type type = arg.GetType(); 189private Type GetMemberType(MemberInfo mInfo) 191Type type = null; 213Type interfaceType; 224internal DefaultCorrelationProvider(Type interfaceType) 230ICollection<CorrelationProperty> ICorrelationProvider.ResolveCorrelationPropertyValues(Type interfaceType, string methodName, object[] methodArgs, bool provideInitializerTokens) 297bool ICorrelationProvider.IsInitializingMember(Type interfaceType, string memberName, object[] methodArgs) 302private CorrelationPropertyValue[] GetCorrelationProperties(Type interfaceType, string methodName) 383private void GetMethodInfo(Type interfaceType, string methodName, out MethodInfo methodInfo, out Dictionary<String, CorrelationAliasAttribute> correlationAliases) 439private object[] GetCorrelationParameterAttributes(Type type) 451ICollection<CorrelationProperty> ICorrelationProvider.ResolveCorrelationPropertyValues(Type interfaceType, string methodName, object[] methodArgs, bool provideInitializerTokens) 458bool ICorrelationProvider.IsInitializingMember(Type interfaceType, string memberName, object[] methodArgs)
LocalService\CorrelationService.cs (14)
22ICollection<CorrelationProperty> ResolveCorrelationPropertyValues(Type interfaceType, string memberName, object[] methodArgs, bool provideInitializerTokens); 23bool IsInitializingMember(Type interfaceType, string memberName, object[] methodArgs); 29private Type correlationProviderType; 31internal CorrelationProviderAttribute(Type correlationProviderType) 36internal Type CorrelationProviderType 47internal static void Initialize(IServiceProvider context, Activity activity, Type interfaceType, string methodName, Guid instanceId) 60internal static bool Subscribe(IServiceProvider context, Activity activity, Type interfaceType, string methodName, IActivityEventListener<QueueEventArgs> eventListener, Guid instanceId) 98internal static bool Unsubscribe(IServiceProvider context, Activity activity, Type interfaceType, string methodName, IActivityEventListener<QueueEventArgs> eventListener) 120internal static IComparable ResolveQueueName(Activity activity, Type interfaceType, string methodName) 145internal static void InvalidateCorrelationToken(Activity activity, Type interfaceType, string methodName, object[] messageArgs) 249private static void SubscribeForCorrelationTokenInvalidation(Activity activity, Type interfaceType, string followermethodName, IActivityEventListener<QueueEventArgs> eventListener, Guid instanceId) 256private static void InitializeFollowers(IServiceProvider context, Type interfaceType, string followermethodName) 268private static void CreateFollowerEntry(IServiceProvider context, Type interfaceType, string followermethodName, string initializermethodName) 294internal static void UninitializeFollowers(Type interfaceType, string initializer, WorkflowQueue initializerQueue)
LocalService\CorrelationTokenInvalidatedHandler.cs (2)
22Type interfaceType; 25internal CorrelationTokenInvalidatedHandler(Type interfaceType, string operation, IActivityEventListener<QueueEventArgs> eventHandler, Guid instanceId)
LocalService\CorrelationTokenTypeConvertor.cs (3)
22public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 27public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 55public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
LocalService\DataExchangeServiceBinder.cs (5)
27defltBinder = Type.DefaultBinder; 86Type[] types, 94Type returnType, 95Type[] indexes, 103Type type,
LocalService\ExternalDataExchangeService.cs (6)
155Type t = Type.GetType(serviceSettings.Type, true); 244public virtual object GetService(Type serviceType) 273Type[] interfaceTypes = service.GetType().GetInterfaces(); 274foreach (Type type in interfaceTypes) 321Type serviceType = addedservice.GetType();
LocalService\MessageEventSubscriptionService.cs (4)
24Type interfaceType; 48public MessageEventSubscription(IComparable queueName, Guid subscriptionId, Type interfaceType, String operation) 54public MessageEventSubscription(IComparable queueName, Guid instanceId, Type interfaceType, String operation, Guid subscriptionId) 64public virtual Type InterfaceType
LocalService\MessageQueueKey.cs (5)
19Type interfaceType; 43public EventQueueName(Type interfaceType, string operation) 54public EventQueueName(Type interfaceType, string operation, ICollection<CorrelationProperty> propertyValues) 64internal EventQueueName(Type interfaceType, string operation, string activityId) 71public Type InterfaceType
LocalService\MethodMessage.cs (4)
29Type interfaceType; 54internal MethodMessage(Type interfaceType, string methodName, 61internal MethodMessage(Type interfaceType, string methodName, 328internal CallContextProxy(Type proxiedType)
LocalService\WorkflowMessageEventHandler.cs (3)
48Type proxiedType; 51Type eventHandlerType; 55internal WorkflowMessageEventHandler(Type proxiedType, EventInfo eventInfo, IDeliverMessage enqueueWrapper)
Rules\ArithmeticLiteral.cs (15)
24internal protected Type m_type; 49private static Dictionary<Type, LiteralMaker> types = CreateTypesDictionary(); 73private static Dictionary<Type, TypeFlags> supportedTypes = CreateSupportedTypesDictionary(); 75private static Dictionary<Type, LiteralMaker> CreateTypesDictionary() 78Dictionary<Type, LiteralMaker> dictionary = new Dictionary<Type, LiteralMaker>(16); 110static private Dictionary<Type, TypeFlags> CreateSupportedTypesDictionary() 112Dictionary<Type, TypeFlags> dictionary = new Dictionary<Type, TypeFlags>(26); 145internal static ArithmeticLiteral MakeLiteral(Type literalType, object literalValue) 299Type lhs, 301Type rhs, 310Type resultType = ResultType(operation, lhsType, rhsType); 337private static Type ResultType(CodeBinaryOperatorType operation, TypeFlags lhsType, TypeFlags rhsType) 3405internal NullArithmeticLiteral(Type type)
Rules\CodeDomDecompiler.cs (8)
24Type primitiveType = primitiveValue.GetType(); 174internal static string DecompileType(Type type) 184private static void DecompileType_Helper(StringBuilder decompilation, Type type) 220Type[] typeArgs = type.GetGenericArguments(); 407private static Dictionary<Type, ComputePrecedence> precedenceMap = InitializePrecedenceMap(); 410private static Dictionary<Type, ComputePrecedence> InitializePrecedenceMap() 412Dictionary<Type, ComputePrecedence> map = new Dictionary<Type, ComputePrecedence>(7);
Rules\Design\Dialogs\IntellisenseTextBox.cs (2)
399else if (item is Type) 566Type paramType = parameterInfo.ParameterType;
Rules\Design\Dialogs\RuleConditionDialog.cs (1)
69public RuleConditionDialog(Type activityType, ITypeProvider typeProvider, CodeExpression expression)
Rules\Design\Dialogs\RuleSetDialog.cs (1)
71public RuleSetDialog(Type activityType, ITypeProvider typeProvider, RuleSet ruleSet)
Rules\Design\LogicalExpressionTypeConverter.cs (10)
71public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 79public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 100public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 108public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 152public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 191public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 199public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 222public override object GetEditor(Type editorBaseType) 327public override object GetEditor(Type editorBaseType) 430public override object GetEditor(Type editorBaseType)
Rules\Exceptions.cs (10)
112private Type m_leftType; 114private Type m_rightType; 119public Type Left 137public Type Right 179Type left, 181Type right) 199Type left, 201Type right, 222m_leftType = Type.GetType(qualifiedTypeString); 226m_rightType = Type.GetType(qualifiedTypeString);
Rules\Executor.cs (14)
682Type expectedType = context.Validation.ExpressionInfo(expression).ExpressionType; 694internal static object AdjustType(Type operandType, object operandValue, Type toType) 720Type sx = conversion.GetParameters()[0].ParameterType; 721Type tx = conversion.ReturnType; 739internal static object AdjustTypeWithCast(Type operandType, object operandValue, Type toType) 767Type sx = conversion.GetParameters()[0].ParameterType; 768Type tx = conversion.ReturnType; 788private static bool AdjustValueStandard(Type operandType, object operandValue, Type toType, out object converted) 819Type currentType = operandValue.GetType(); 841Type resultType = (resultNullable) ? Nullable.GetUnderlyingType(toType) : toType; 848Type underlyingType = Enum.GetUnderlyingType(resultType);
Rules\Expressions.cs (44)
126Type resultType = (primitiveExpr.Value != null) ? primitiveExpr.Value.GetType() : typeof(NullLiteral); 249Type lhsType = lhsExprInfo.ExpressionType; 250Type rhsType = rhsExprInfo.ExpressionType; 393private static bool PromotionPossible(Type type, CodeExpression expression) 513private static object EvaluateBinaryOperation(CodeBinaryOperatorExpression binaryExpr, Type lhsType, object lhsValue, CodeBinaryOperatorType operation, Type rhsType, object rhsValue) 810TypeCode tc = Type.GetTypeCode(lhsValue.GetType()); 923Type targetType = targetExprInfo.ExpressionType; 1078Type targetType = targetExprInfo.ExpressionType; 1266Type targetType = null; 1383Type containingClassType = validation.ResolveType(qualifiedName); 1552Type argType = execution.Validation.ExpressionInfo(invokeExpr.Parameters[i]).ExpressionType; 1588Type arrayType = lastParamInfo.ParameterType; 1590Type elementType = arrayType.GetElementType(); 1595Type argType = execution.Validation.ExpressionInfo(invokeExpr.Parameters[i]).ExpressionType; 1785Type parameterType = paramExprInfo.ExpressionType; 1906Type resultType = validation.ResolveType(typeRefExpr.Type); 2031Type fromType = operandInfo.ExpressionType; 2033Type toType = validation.ResolveType(castExpr.TargetType); 2052Type fromType2 = fromType; 2056Type toType2 = toType; 2125private static bool IsNumeric(Type type) 2127switch (Type.GetTypeCode(type)) 2172Type toType = castExprInfo.ExpressionType; 2189Type operandType = execution.Validation.ExpressionInfo(castExpr.Expression).ExpressionType; 2261Type targetType = null; 2522Type argType = execution.Validation.ExpressionInfo(indexerExpr.Indices[i]).ExpressionType; 2539Type arrayType = lastParamInfo.ParameterType; 2541Type elementType = arrayType.GetElementType(); 2546Type argType = execution.Validation.ExpressionInfo(indexerExpr.Indices[i]).ExpressionType; 2638Type targetType = null; 2746Type argType = argExprInfo.ExpressionType; 2747TypeCode argTypeCode = Type.GetTypeCode(argType); 2828Type argType = execution.Validation.ExpressionInfo(arrayIndexerExpr.Indices[i]).ExpressionType; 2935Type resultType = validation.ResolveType(createExpression.CreateType); 3065Type argType = execution.Validation.ExpressionInfo(createExpression.Parameters[i]).ExpressionType; 3094Type arrayType = lastParamInfo.ParameterType; 3096Type elementType = arrayType.GetElementType(); 3101Type argType = execution.Validation.ExpressionInfo(createExpression.Parameters[i]).ExpressionType; 3235Type resultType = validation.ResolveType(createExpression.CreateType); 3397Type type = createExpressionInfo.ExpressionType; 3398Type elementType = type.GetElementType(); 3404Type sizeType = execution.Validation.ExpressionInfo(createExpression.SizeExpression).ExpressionType; 3425Type initializerType = execution.Validation.ExpressionInfo(initializer).ExpressionType;
Rules\Helpers.cs (10)
25internal static Type GetContextType(ITypeProvider typeProvider, Activity currentActivity) 27Type contextType = null; 62internal static bool IsNullableValueType(Type type) 72internal static bool IsNonNullableValueType(Type type) 194internal static RuleDefinitions GetRuleDefinitionsFromManifest(Type workflowType) 258public static Type GetUnderlyingType(Type type) 260Type underlyingType = typeof(int); 268Type result = methodInfo.Invoke(type, new object[0]) as Type;
Rules\Literal.cs (36)
33static private Dictionary<Type, LiteralMaker> types = CreateMakersDictionary(); 38protected internal Type m_type; 63private static Dictionary<Type, TypeFlags> supportedTypes = CreateTypesDictionary(); 65private static Dictionary<Type, LiteralMaker> CreateMakersDictionary() 68Dictionary<Type, LiteralMaker> dictionary = new Dictionary<Type, LiteralMaker>(32); 99private static Dictionary<Type, TypeFlags> CreateTypesDictionary() 102Dictionary<Type, TypeFlags> dictionary = new Dictionary<Type, TypeFlags>(32); 135internal static Literal MakeLiteral(Type literalType, object literalValue) 412Type lhs, 414Type rhs, 489Type lhs, 491Type rhs, 562Type lhsType0 = (lhsNullable) ? Nullable.GetUnderlyingType(lhs) : lhs; 563Type rhsType0 = (rhsNullable) ? Nullable.GetUnderlyingType(rhs) : rhs; 574Type underlyingType; 644Type underlyingType; 720Type parm1 = parameters[0].ParameterType; 721Type parm2 = parameters[1].ParameterType; 801private static bool DecimalIntegerLiteralZero(Type type, CodePrimitiveExpression expression) 817private static void AddOperatorOverloads(Type type, string methodName, Type arg1, Type arg2, List<MethodInfo> candidates) 858private static void AddLiftedOperators(Type type, string methodName, OperatorGrouping group, Type arg1, Type arg2, List<MethodInfo> candidates) 898private static bool EvaluateMethod(ParameterInfo[] parameters, Type arg1, Type arg2) 900Type parm1 = parameters[0].ParameterType; 901Type parm2 = parameters[1].ParameterType; 906private static MethodInfo EvaluateLiftedMethod(MethodInfo mi, ParameterInfo[] parameters, OperatorGrouping group, Type arg1, Type arg2) 908Type parm1 = parameters[0].ParameterType; 909Type parm2 = parameters[1].ParameterType; 1350internal NullLiteral(Type type)
Rules\Parser\Parser.cs (80)
235internal void SetTypeMemberCompletions(Type computedType, Type thisType, bool isStatic, RuleValidation validation) 250List<Type> baseInterfaces = new List<Type>(computedType.GetInterfaces()); 253Type baseInterface = baseInterfaces[i]; 301if (member.DeclaringType == thisType || IsNonPrivate((Type)member, thisType)) 362internal void SetConstructorCompletions(Type computedType, Type thisType) 369List<Type> types = new List<Type>(1); 374internal void SetNestedClassCompletions(Type computedType, Type thisType) 394if (member.DeclaringType == thisType || IsNonPrivate((Type)member, thisType)) 409internal void SetMethodCompletions(Type computedType, Type thisType, string methodName, bool includeStatic, bool includeInstance, RuleValidation validation) 426List<Type> parentInterfaces = new List<Type>(); 434Type[] pInterfaces = parentInterfaces[i].GetInterfaces(); 476MethodInfo methodInfo, Type thisType) 486FieldInfo fieldInfo, Type thisType) 496Type type, Type thisType) 632Type[] allTypes = null; 667Type type = allTypes[i]; 815Type thisType = validation.ThisType; 878Type miType = (Type)mi; 904if (mi.DeclaringType == thisType || ParserContext.IsNonPrivate((Type)mi, thisType)) 1038Type resultType = exprInfo.ExpressionType; 1170Type type = TryParseTypeSpecifier(parserContext, false); 1336Type type = TryParseTypeSpecifier(parserContext, assignIsEquality); 1581Type postFixExprType = Validator.ExpressionInfo(postfixExpr).ExpressionType; 1587Type type = Validator.ExpressionInfo(postfixExpr).ExpressionType; 1607Type thisType = Validator.ThisType; 1668Type thisType = Validator.ThisType; 1803Type type = (Type)token.Value; 1851Type type = TryParseTypeSpecifierWithOptionalSize(parserContext, assignIsEquality, out size); 1910private CodeExpression ParseConstructorArguments(ParserContext parserContext, Type type, bool assignIsEquality) 2112Type type = typeSym.Type; 2123Type[] typeArgs = ParseGenericTypeArgList(parserContext); 2140Type nestedType = ParseNestedType(parserContext, type); 2156Type type = null; 2161List<Type> candidateTypes = new List<Type>(candidateTypeSymbols.Count); 2186Type nestedType = ParseNestedType(parserContext, type); 2194private CodeExpression ParseTypeRef(ParserContext parserContext, Type type, int typePosition, bool assignIsEquality) 2226private Type ParseNestedType(ParserContext parserContext, Type currentType) 2230Type nestedType = null; 2261List<Type> candidateGenericTypes = new List<Type>(); 2263Type[] nestedTypes = currentType.GetNestedTypes(bindingFlags); 2267Type candidateType = nestedTypes[i]; 2297nestedType = (Type)mi[0]; 2313private Type ParseGenericType(ParserContext parserContext, List<Type> candidateGenericTypes, string typeName) 2317Type[] typeArgs = ParseGenericTypeArgList(parserContext); 2319foreach (Type candidateType in candidateGenericTypes) 2321Type[] genericArgs = candidateType.GetGenericArguments(); 2331private Type[] ParseGenericTypeArgList(ParserContext parserContext) 2335List<Type> typeArgs = new List<Type>(); 2343Type type = TryParseTypeSpecifier(parserContext, true); 2360private Type TryParseTypeSpecifier(ParserContext parserContext, bool assignIsEquality) 2362Type type = TryParseTypeName(parserContext, assignIsEquality); 2369private Type TryParseTypeName(ParserContext parserContext, bool assignIsEquality) 2371Type type = null; 2376type = (Type)currentToken.Value; 2402private Type TryParseTypeSpecifierWithOptionalSize(ParserContext parserContext, bool assignIsEquality, out CodeExpression size) 2404Type type = null; 2444private static Type ParseArrayType(ParserContext parserContext, Type baseType) 2446Type type = baseType; 2531private object MatchArgument(Type parameterType, CodeExpression arg) 2533Type argExprType = arg.GetType(); 2549Type argPrimitiveType = validation.ExpressionInfo(argPrimitive).ExpressionType; 2654Type paramType = parms[p].ParameterType; 2656Type elementType = paramType.GetElementType(); 2738private object ConstructCustomType(Type type, List<CodeExpression> arguments, int lparenPosition)
Rules\Parser\Symbol.cs (3)
87internal void AddType(Type type) 172internal readonly Type Type; 176internal TypeSymbol(Type type)
Rules\RuleAction.cs (1)
106Type currentType = validator.ThisType;
Rules\RuleAttributes.cs (6)
25internal abstract bool Validate(RuleValidation validation, MemberInfo member, Type contextType, ParameterInfo[] parameters); 50internal override bool Validate(RuleValidation validation, MemberInfo member, Type contextType, ParameterInfo[] parameters) 117Type currentType = contextType; 310internal override bool Validate(RuleValidation validation, MemberInfo member, Type contextType, ParameterInfo[] parameters) 322private bool ValidateInvokeAttribute(RuleValidation validation, MemberInfo member, Type contextType, Stack<MemberInfo> methodStack) 411private void AnalyzeInvokeAttribute(RuleAnalysis analysis, Type contextType, Stack<MemberInfo> methodStack, CodeExpression targetExpression, RulePathQualifier targetQualifier, CodeExpressionCollection argumentExpressions, ParameterInfo[] parameters, List<CodeExpression> attributedExpressions)
Rules\RuleEngine.cs (1)
25public RuleEngine(RuleSet ruleSet, Type objectType)
Rules\RuleSet.cs (1)
148Type activityType = activity.GetType();
Rules\RuleValidation.cs (189)
25private Type expressionType; 27public RuleExpressionInfo(Type expressionType) 32public Type ExpressionType 65private Type leftType; 66private Type rightType; 70internal RuleBinaryExpressionInfo(Type lhsType, Type rhsType, Type resultType) 78internal RuleBinaryExpressionInfo(Type lhsType, Type rhsType, MethodInfo mi) 86internal Type LeftType 91internal Type RightType 127internal RulePropertyExpressionInfo(PropertyInfo pi, Type exprType, bool needsParamsExpansion) 174Type assumedDeclaringType; 247public override Type DeclaringType 252public Type AssumedDeclaringType 257public override object[] GetCustomAttributes(Type attributeType, bool inherit) 267public override bool IsDefined(Type attributeType, bool inherit) 277public override Type ReflectedType 282public override Type ReturnType 291Type parameterType; 299public SimpleParameterInfo(Type parameter) 305public override Type ParameterType 318protected Type resultType; 364public override Type DeclaringType 369public override object[] GetCustomAttributes(Type attributeType, bool inherit) 379public override bool IsDefined(Type attributeType, bool inherit) 389public override Type ReflectedType 394public override Type ReturnType 549Type resultType; // may be nullable, enum, or value type 552Type lhsBaseType; // non-Nullable, may be enum 553Type rhsBaseType; 554Type resultBaseType; 556Type lhsRootType; // underlying type (int, long, ushort, etc) 557Type rhsRootType; 558Type resultRootType; 561public EnumOperationMethodInfo(Type lhs, CodeBinaryOperatorType operation, Type rhs, bool isZero) 753public override Type DeclaringType 758public override object[] GetCustomAttributes(Type attributeType, bool inherit) 768public override bool IsDefined(Type attributeType, bool inherit) 778public override Type ReflectedType 783public override Type ReturnType 802public Type GetType(string name) 807public Type GetType(string name, bool throwOnError) 810Type type = root.GetType(name, throwOnError, false); 816type = Type.GetType(name, throwOnError, false); 839public Type[] GetTypes() 841List<Type> types = new List<Type>(); 849foreach (Type type in e.Types) 862foreach (Type type in e.Types) 914private Type thisType; 917private Dictionary<string, Type> typesUsed = new Dictionary<string, Type>(16); 918private Dictionary<string, Type> typesUsedAuthorized; 921private Dictionary<CodeTypeReference, Type> typeRefMap = new Dictionary<CodeTypeReference, Type>(); 924private static readonly Type voidType = typeof(void); 944this.typesUsedAuthorized = new Dictionary<string, Type>(); 961public RuleValidation(Type thisType, ITypeProvider typeProvider) 984Type resultType = exprInfo.ExpressionType; 1000internal static bool IsValidBooleanResult(Type type) 1039public Type ThisType 1054internal bool AllowInternalMembers(Type type) 1120internal static bool TypesAreAssignable(Type rhsType, Type lhsType, CodeExpression rhsExpression, out ValidationError error) 1140internal static bool ExplicitConversionSpecified(Type fromType, Type toType, out ValidationError error) 1188private static bool InterfaceMatch(Type[] types, Type fromType) 1190foreach (Type t in types) 1199internal static MethodInfo FindImplicitConversion(Type fromType, Type toType, out ValidationError error) 1205Type fromType0 = (fromIsNullable) ? Nullable.GetUnderlyingType(fromType) : fromType; 1206Type toType0 = (toIsNullable) ? Nullable.GetUnderlyingType(toType) : toType; 1211Type baseType = fromType0.BaseType; 1235Type baseType = fromType0.BaseType; 1275Type sx = candidates[0].GetParameters()[0].ParameterType; 1280Type testType = candidates[i].GetParameters()[0].ParameterType; 1293Type tx = candidates[0].ReturnType; 1298Type testType = candidates[i].ReturnType; 1375internal static MethodInfo FindExplicitConversion(Type fromType, Type toType, out ValidationError error) 1382Type fromType0 = (fromIsNullable) ? Nullable.GetUnderlyingType(fromType) : fromType; 1383Type toType0 = (toIsNullable) ? Nullable.GetUnderlyingType(toType) : toType; 1388Type baseType = fromType0.BaseType; 1402Type baseType = toType0.BaseType; 1422Type baseType = fromType0.BaseType; 1436Type baseType = toType0.BaseType; 1466Type sx = null; 1469Type testType = candidates[i].GetParameters()[0].ParameterType; 1482Type testType = candidates[i].GetParameters()[0].ParameterType; 1497Type testType = candidates[i].GetParameters()[0].ParameterType; 1510Type tx = null; 1513Type testType = candidates[i].ReturnType; 1526Type testType = candidates[i].ReturnType; 1541Type testType = candidates[i].ReturnType; 1616private static bool IsStruct(Type type) 1622private static bool IsExplicitNumericConversion(Type sourceType, Type testType) 1628? Type.GetTypeCode(sourceType.GetGenericArguments()[0]) 1629: Type.GetTypeCode(sourceType); 1631? Type.GetTypeCode(testType.GetGenericArguments()[0]) 1632: Type.GetTypeCode(testType); 1878internal static bool ImplicitConversion(Type fromType, Type toType) 1891internal static bool StandardImplicitConversion(Type rhsType, Type lhsType, CodeExpression rhsExpression, out ValidationError error) 1955switch (Type.GetTypeCode(primitive.Value.GetType())) 1988TypeCode lhsTypeCode = Type.GetTypeCode(lhsType); 1989TypeCode rhsTypeCode = Type.GetTypeCode(rhsType); 2214private static void AddImplicitConversions(Type t, Type source, Type target, List<MethodInfo> methods) 2224Type sourceType = mi.GetParameters()[0].ParameterType; 2225Type targetType = mi.ReturnType; 2237private static void AddExplicitConversions(Type t, Type source, Type target, List<MethodInfo> methods) 2247Type sourceType = mi.GetParameters()[0].ParameterType; 2248Type targetType = mi.ReturnType; 2261private static bool CheckValueRange(CodeExpression rhsExpression, Type lhsType, out ValidationError error) 2285CodeExpression targetExpression, Type targetType, FieldInfo accessorMethod, string memberName, CodeExpression parentExpr) 2293CodeExpression targetExpression, Type targetType, MethodInfo accessorMethod, string memberName, CodeExpression parentExpr) 2301CodeExpression targetExpression, Type targetType, string memberName, CodeExpression parentExpr, 2359internal MemberInfo ResolveFieldOrProperty(Type targetType, string name) 2408internal PropertyInfo ResolveProperty(Type targetType, string propertyName, BindingFlags bindingFlags) 2414Type[] parentInterfacesArray = targetType.GetInterfaces(); 2415List<Type> parentInterfaces = new List<Type>(); 2425Type[] pInterfaces = parentInterfaces[index].GetInterfaces(); 2439private static PropertyInfo GetProperty(Type targetType, string propertyName, BindingFlags bindingFlags) 2465internal Type type; 2479internal Argument(Type type) 2488private Type type; 2491internal CandidateParameter(Type type) 2615private static bool BetterSignedConversion(Type t1, Type t2) 2617TypeCode tc1 = Type.GetTypeCode(t1); 2618TypeCode tc2 = Type.GetTypeCode(t2); 2714internal int CompareMember(Type targetType, CandidateMember other, List<Argument> arguments, RuleValidation validator) 2722Type thisDeclaringType = this.Member.DeclaringType; 2723Type otherDeclaringType = other.Member.DeclaringType; 2913private static List<Type> GetCandidateTargetTypes(Type targetType) 2915List<Type> candidateTypes; 2919candidateTypes = new List<Type>(); 2925Type currentCandidate = candidateTypes[i]; 2935candidateTypes = new List<Type>(1); 3075private CandidateMember FindBestCandidate(Type targetType, List<CandidateMember> candidates, List<Argument> arguments) 3123internal MethodInfo FindBestCandidate(Type targetType, List<MethodInfo> methods, params Type[] types) 3126foreach (Type t in types) 3149internal RuleConstructorExpressionInfo ResolveConstructor(Type targetType, BindingFlags constructorBindingFlags, List<CodeExpression> argumentExprs, out ValidationError error) 3158List<Type> candidateTypes = GetCandidateTargetTypes(targetType); 3190internal RuleMethodInvokeExpressionInfo ResolveMethod(Type targetType, string methodName, BindingFlags methodBindingFlags, List<CodeExpression> argumentExprs, out ValidationError error) 3199List<Type> candidateTypes = GetCandidateTargetTypes(targetType); 3237internal static List<ConstructorInfo> GetConstructors(List<Type> targetTypes, BindingFlags constructorBindingFlags) 3243Type targetType = targetTypes[t]; 3264private List<MethodInfo> GetNamedMethods(List<Type> targetTypes, string methodName, BindingFlags methodBindingFlags) 3270Type targetType = targetTypes[t]; 3301private Type extensionAttribute; 3303private static Type defaultExtensionAttribute = GetDefaultExtensionAttribute(); 3305private static Type GetDefaultExtensionAttribute() 3307return Type.GetType(ExtensionAttributeFullName, false); 3369Type[] types; 3386private void DetermineExtensionMethods(Type[] types) 3388foreach (Type type in types) 3424private bool IsMarkedExtension(Type type) 3538internal RulePropertyExpressionInfo ResolveIndexerProperty(Type targetType, BindingFlags bindingFlags, List<CodeExpression> argumentExprs, out ValidationError error) 3557List<Type> candidateTypes = GetCandidateTargetTypes(targetType); 3593private static List<PropertyInfo> GetIndexerProperties(List<Type> candidateTypes, BindingFlags bindingFlags) 3597foreach (Type targetType in candidateTypes) 3687internal void AddTypeReference(CodeTypeReference typeRef, Type type) 3692internal Type ResolveType(CodeTypeReference typeRef) 3694Type resultType = null; 3723Type[] typeArguments = new Type[typeRef.TypeArguments.Count]; 3743foreach (Type t in typeArguments) 3785internal Type ResolveType(string qualifiedName) 3787Type resultType = null; 3795resultType = Type.GetType(qualifiedName, false); 3801private Type FindType(string typeName) 3806Type type = null; 3824internal void IsAuthorized(Type type) 3844Type[] typeArguments = type.GetGenericArguments(); 3845foreach (Type t in typeArguments) 3858void IsAuthorizedSimpleType(Type type)
Rules\Statements.cs (4)
146Type expressionType = rhsExprInfo.ExpressionType; 147Type assignmentType = lhsExprInfo.ExpressionType; 196Type leftType = execution.Validation.ExpressionInfo(assignStatement.Left).ExpressionType; 197Type rightType = execution.Validation.ExpressionInfo(assignStatement.Right).ExpressionType;
Rules\Walker.cs (4)
64internal Type codeDomType; 67internal TypeWrapperTuple(Type type, RuleExpressionInternal internalExpression) 92Type exprType = expression.GetType(); 227Type statementType = statement.GetType();
WebServiceFault.cs (1)
235Type interfaceType = null;
WebServiceReceive.cs (13)
36public static readonly DependencyProperty InterfaceTypeProperty = DependencyProperty.Register("InterfaceType", typeof(Type), typeof(WebServiceInputActivity), new PropertyMetadata(null, DependencyPropertyOptions.Metadata)); 71public Type InterfaceType 75return base.GetValue(InterfaceTypeProperty) as Type; 184Type type = typeProvider.GetType(this.InterfaceType.AssemblyQualifiedName); 193foreach (Type interfaceType in type.GetInterfaces()) 249private ActivityExecutionStatus ExecuteForActivity(ActivityExecutionContext context, Type interfaceType, string operation) 268private void ProcessMessage(ActivityExecutionContext context, object msg, Type interfaceType, string operation) 289private void ProcessParameters(ActivityExecutionContext context, IMethodMessage message, Type interfaceType, string operation) 416Type IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider serviceProvider, string propertyName) 450Type type = null; 522Type interfaceType = null; 575Type paramType = paramInfo.ParameterType.IsByRef ? paramInfo.ParameterType.GetElementType() : paramInfo.ParameterType; 886public bool CanFilterType(Type type, bool throwOnError)
WebServiceResponse.cs (4)
222Type IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider serviceProvider, string propertyName) 261Type type = null; 359Type interfaceType = null; 406Type paramType = paramInfo.ParameterType.IsByRef ? paramInfo.ParameterType.GetElementType() : paramInfo.ParameterType;
System.Workflow.ComponentModel (950)
AuthoringOM\Activity.cs (5)
40private Type activityType = null; 47internal ActivityResolveEventArgs(Type activityType, string workflowMarkup, string rulesMarkup, bool createNew, bool initForRuntime, IServiceProvider serviceProvider) 60public Type Type 202internal static Type ActivityType = null; 1252internal static Activity OnResolveActivityDefinition(Type type, string workflowMarkup, string rulesMarkup, bool createNew, bool initForRuntime, IServiceProvider serviceProvider)
AuthoringOM\ActivityExecutionContext.cs (12)
54private static Type schedulerServiceType = Type.GetType("System.Workflow.Runtime.Hosting.WorkflowSchedulerService, " + AssemblyRef.RuntimeAssemblyRef); 55private static Type persistenceServiceType = Type.GetType("System.Workflow.Runtime.Hosting.WorkflowPersistenceService, " + AssemblyRef.RuntimeAssemblyRef); 56private static Type trackingServiceType = Type.GetType("System.Workflow.Runtime.Tracking.TrackingService, " + AssemblyRef.RuntimeAssemblyRef); 57private static Type transactionServiceType = Type.GetType("System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService, " + AssemblyRef.RuntimeAssemblyRef); 58private static Type loaderServiceType = Type.GetType("System.Workflow.Runtime.Hosting.WorkflowLoaderService, " + AssemblyRef.RuntimeAssemblyRef); 113Guid IStartWorkflow.StartWorkflow(Type workflowType, Dictionary<string, object> namedArgumentValues) 127public Object GetService(Type serviceType)
AuthoringOM\ActivityExecutor.cs (2)
157Type activityType = activity.GetType(); 205public static ActivityExecutor GetActivityExecutorFromType(Type executorType)
AuthoringOM\ActivityInterfaces.cs (5)
40Type GetPropertyType(IServiceProvider serviceProvider, string propertyName); 60public ActivityExecutorAttribute(Type executorType) 119Guid StartWorkflow(Type workflowType, Dictionary<string, object> namedArgumentValues); 138Guid StartWorkflow(Type workflowType, Dictionary<string, object> namedArgumentValues); 147Object GetService(Activity currentActivity, Type serviceType);
AuthoringOM\Behaviors\CompensatableTransactionScopeActivityDesigner.cs (2)
26Type activityType = view.UserData[SecondaryView.UserDataKey_ActivityType] as Type;
AuthoringOM\Behaviors\ExceptionHandler.cs (6)
29public static readonly DependencyProperty FaultTypeProperty = DependencyProperty.Register("FaultType", typeof(Type), typeof(FaultHandlerActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata)); 44public Type FaultType 48return (Type)base.GetValue(FaultTypeProperty); 107bool ITypeFilterProvider.CanFilterType(Type type, bool throwOnError) 128Type IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider serviceProvider, string propertyName) 133Type returnType = null;
AuthoringOM\Behaviors\ExceptionHandlers.cs (5)
58Type exceptionType = excep.GetType(); 145private bool CanHandleException(FaultHandlerActivity exceptionHandler, Type et) 147Type canHandleType = exceptionHandler.FaultType; 179Type catchType = exceptionHandler.FaultType; 197foreach (Type previousType in previousExceptionTypes)
AuthoringOM\Behaviors\SynchronizationScope.cs (3)
82public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 90public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 98public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
AuthoringOM\Behaviors\TransactionScopeDesigner.cs (2)
26Type activityType = view.UserData[SecondaryView.UserDataKey_ActivityType] as Type;
AuthoringOM\Behaviors\WorkflowTransactionOptions.cs (3)
63public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 71public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 82public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
AuthoringOM\Bind.cs (40)
38public abstract object GetRuntimeValue(Activity activity, Type targetType); 88System.Type memberType = dataContext.GetType(); 249internal static ValidationError ValidateTypesInPath(Type srcType, string path) 267Type propertyType = srcType; 273Type memberType = null; 293private static bool SafeType(IList<AuthorizedType> authorizedTypes, Type referenceType) 309internal static MemberInfo GetMemberInfo(Type srcType, string path) 318Type propertyType = srcType; 377public override object GetRuntimeValue(Activity activity, Type targetType) 437public override object GetRuntimeValue(Activity activity, Type targetType) 468public override object GetRuntimeValue(Activity activity, Type targetType) 625public object GetRuntimeValue(Activity activity, Type targetType) 641private object InternalGetRuntimeValue(Activity activity, Type targetType) 703Type companionType = dataSourceActivity.GetType(); 772internal static MemberInfo GetMemberInfo(Type dataSourceType, string path, Type targetType) 782List<Type> paramTypes = new List<Type>(); 792private static object GetMemberValue(object dataSourceObject, MemberInfo memberInfo, string path, Type targetType) 977internal static Type GetBaseType(IServiceProvider serviceProvider, PropertyValidationContext validationContext) 979Type type = null; 1159internal static PropertyInfo GetMatchedPropertyInfo(Type memberType, string[] aryArgName, object[] args) 1212Type paramType = aryPI[index].ParameterType; 1237internal static Type GetMemberType(MemberInfo memberInfo) 1271private Type parentType; 1278public PathMemberInfoEventArgs(string path, Type parentType, MemberInfo memberInfo, PathMemberKind memberKind, bool lastMemberInThePath) 1294public PathMemberInfoEventArgs(string path, Type parentType, MemberInfo memberInfo, PathMemberKind memberKind, bool lastMemberInThePath, object[] indexParameters) 1363private static MemberInfo[] PopulateMembers(Type type, string memberName) 1370Type[] interfaces = type.GetInterfaces(); 1371foreach (Type implementedInterface in interfaces) 1380public bool TryWalkPropertyPath(Type rootType, string path) 1387Type propertyType = rootType; 1409Type newPropertyType = null; 1590private Type declaringType; 1594public ActivityBindPropertyInfo(Type declaringType, MethodInfo getMethod, MethodInfo setMethod, string propertyName, PropertyInfo originalPropertyInfo) 1623public override Type PropertyType 1711public override Type DeclaringType 1715public override Type ReflectedType 1723public override object[] GetCustomAttributes(Type attributeType, bool inherit) 1727public override bool IsDefined(Type attributeType, bool inherit)
AuthoringOM\Compiler\CodeGeneration\CodeGenerationManager.cs (2)
35public object GetService(Type serviceType) 44public ActivityCodeGenerator[] GetCodeGenerators(Type type)
AuthoringOM\Compiler\CodeGeneration\CodeGeneratorAttribute.cs (2)
9public ActivityCodeGeneratorAttribute(Type codeGeneratorType) 17if (codeGeneratorType.GetConstructor(new Type[0] { }) == null)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
62public object GetService(Type serviceType)
AuthoringOM\Compiler\TypeSystem\AssemblyLoader.cs (6)
88internal Type GetType(string typeName) 93Type type = null; 108internal Type[] GetTypes() 110List<Type> filteredTypes = new List<Type>(); 114foreach (Type type in this.assembly.GetTypes())
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (8)
29internal static AttributeInfoAttribute CreateAttributeInfoAttribute(Type attributeType, string[] argumentNames, object[] argumentValues) 48private Type attributeType; 52internal AttributeInfo(Type attributeType, string[] argumentNames, object[] argumentValues) 63public Type AttributeType 134public object GetArgumentValueAs(IServiceProvider serviceProvider, int argumentIndex, Type requestedType) 200else if (requestedType == typeof(Type)) 210Type returnType = ParseHelpers.ParseTypeName(typeProvider, language, typeName); 227Type genericArgType = ParseHelpers.ParseTypeName(typeProvider, language, genericArg);
AuthoringOM\Compiler\TypeSystem\CodeDomLoader.cs (5)
14private List<Type> types = new List<Type>(); 59Type type = nestedQueue.Dequeue() as Type; 62foreach (Type nestedType2 in type.GetNestedTypes(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic))
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (81)
21private Type declaringType; 32private Type[] nestedTypes = new Type[0]; 37internal DesignTimeType(Type declaringType, 78internal DesignTimeType(Type declaringType, string elementTypeFullName, ITypeProvider typeProvider) 92this.nestedTypes = new Type[0]; 98Type elementType = GetElementType(); 172public override Type BaseType 176Type type = null; 185Type typeCandidate = ResolveType(GetTypeNameFromCodeTypeReference(codeBaseType, this)); 219public Type GetEnumType() 225Type enumBaseType = declaration.UserData[typeof(Enum)] as Type; 235Type enumBaseType2 = reference.UserData[typeof(Enum)] as Type; 246public override Type DeclaringType 331public override Type UnderlyingSystemType 348public override object[] GetCustomAttributes(Type attributeType, bool inherit) 440members.AddRange(GetMembersHelper<Type>(bindingAttr, new MemberSignature(name, null, null), ref this.nestedTypes)); 467for (Type t = this; t != null; t = t.BaseType) 487public override Type GetNestedType(string name, BindingFlags bindingAttr) 489return GetMemberHelper<Type>(bindingAttr, new MemberSignature(name, null, null), ref this.nestedTypes); 492public override Type[] GetNestedTypes(BindingFlags bindingAttr) 494return GetMembersHelper<Type>(bindingAttr, ref this.nestedTypes, false); 497public override Type GetInterface(string name, bool ignoreCase) 508Type interfaceCandidate = ResolveType(GetTypeNameFromCodeTypeReference(codeBaseType, this)); 516Type baseInterfaceCandidate = interfaceCandidate.GetInterface(name, ignoreCase); 528public override Type[] GetInterfaces() 539Type interfaceCandidate = ResolveType(GetTypeNameFromCodeTypeReference(codeBaseType, this)); 547Type[] baseInterfaces = interfaceCandidate.GetInterfaces(); 549foreach (Type baseInterfaceCandidate in baseInterfaces) 559return (Type[])types.ToArray(typeof(Type)); 577public override bool IsDefined(Type attributeType, bool inherit) 591public override Type GetElementType() 593Type elementType = null; 620public override bool IsAssignableFrom(Type c) 625public override bool IsSubclassOf(Type c) 633public override Type MakeArrayType() 659internal Type ResolveType(string name) 661Type type = null; 742else if (memberInfo is Type) 744isPublic = (memberInfo as Type).IsPublic || (memberInfo as Type).IsNestedPublic; 778Type baseType = BaseType; 786if ((memberInfo is FieldInfo && (memberInfo as FieldInfo).IsPrivate) || (memberInfo is MethodBase && (memberInfo as MethodBase).IsPrivate) || (memberInfo is Type && (memberInfo as Type).IsNestedPrivate)) 802private MemberInfo[] GetBaseMembers(Type type, Type baseType, BindingFlags bindingAttr) 815else if (type == typeof(Type)) 859Type baseType = BaseType; 867if ((memberInfo is FieldInfo && (memberInfo as FieldInfo).IsPrivate) || (memberInfo is MethodBase && (memberInfo as MethodBase).IsPrivate) || (memberInfo is Type && (memberInfo as Type).IsNestedPrivate)) 878internal MemberInfo GetBaseMember(Type type, Type baseType, BindingFlags bindingAttr, MemberSignature memberSignature) 908else if (typeof(Type).IsAssignableFrom(type)) 920Type resolvedType = null; 962protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 967protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 972protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) 1004public override Type MakeByRefType() 1042private void EnsureMembers(Type type) 1147List<Type> localMembers = new List<Type>(); 1149foreach (Type t in this.nestedTypes) 1158Type partialType = null; 1159foreach (Type nestedType in localMembers) 1178private MemberInfo CreateMemberInfo(Type memberInfoType, CodeTypeMember member) 1204private Type[] parameters = null; 1205private Type returnType = null; 1214List<Type> typeCollection = new List<Type>(); 1228List<Type> typeCollection = new List<Type>(); 1243internal MemberSignature(string name, Type[] parameters, Type returnType) 1248this.parameters = (Type[])parameters.Clone(); 1265public Type ReturnType 1273public Type[] Parameters 1280return (Type[])parameters.Clone();
AuthoringOM\Compiler\TypeSystem\EventInfo.cs (6)
57Type handlerType = declaringType.ResolveType(DesignTimeType.GetTypeNameFromCodeTypeReference(this.codeDomEvent.Type, declaringType)); 76Type handlerType = declaringType.ResolveType(DesignTimeType.GetTypeNameFromCodeTypeReference(this.codeDomEvent.Type, declaringType)); 114public override Type DeclaringType 121public override Type ReflectedType 133public override object[] GetCustomAttributes(Type attributeType, bool inherit) 144public override bool IsDefined(Type attributeType, bool inherit)
AuthoringOM\Compiler\TypeSystem\FieldInfo.cs (5)
53public override Type FieldType 88public override Type DeclaringType 96public override Type ReflectedType 109public override object[] GetCustomAttributes(Type attributeType, bool inherit) 120public override bool IsDefined(Type attributeType, bool inherit)
AuthoringOM\Compiler\TypeSystem\Helper.cs (8)
94internal static TypeAttributes ConvertToTypeAttributes(MemberAttributes memberAttributes, Type declaringType) 153Type attributeType = declaringType.ResolveType(codeAttribute.Name); 204internal static object[] GetCustomAttributes(Type attributeType, bool inherit, Attribute[] attributes, MemberInfo memberInfo) 234if (memberInfo is Type) 235baseMemberInfo = ((Type)memberInfo).BaseType; 256internal static bool IsDefined(Type attributeType, bool inherit, Attribute[] attributes, MemberInfo memberInfo) 271if (memberInfo is Type) 272baseMemberInfo = ((Type)memberInfo).BaseType;
AuthoringOM\Compiler\TypeSystem\Interfaces.cs (3)
13Type GetType(string name); 14Type GetType(string name, bool throwOnError); 15Type[] GetTypes();
AuthoringOM\Compiler\TypeSystem\MethodInfo.cs (9)
98public override Type DeclaringType 105public override Type ReflectedType 116public override object[] GetCustomAttributes(Type attributeType, bool inherit) 126public override bool IsDefined(Type attributeType, bool inherit) 174public override Type ReturnType 259public override Type DeclaringType 266public override Type ReflectedType 277public override object[] GetCustomAttributes(Type attributeType, bool inherit) 290public override bool IsDefined(Type attributeType, bool inherit)
AuthoringOM\Compiler\TypeSystem\ParameterInfo.cs (1)
44public override Type ParameterType
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (10)
43public override Type PropertyType 162public override Type DeclaringType 169public override Type ReflectedType 186public override object[] GetCustomAttributes(Type attributeType, bool inherit) 197public override bool IsDefined(Type attributeType, bool inherit) 248public override Type DeclaringType 255public override Type ReflectedType 266public override object[] GetCustomAttributes(Type attributeType, bool inherit) 270public override bool IsDefined(Type attributeType, bool inherit) 286public override Type ReturnType
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (85)
51private Type runtimeType = null; 52private Type[] typeArgs = null; 57internal RTTypeWrapper(ITypeProvider typeProvider, Type runtimeType) 78private RTTypeWrapper(ITypeProvider typeProvider, Type runtimeType, Type[] typeArgs) 93this.typeArgs = new Type[typeArgs.Length]; 117foreach (Type type in this.typeArgs) 132public override Type BaseType 139public override Type DeclaringType 210public override Type UnderlyingSystemType 217private bool IsAssignable(Type type1, Type type2) 219Type typeTemp1 = ResolveTypeFromTypeSystem(type1); 220Type typeTemp2 = ResolveTypeFromTypeSystem(type2); 224internal Type ResolveTypeFromTypeSystem(Type type) 235Type returnType = null; 256internal Type ResolveGenericTypeFromTypeSystem(Type type) 260Type baseType = null; 290Type otherType = obj as Type; 301public override object[] GetCustomAttributes(Type attributeType, bool inherit) 368public override Type GetNestedType(string name, BindingFlags bindingAttr) 370Type nestedType = this.runtimeType.GetNestedType(name, bindingAttr); 375public override Type[] GetNestedTypes(BindingFlags bindingAttr) 377List<Type> nestedTypes = new List<Type>(); 378foreach (Type nestedType in this.runtimeType.GetNestedTypes(bindingAttr)) 382public override Type GetInterface(string name, bool ignoreCase) 384Type itfType = this.runtimeType.GetInterface(name, ignoreCase); 389public override Type[] GetInterfaces() 391List<Type> itfTypes = new List<Type>(); 392foreach (Type itfType in this.runtimeType.GetInterfaces()) 394Type interfaceType = ResolveTypeFromTypeSystem(itfType); 403public override bool IsSubclassOf(Type potentialBaseType) 407public override bool IsAssignableFrom(Type c) 409Type rtType = this.runtimeType; 423public override bool IsDefined(Type attributeType, bool inherit) 427public override Type GetElementType() 548public override Type[] GetGenericArguments() 552public override Type GetGenericTypeDefinition() 558public override Type MakeGenericType(params Type[] typeArgs) 563Type[] types = new Type[typeArgs.Length]; 575Type returnType = this.boundedTypes[typeArgs] as Type; 581switch (Type.GetTypeCode(typeArgs[0])) 640public override Type MakeByRefType() 645public override Type MakePointerType() 653foreach (Type[] types in bindingArgs) 655foreach (Type type in types) 670protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 693protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 720protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) 839public override Type DeclaringType 843public override object[] GetCustomAttributes(Type attributeType, bool inherit) 851public override bool IsDefined(Type attributeType, bool inherit) 863public override Type ReflectedType 898public override Type FieldType 910public override Type DeclaringType 914public override object[] GetCustomAttributes(Type attributeType, bool inherit) 922public override bool IsDefined(Type attributeType, bool inherit) 934public override Type ReflectedType 1005public override Type PropertyType 1013public override Type DeclaringType 1017public override object[] GetCustomAttributes(Type attributeType, bool inherit) 1025public override bool IsDefined(Type attributeType, bool inherit) 1037public override Type ReflectedType 1090public override Type ReturnType 1129public override Type DeclaringType 1136public override object[] GetCustomAttributes(Type attributeType, bool inherit) 1144public override bool IsDefined(Type attributeType, bool inherit) 1156public override Type ReflectedType 1203public override Type DeclaringType 1207public override object[] GetCustomAttributes(Type attributeType, bool inherit) 1215public override bool IsDefined(Type attributeType, bool inherit) 1227public override Type ReflectedType 1266public override bool IsDefined(Type attributeType, bool inherit) 1274public override Type[] GetOptionalCustomModifiers() 1282public override Type ParameterType 1290public override Type[] GetRequiredCustomModifiers()
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (43)
202public Func<Type, string> AssemblyNameResolver 221Dictionary<Type, string> typeToAssemblyName = null; 224public string GetAssemblyName(Type type) 233typeToAssemblyName = new Dictionary<Type, string>(); 300public Type GetType(string name) 308public Type GetType(string name, bool throwOnError) 316Type returnType = null; 326Type templateType = GetType(typeName, throwOnError); 329Type[] templateParamTypes = new Type[parameters.Length]; 332Type templateParameter = GetType(parameters[index], throwOnError); 342Type elementType = this.GetType(typeName); 364returnType = this.hashOfDTTypes[name] as Type; 388returnType = this.designTimeTypes[typeName] as Type; 476returnType = (Type)this.hashOfRTTypes[returnType]; 480Type returnType2 = new RTTypeWrapper(this, returnType); 488public Type[] GetTypes() 495List<Type> typeList = new List<Type>(); 498foreach (Type type in this.designTimeTypes.Values) 514foreach (Type type in typeLoadException.Types) 543foreach (Type type in typeLoadException.Types) 634public static Type GetEventHandlerType(EventInfo eventInfo) 643Type del = typeof(Delegate); 646Type c = p[i].ParameterType; 654internal static bool IsRepresentingTheSameType(Type firstType, Type secondType) 675internal static bool IsAssignable(Type toType, Type fromType, bool equalBasedOnSameTypeRepresenting) 743Type[] interfaces = fromType.GetInterfaces(); 756public static bool IsAssignable(Type toType, Type fromType) 760public static bool IsSubclassOf(Type subclass, Type superClass) 781public static bool IsEnum(Type type) 788public static string[] GetEnumNames(Type enumType) 912internal void AddType(Type type) 920internal void RemoveTypes(Type[] types) 922foreach (Type type in types) 930foreach (Type cachedtype in this.hashOfDTTypes.Values) 932Type elementType = cachedtype; 970foreach (Type type in types) 983public object GetService(Type serviceType)
AuthoringOM\Compiler\Validation\BindValidationContext.cs (4)
19private Type targetType = null; 22public BindValidationContext(Type targetType) 27public BindValidationContext(Type targetType, AccessTypes access) 35public Type TargetType
AuthoringOM\Compiler\Validation\BindValidator.cs (24)
14internal static Type GetActivityType(IServiceProvider serviceProvider, Activity refActivity) 16Type type = null; 65Type baseType = BindHelpers.GetBaseType(manager, validationContext); 79Type targetType = validationBindContext.TargetType; 110System.Type resolvedType = Helpers.GetDataSourceClass(dataSourceActivity, manager); 172Type memberType = (memberInfo is FieldInfo ? (memberInfo as FieldInfo).FieldType : (memberInfo as PropertyInfo).PropertyType); 250Type baseType = BindHelpers.GetBaseType(manager, validationContext); 259Type targetType = validationBindContext.TargetType; 291System.Type resolvedType = null; 369Type memberType = (memberInfo is FieldInfo ? (memberInfo as FieldInfo).FieldType : (memberInfo as PropertyInfo).PropertyType); 447Type baseType = BindHelpers.GetBaseType(manager, validationContext); 461Type targetType = validationBindContext.TargetType; 507System.Type resolvedType = Helpers.GetDataSourceClass(dataSourceActivity, manager); 530List<Type> paramTypes = new List<Type>(); 635Type baseType = BindHelpers.GetBaseType(manager, validationContext); 640Type declaringType = null; 737internal static bool DoesTargetTypeMatch(Type baseType, Type memberType, AccessTypes access) 769Type baseType = BindHelpers.GetBaseType(manager, validationContext); 783Type targetType = validationBindContext.TargetType; 828Type refActivityType = null; 852Type memberType = null; 890Type memberType = null;
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (3)
183Type objType = null; 204List<Type> paramTypes = new List<Type>();
AuthoringOM\Compiler\Validation\ValidationManager.cs (2)
62public Validator[] GetValidators(Type type) 79public object GetService(Type serviceType)
AuthoringOM\Compiler\Validation\ValidatorAttribute.cs (1)
12public ActivityValidatorAttribute(Type validatorType)
AuthoringOM\Compiler\XomlCompiler.cs (2)
287public object GetService(Type serviceType) 628public bool IsTypeAuthorized(Type typeToAuthorize)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (3)
77foreach (Type type in typeProvider.LocalAssembly.GetTypes()) 91ConstructorInfo ctorMethod = type.GetConstructor(Type.EmptyTypes); 110MethodInfo initializeComponent = type.GetMethod("InitializeComponent", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, null, Type.EmptyTypes, null);
AuthoringOM\ComponentFactoryHelpers.cs (15)
15private static IDictionary<Type, List<IExtenderProvider>> componentExtenderMap = new Dictionary<Type, List<IExtenderProvider>>(); 46internal static object[] CreateComponents(Type objectType, Type componentTypeAttribute) 49Dictionary<Type, object> components = new Dictionary<Type, object>(); 83foreach (Type interfaceType in objectType.GetInterfaces()) 92Type expectedBaseType = null; 131private static void AddComponents(Dictionary<Type, object> components, object[] attribComponents) 139internal static void RegisterComponentExtenders(Type extendingType, IExtenderProvider[] extenders) 168private static object CreateComponentInstance(string typeName, Type referenceType) 172Type componentType = null; 197componentType = Type.GetType(typeName, false); 228private static object[] GetCustomAttributes(Type objectType, Type attributeType, bool inherit)
AuthoringOM\DependencyObject.cs (1)
625protected virtual object GetBoundValue(ActivityBind bind, Type targetType)
AuthoringOM\DependencyProperty.cs (28)
52private System.Type propertyType = null; 53private System.Type ownerType = null; 54private System.Type validatorType = null; 60public static DependencyProperty Register(string name, System.Type propertyType, System.Type ownerType) 65public static DependencyProperty Register(string name, System.Type propertyType, System.Type ownerType, PropertyMetadata defaultMetadata) 70public static DependencyProperty RegisterAttached(string name, System.Type propertyType, System.Type ownerType) 75public static DependencyProperty RegisterAttached(string name, System.Type propertyType, System.Type ownerType, PropertyMetadata defaultMetadata) 104public static DependencyProperty RegisterAttached(string name, System.Type propertyType, System.Type ownerType, PropertyMetadata defaultMetadata, System.Type validatorType) 114public static DependencyProperty FromName(string propertyName, Type ownerType) 142public static IList<DependencyProperty> FromType(Type ownerType) 164private static DependencyProperty ValidateAndRegister(string name, System.Type propertyType, System.Type ownerType, PropertyMetadata defaultMetadata, System.Type validatorType, bool isRegistered) 226private static object GetDefaultValue(string name, System.Type propertyType, System.Type ownerType) 263private DependencyProperty(string name, System.Type propertyType, System.Type ownerType, PropertyMetadata defaultMetadata, System.Type validatorType, bool isRegistered) 299public System.Type PropertyType 306public System.Type OwnerType 321public System.Type ValidatorType 382private Type type = null;
AuthoringOM\Design\ActivityDesigner.cs (14)
1313protected object GetService(Type serviceType) 1631protected virtual bool IsSupportedActivityType(Type activityType) 1942internal static string GetActivityDescription(Type activityType) 1990internal static Type GetDesignerType(IServiceProvider serviceProvider, Type activityType, Type designerBaseType) 1992Type designerType = null; 2009designerType = Type.GetType(designerAttribute.DesignerTypeName); 2021Type designerType = GetDesignerType(serviceProvider, activity.GetType(), typeof(IDesigner)); 2085Type rtType = PropertyDescriptorUtils.GetBaseType(propertyDescriptor, Activity, Activity.Site); 2124Type customActivityType = CustomActivityDesignerHelper.GetCustomActivityType(serviceProvider); 2411bool IWorkflowRootDesigner.IsSupportedActivityType(Type activityType) 2461Type itemType = null; 2468itemType = Type.GetType(toolboxItem.TypeName + ", " + toolboxItem.AssemblyName);
AuthoringOM\Design\ActivityDesignerAccessibleObject.cs (1)
205protected object GetService(Type serviceType)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (8)
34protected override object CreateInstance(WorkflowMarkupSerializationManager serializationManager, Type type) 201protected override object CreateInstance(WorkflowMarkupSerializationManager serializationManager, Type type) 264protected Dictionary<string, string> GetConnectorConstructionArguments(WorkflowMarkupSerializationManager serializationManager, Type type) 292object IDesignerSerializationProvider.GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType) 331protected internal override object DeserializeFromString(WorkflowMarkupSerializationManager serializationManager, Type propertyType, string value) 386protected internal override object DeserializeFromString(WorkflowMarkupSerializationManager serializationManager, Type propertyType, string value) 436protected internal override object DeserializeFromString(WorkflowMarkupSerializationManager serializationManager, Type propertyType, string value)
AuthoringOM\Design\ComponentSerializationService.cs (11)
100internal static PropertyInfo GetProperty(Type type, string name, BindingFlags bindingFlags) 385protected override Type GetType(string name) 387Type t = base.GetType(name); 583public object GetService(Type serviceType) 622public override Type PropertyType 645Type propertyType = DeclaringType; 688Type propertyType = DeclaringType; 812public override Type DeclaringType 824public override Type ReflectedType 847public override object[] GetCustomAttributes(Type attributeType, bool inherit) 855public override bool IsDefined(Type attributeType, bool inherit)
AuthoringOM\Design\Connector.cs (2)
503protected virtual object GetService(Type serviceType) 1084private object GetService(Type serviceType)
AuthoringOM\Design\CustomActivityDesigner.cs (24)
136private static DesignerAttribute GetDesignerAttribute(object component, Type designerBaseType) 264public static Type GetCustomActivityType(IServiceProvider serviceProvider) 295Type newBaseType = ValidateBaseType(typeName, serviceProvider); 298Type oldBaseType = host.RootComponent.GetType(); 364private static Type ValidateBaseType(string typeName, IServiceProvider serviceProvider) 372Type type = typeProvider.GetType(typeName); 380Type rootComponentType = typeProvider.GetType(host.RootComponentClassName); 405Type customActivityType = GetCustomActivityType(serviceProvider); 430private static CustomProperty CreateCustomProperty(IServiceProvider serviceProvider, Type customActivityType, MemberInfo member, Type propertyType) 486Type editorType = attributeInfo.GetArgumentValueAs(serviceProvider, 1, typeof(Type)) as Type; 489Type uiTypeEditorType = attributeInfo.GetArgumentValueAs(serviceProvider, 0, typeof(Type)) as Type; 514Type customActivityType = GetCustomActivityType(serviceProvider); 527private static void RemoveDeletedProperties(List<CustomProperty> propCollection, Type customActivityType, IServiceProvider serviceProvider) 569private static void AddNewProperties(List<CustomProperty> propCollection, Type customActivityType, IServiceProvider serviceProvider, List<CustomProperty> existingProps) 620Type propertyType = typeProvider.GetType(property.Type, false); 621Type oldPropertyType = typeProvider.GetType(property.oldPropertyType, false); 696bool ITypeFilterProvider.CanFilterType(Type type, bool throwOnError) 837Type type = typeProvider.GetType(typeName); 890Type baseType = PropertyDescriptorUtils.GetBaseType(propertyDescriptor, propertyOwner, serviceProvider);
AuthoringOM\Design\DesignerHelpers.cs (4)
1573internal static string CreateUniqueMethodName(IComponent component, string propName, Type delegateType) 1618Type type = Helpers.GetDataSourceClass(contextActivity, serviceProvider); 1731Type ruleConditionType = Type.GetType(DeclarativeRulesRef, false);
AuthoringOM\Design\DesignerInterfaces.cs (23)
42void CreateField(string className, string fieldName, Type fieldType, Type[] genericParameterTypes, MemberAttributes attributes, CodeSnippetExpression initializationExpression, bool overwriteExisting); 43void CreateProperty(string className, string propertyName, Type propertyType, AttributeInfo[] attributes, bool emitDependencyProperty, bool isMetaProperty, bool isAttached, Type ownerType, bool isReadOnly); 44void CreateEvent(string className, string eventName, Type eventType, AttributeInfo[] attributes, bool emitDependencyProperty); 46void UpdateBaseType(string className, Type baseType); 47void UpdateProperty(string className, string oldPropertyName, Type oldPropertyType, string newPropertyName, Type newPropertyType, AttributeInfo[] attributes, bool emitDependencyProperty, bool isMetaProperty); 48void UpdateEvent(string className, string oldEventName, Type oldEventType, string newEventName, Type newEventType, AttributeInfo[] attributes, bool emitDependencyProperty, bool isMetaProperty); 49void RemoveProperty(string className, string propertyName, Type propertyType); 50void RemoveEvent(string className, string eventName, Type eventType); 52void ShowCode(Activity activity, string methodName, Type delegateType); 62DialogResult AddWebReference(out Uri url, out Type proxyClass); 63Uri GetUrlForProxyClass(Type proxyClass); 64Type GetProxyClassForUrl(Uri url); 80Dictionary<string, Type> GetXsdProjectItemsInfo(); 95bool IsSupportedType(Type type); 101Type GetRuntimeType(Type reflectionType); 527bool IsSupportedActivityType(Type activityType); 1117bool CanFilterType(Type type, bool throwOnError); 1129public TypeFilterProviderAttribute(Type type)
AuthoringOM\Design\DesignerWidgets.cs (1)
3172private object GetService(Type serviceType)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (32)
27private Type boundType = null; 156Type designTimeType = typeProvider.GetType(this.boundType.FullName, false); 242Type parsedPropertyType = member.PropertyType; 247Type designTimeParsedType = typeProvider.GetType(parsedPropertyType.FullName, false); 329Type customActivityType = CustomActivityDesignerHelper.GetCustomActivityType(context); 401Type activityType = GetActivityType(activity); 409private Type GetActivityType(Activity activity) 411Type activityType = null; 448private PathInfo[] ProcessPaths(Type activityType, PathInfo topProperty) 465private PathInfo[] GetArraySubProperties(Type propertyType, string currentPath)//(PathInfo pathInfo) 549private string GetIndexerString(Type indexType) 573PropertyInfo[] GetProperties(Type type) 579Type[] interfaces = type.GetInterfaces(); 580foreach (Type implementedInterface in interfaces) 590private PathInfo[] GetSubPropertiesOnType(Type typeToGetPropertiesOn, string currentPath) 603Type memberType = BindHelpers.GetMemberType(property); 609Type designTimeMemberType = typeProvider.GetType(memberType.FullName, false); 652Type fieldType = BindHelpers.GetMemberType(field); 661Type designTimeFieldType = typeProvider.GetType(fieldType.FullName, false); 683Type eventType = BindHelpers.GetMemberType(eventInfo); 689Type designTimeEventType = typeProvider.GetType(eventType.FullName, false); 714private List<PathInfo> ParseStringPath(Type activityType, string path) 762private static bool IsTypePrimitive(Type type) 768private string GetSimpleTypeFullName(Type type) 774Stack<Type> types = new Stack<Type>(); 786foreach (Type parameterType in type.GetGenericArguments()) 901Type memberType = (this.pathInfo != null) ? this.pathInfo.PropertyType : null; 1007Type memberType = (memberParentNode != null) ? memberParentNode.PathInfo.PropertyType : this.parent.GetActivityType(parentNode.Activity); 1303private Type propertyType; 1305public PathInfo(string path, MemberInfo memberInfo, Type propertyType) 1329public Type PropertyType
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (29)
568Type activityType = (eventArgs.Node != null && typeof(Activity).IsAssignableFrom(eventArgs.Node.Tag as System.Type)) ? eventArgs.Node.Tag as System.Type : null; 645List<Type> activityTypes = new List<Type>(); 659Type stockType = Type.GetType(stockTypeName, false); 667IList<Type> nonpreviewableDesignerTypes = new List<Type>(); 705Type type = null; 722foreach (Type type in activityTypes) 724Type designerBaseType = (type.FullName.Equals(DesignerHelpers.SequentialWorkflowTypeRef, StringComparison.OrdinalIgnoreCase)) ? typeof(IRootDesigner) : typeof(IDesigner); 725Type designerType = ActivityDesigner.GetDesignerType(serviceProvider, type, designerBaseType); 750while (index >= 0 && parentNode.Nodes[index].Tag is System.Type) 764internal static TreeNode GetCatagoryNodeForDesigner(Type designerType, TreeNode[] treeNodes) 775Type baseType = designerType; 833Type activityType = treeNode.Tag as System.Type; 836Type designerBaseType = (activityType.FullName.Equals(DesignerHelpers.SequentialWorkflowTypeRef, StringComparison.OrdinalIgnoreCase)) ? typeof(IRootDesigner) : typeof(IDesigner); 837Type designerType = ActivityDesigner.GetDesignerType(serviceProvider, activityType, designerBaseType); 880Type activityType = item.Tag as Type; 883Type designerBaseType = (activityType.FullName.Equals(DesignerHelpers.SequentialWorkflowTypeRef, StringComparison.OrdinalIgnoreCase)) ? typeof(IRootDesigner) : typeof(IDesigner); 884Type designerType = ActivityDesigner.GetDesignerType(serviceProvider, activityType, designerBaseType); 938Activity rootDecl = host.CreateComponent(Type.GetType(DesignerHelpers.SequentialWorkflowTypeRef)) as Activity; 976internal IDesigner UpdatePreview(Type activityType) 1001AddDummyActivity(rootDecl as CompositeActivity, Type.GetType(DesignerHelpers.CodeActivityTypeRef)); 1059private void AddDummyActivity(CompositeActivity parentActivity, Type activityType) 1139object IServiceProvider.GetService(Type serviceType)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (46)
43private Type selectedType = null; 330public Type SelectedType 339List<Type> GetTargetFrameworkTypes(ITypeProvider currentTypeProvider) 342List<Type> targetFrameworkTypes = new List<Type>(); 353foreach (Type type in reflectionContextAssembly.GetTypes()) 365foreach (Type type in currentTypeProvider.GetTypes()) 420Type actualType = typeProvider.GetType(this.selectedTypeName); 439private void UpdateTreeView(Type[] types, AutoCompleteStringCollection autoCompleteStringCollection) 444foreach (Type type in types) 546Type type = typeProvider.GetType(this.typeTextBox.Text); 586this.typeTextBox.Text = (this.artifactListView.SelectedItems[0].Tag as Type).FullName; 595Type type = this.artifactListView.SelectedItems[0].Tag as Type; 610this.artifactListView.SelectedItems[0].Tag is Type && 652Type actualType = typeProvider.GetType(this.typeTextBox.Text); 658Type baseType = null; 672Type type = lvItem.Tag as Type; 866foreach (Type type in GetTargetFrameworkTypes(typeProvider)) 919private void ListSelectionChanged(Type selectedType) 1018Type selectedType = null; 1041Type type = this.artifactListView.SelectedItems[0].Tag as Type; 1053Type parameterType = parameterData.Type; 1077private void GetTypeParts(Type type, out Type baseType, out ParameterData[] parameterDataArray, out int[] arrayRanks) 1094Type unboundedType = null; 1095Type boundedType = null; 1125private string GetSimpleTypeFullName(Type type) 1128Stack<Type> types = new Stack<Type>(); 1140foreach (Type parameterType in type.GetGenericArguments()) 1216internal void UpdateHelpText(Type selectedType) 1308object System.IServiceProvider.GetService(Type serviceType) 1325private Type parameterType; 1326private Type type; 1328public Type Type 1341public Type ParameterType 1355public bool CanFilterType(Type type, bool throwOnError) 1429public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 1435public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 1461public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 1523public override Type ComponentType 1530public override Type PropertyType 1596public object GetService(Type type) { return this.serviceProvider.GetService(type); }
AuthoringOM\Design\DocumentOutline.cs (1)
293protected override object GetService(Type serviceType)
AuthoringOM\Design\IdentifierCreationService.cs (5)
82Type customActivityType = GetRootActivityType(this.serviceProvider); 87Type memberType = null; 140Type customActivityType = GetRootActivityType(this.serviceProvider); 152Type memberType = null; 187private Type GetRootActivityType(IServiceProvider serviceProvider)
AuthoringOM\Design\MessageFilters\GlyphManager.cs (1)
34internal DesignerGlyph this[Type type]
AuthoringOM\Design\MessageFilters\WorkflowDesignerMessageFilter.cs (1)
184internal object GetService(Type serviceType)
AuthoringOM\Design\PropertyDescriptors.cs (15)
99Type designedType = Helpers.GetDataSourceClass(Helpers.GetRootActivity(activity), activity.Site); 194if (typeof(Type).IsAssignableFrom(propDesc.PropertyType) && !(propDesc is ParameterInfoBasedPropertyDescriptor)) 198else if (typeof(Type).IsAssignableFrom(propDesc.PropertyType)) 308public override object GetEditor(Type editorBaseType) 425Type objectType = (obj == rootActivity) ? Helpers.GetDataSourceClass(rootActivity, context) : obj.GetType(); 427Type memberType = PropertyDescriptorUtils.GetBaseType(context.PropertyDescriptor, context.Instance, context); 528Type boundType = PropertyDescriptorUtils.GetBaseType(context.PropertyDescriptor, context.Instance, context); 536Type designedType = Helpers.GetDataSourceClass(activity, context); 552Type memberType = null; 696internal static MemberInfo FindMatchingMember(string name, Type ownerType, bool ignoreCase) 789public override ICustomTypeDescriptor GetTypeDescriptor(Type type, object instance) 904public override Type ComponentType 911public override Type PropertyType 990public override Type ComponentType 997public override Type EventType
AuthoringOM\Design\ReferenceService.cs (1)
296object[] IReferenceService.GetReferences(Type baseType)
AuthoringOM\Design\SecondaryViewProvider.cs (20)
54Type activityType = designer.Activity.GetType(); 72(Type.GetType(EventHandlingScopeRef).IsAssignableFrom(activityType) && 73(!locked || FindActivity(designer, Type.GetType(EventHandlersRef)) != null))) 74viewTypes.Add(new object[] { Type.GetType(EventHandlersRef), DR.GetString(DR.ViewEvents) }); 81Type viewType = viewTypes[i][0] as Type; 89internal static IList<Type> GetActivityTypes(StructuredCompositeActivityDesigner designer) 91List<Type> activityTypes = new List<Type>(); 95Type activityType = views[i].UserData[SecondaryView.UserDataKey_ActivityType] as Type; 101internal static void OnViewRemoved(StructuredCompositeActivityDesigner designer, Type viewTypeRemoved) 106Type activityType = views[i].UserData[SecondaryView.UserDataKey_ActivityType] as Type; 112internal static Activity FindActivity(StructuredCompositeActivityDesigner designer, Type activityType) 138internal SecondaryView(StructuredCompositeActivityDesigner parentDesigner, int id, string text, Type activityType) 154Type activityType = UserData[UserDataKey_ActivityType] as Type; 181Type activityType = UserData[UserDataKey_ActivityType] as Type;
AuthoringOM\Design\SequenceDesignerAccessibleObject.cs (1)
240private object GetService(Type serviceType)
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
318IList<Type> secondaryViewTypes = SecondaryViewProvider.GetActivityTypes(this);
AuthoringOM\Design\Themes.cs (11)
114private Type designerThemeType = null; 117public ActivityDesignerThemeAttribute(Type designerThemeType) 122public Type DesignerThemeType 687internal DesignerTheme GetTheme(Type designerType) 849private Type designerType = null; 890public virtual Type DesignerType 963protected override object CreateInstance(WorkflowMarkupSerializationManager serializationManager, Type type) 3204public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 3253public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 3359public override object GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType)
AuthoringOM\Design\TypeConverters.cs (18)
24internal static readonly Type RuleConditionReferenceType = null; 25internal static readonly Type RuleDefinitionsType = null; 26internal static readonly Type CodeConditionType = null; 32RuleConditionReferenceType = Type.GetType("System.Workflow.Activities.Rules.RuleDefinitions, " + AssemblyRef.ActivitiesAssemblyRef); 33RuleDefinitionsType = Type.GetType("System.Workflow.Activities.Rules.RuleConditionReference, " + AssemblyRef.ActivitiesAssemblyRef); 34CodeConditionType = Type.GetType("System.Workflow.Activities.CodeCondition, " + AssemblyRef.ActivitiesAssemblyRef); 54public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 68return Activator.CreateInstance(this.conditionDecls[value] as Type); 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 82public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 112Type declType = this.conditionDecls[key] as Type; 158public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 170public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 219public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 404public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 409public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 419public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
AuthoringOM\Design\UITypeEditors.cs (3)
55Type typeFilterProviderType = Type.GetType(typeFilterProvAttr.TypeFilterProviderTypeName); 91if (typeDescriptorContext.PropertyDescriptor.PropertyType == typeof(Type))
AuthoringOM\Design\WinOEToolBoxItem.cs (4)
23public ActivityToolboxItem(Type type) 62Type typeOfComponent = GetType(host, AssemblyName, TypeName, true); 95public static Image GetToolboxImage(Type activityType) 115public static string GetToolboxDisplayName(Type activityType)
AuthoringOM\Design\WorkflowInlining.cs (9)
280private object OnCreateService(IServiceContainer container, Type serviceType) 341private Type targetWorkflowType = null; 380((parameterProperty.DeclaringType == Type.GetType(DesignerHelpers.SequentialWorkflowTypeRef) || 381parameterProperty.DeclaringType == Type.GetType(DesignerHelpers.StateMachineWorkflowTypeRef)) && 386Type dependencyObjectType = this.targetWorkflowType; 404PropertyDescriptor prop = new ParameterInfoBasedPropertyDescriptor(Type.GetType(InvokeWorkflowRef), parameterProperty.Name, parameterProperty.PropertyType, ReservedParameterNames.Contains(parameterProperty.Name), DesignOnlyAttribute.Yes); 448Type workflowType = Activity.GetType().InvokeMember("TargetWorkflow", BindingFlags.GetProperty | BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, Activity, new object[] { }, CultureInfo.InvariantCulture) as Type; 454Type updatedWorkflowType = null;
AuthoringOM\Design\WorkflowView.cs (2)
2144object IServiceProvider.GetService(Type serviceType) 2149protected override object GetService(Type serviceType)
AuthoringOM\Design\XomlDesignerLoader.cs (11)
43Type invokeWorkflowType = Type.GetType(InvokeWorkflowDesigner.InvokeWorkflowRef); 105foreach (Type serviceType in this.createdServices.Keys) 263protected void LoadDesignerLayoutFromResource(Type type, string manifestResourceName, out IList errors) 408private object OnCreateService(IServiceContainer container, Type serviceType) 437private void OnDisposeService(Type serviceType, object service) 457Type rootActivityType = rootDesigner.Component.GetType(); 718args.CurrentProperty.PropertyType == typeof(System.Type) && 719args.CurrentValue is System.Type) 721Type updatedType = typeProvider.GetType(((Type)args.CurrentValue).FullName);
AuthoringOM\Fault.cs (13)
31public static readonly DependencyProperty FaultTypeProperty = DependencyProperty.Register("FaultType", typeof(Type), typeof(ThrowActivity)); 74ConstructorInfo cInfo = this.FaultType.GetConstructor(new Type[] { }); 105public Type FaultType 109return base.GetValue(FaultTypeProperty) as Type; 118bool ITypeFilterProvider.CanFilterType(Type type, bool throwOnError) 138Type IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider serviceProvider, string propertyName) 155public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 168public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 184Type type = typeProvider.GetType(stringValue, false); 202public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 210public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 214Type type = value as Type;
AuthoringOM\PropertyMetadata.cs (3)
105public Attribute[] GetAttributes(Type attributeType) 203protected virtual void OnApply(DependencyProperty dependencyProperty, Type targetType) 223internal void Seal(DependencyProperty dependencyProperty, Type targetType)
AuthoringOM\ScheduleChanges.cs (1)
600Type companionType = rootActivity.GetType();
AuthoringOM\Serializer\ActivityCodeDomReferenceService.cs (1)
41public object[] GetReferences(System.Type baseType)
AuthoringOM\Serializer\ActivityCodeDomSerializationManager.cs (8)
125public object CreateInstance(Type type, ICollection arguments, string name, bool addToContainer) 130public object GetService(Type serviceType) 160public object GetSerializer(Type objectType, Type serializerType) 195private bool UseUserDefinedSerializer(Type objectType, Type serializerType) 280public Type GetType(string typeName) 282Type type = this.serializationManager.GetType(typeName);
AuthoringOM\Serializer\ActivityExecutorSurrogate.cs (1)
28private Type executorType = null;
AuthoringOM\Serializer\ActivityMarkupSerializationProvider.cs (2)
9public override object GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType)
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (1)
93protected override object CreateInstance(WorkflowMarkupSerializationManager serializationManager, Type type)
AuthoringOM\Serializer\ActivitySurrogate.cs (2)
186private Type type = null; 331private Type type = null;
AuthoringOM\Serializer\ActivitySurrogateSelector.cs (4)
29private static Dictionary<Type, ISerializationSurrogate> surrogateCache = new Dictionary<Type, ISerializationSurrogate>(); 38public override ISerializationSurrogate GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector selector) 146private Type type = null;
AuthoringOM\Serializer\BindMarkupExtensionSerializer.cs (1)
21return new InstanceDescriptor(typeof(ActivityBind).GetConstructor(new Type[] { typeof(string) }),
AuthoringOM\Serializer\CodeTypeReferenceSerializer.cs (4)
38Type type = serializationManager.GetType(typeName); 42type = Type.GetType(typeName, false); 75protected internal override object DeserializeFromString(WorkflowMarkupSerializationManager serializationManager, Type propertyType, string value) 90Type type = serializationManager.GetType(value);
AuthoringOM\Serializer\CollectionMarkupSerializer.cs (1)
88internal static bool IsValidCollectionType(Type collectionType)
AuthoringOM\Serializer\CompositeActivityTypeDescriptorProvider.cs (1)
29public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
AuthoringOM\Serializer\DictionarySurrogate.cs (5)
20Type[] args = obj.GetType().GetGenericArguments(); 68private Type keyType = null; 69private Type valueType = null; 78Type dictionaryType = typeof(Dictionary<int, int>).GetGenericTypeDefinition().MakeGenericType(keyType, valueType); 79this.dictionary = dictionaryType.GetConstructor(Type.EmptyTypes).Invoke(null);
AuthoringOM\Serializer\ExtendedPropertyInfo.cs (5)
81public override Type DeclaringType 89public override Type ReflectedType 97public override Type PropertyType 179public override object[] GetCustomAttributes(Type attributeType, bool inherit) 184public override bool IsDefined(Type attributeType, bool inherit)
AuthoringOM\Serializer\FormatterServicesNoSerializableCheck.cs (15)
39private static Dictionary<Type, MemberInfoName> m_MemberInfoTable = new Dictionary<Type, MemberInfoName>(32); 57private static MemberInfo[] GetSerializableMembers2(Type type) 84private static bool CheckSerializable(Type type) 95private static MemberInfo[] InternalGetSerializableMembers(Type type, out string[] typeNames) 103Type parentType; 124parentType = (Type)(type.BaseType); 127Type[] parentTypes = null; 136parentType = (Type)parentTypes[i]; 174private static bool GetParentTypes(Type parentType, out Type[] parentTypes, out int parentTypeCount) 183for (Type t1 = parentType; t1 != typeof(object); t1 = t1.BaseType) 199Type[] tempParentTypes = new Type[Math.Max(parentTypeCount * 2, 12)]; 214public static MemberInfo[] GetSerializableMembers(Type type, out string[] names)
AuthoringOM\Serializer\GenericQueueSurrogate.cs (4)
21Type[] args = obj.GetType().GetGenericArguments(); 46private Type itemType = null; 55Type queueType = typeof(Queue<int>).GetGenericTypeDefinition().MakeGenericType(itemType); 56this.queue = queueType.GetConstructor(Type.EmptyTypes).Invoke(null);
AuthoringOM\Serializer\ListSurrogate.cs (4)
21Type[] args = obj.GetType().GetGenericArguments(); 47private Type itemType = null; 56Type listType = typeof(List<int>).GetGenericTypeDefinition().MakeGenericType(itemType); 57this.list = listType.GetConstructor(Type.EmptyTypes).Invoke(null);
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (4)
75else if (argValue is System.Type) 77Type argType = argValue as Type; 178return new InstanceDescriptor(markupExtension.GetType().GetConstructor(new Type[0]), null);
AuthoringOM\Serializer\ModifyActivitiesPropertyDescriptor.cs (2)
36public override Type ComponentType 57public override Type PropertyType
AuthoringOM\Serializer\PropertySegmentSerializationProvider.cs (2)
15public override object GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType)
AuthoringOM\Serializer\PropertySegmentSerializer.cs (3)
31protected override object CreateInstance(WorkflowMarkupSerializationManager serializationManager, Type type) 93protected internal override object DeserializeFromString(WorkflowMarkupSerializationManager serializationManager, Type propertyType, string value) 142private TypeConverter GetTypeConversionInfoForPropertySegment(WorkflowMarkupSerializationManager serializationManager, Type propertyType, out ITypeDescriptorContext context)
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (1)
45if (value.GetType().GetConstructor(new Type[0]) != null)
AuthoringOM\Serializer\StringCollectionMarkupSerializer.cs (1)
39protected internal override object DeserializeFromString(WorkflowMarkupSerializationManager serializationManager, Type propertyType, string value)
AuthoringOM\Serializer\TypeExtensionSerializer.cs (3)
22return new InstanceDescriptor(typeof(TypeExtension).GetConstructor(new Type[] { typeof(System.Type) }), 24return new InstanceDescriptor(typeof(TypeExtension).GetConstructor(new Type[] { typeof(string) }),
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (14)
42private Dictionary<XmlQualifiedName, Type> cachedXmlQualifiedNameTypes = new Dictionary<XmlQualifiedName, Type>(); 150public virtual XmlQualifiedName GetXmlQualifiedName(Type type, out string prefix) 175public virtual Type GetType(XmlQualifiedName xmlQualifiedName) 183Type resolvedType = null; 270public object GetSerializer(Type objectType, Type serializerType) 277public virtual Type GetType(string typeName) 283Type type = null; 342type = Type.GetType(fullyQualifiedTypeName, false); 444object IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, string name, bool addToContainer) 476public object GetService(Type serviceType) 490object IDesignerSerializationProvider.GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType)
AuthoringOM\Serializer\WorkflowMarkupSerializationProvider.cs (2)
27public virtual object GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (28)
775Type propertyInfoType = null; 793if (propertyValue == null && TypeProvider.IsAssignable(typeof(Type), property.PropertyType)) 853Type propertyValueType = null; 958Type ownerType = null; 1182Type valueType = value.GetType(); 1206protected internal virtual object DeserializeFromString(WorkflowMarkupSerializationManager serializationManager, Type propertyType, string value) 1211private object InternalDeserializeFromString(WorkflowMarkupSerializationManager serializationManager, Type propertyType, string value) 1238Type genericType = (Type)propertyType.GetGenericArguments()[0]; 1267else if (typeof(Type).IsAssignableFrom(propertyType)) 1272Type type = propVal as Type; 1279Type type = typeProvider.GetType(value); 1331protected virtual object CreateInstance(WorkflowMarkupSerializationManager serializationManager, Type type) 1598else if (value is string && TypeProvider.IsAssignable(typeof(Type), dependencyProperty.PropertyType)) 1708Type type = null; 1910Type propertyType = null; 1942Type eventType = null; 1959private void DeserializeSimpleMember(WorkflowMarkupSerializationManager serializationManager, Type memberType, XmlReader reader, object obj, string value) 2012if (memberValue is string && TypeProvider.IsAssignable(typeof(Type), property.PropertyType)) 2056Type ownerType = null; 2303public bool IsTypeAuthorized(Type typeToAuthorize) 2495Type type = serializationManager.GetType(new XmlQualifiedName(typename, reader.LookupNamespace(prefix))); 3121internal static string EnsureMarkupExtensionTypeName(Type type) 3140private static bool IsMarkupExtension(Type type) 3143typeof(System.Type).IsAssignableFrom(type) || 3162if (value is System.Type) 3163return new TypeExtension(value as System.Type);
AuthoringOM\Serializer\WorkflowMarkupSerializerMapping.cs (6)
29private static readonly Dictionary<string, Type> wellKnownTypes; 46WorkflowMarkupSerializerMapping.wellKnownTypes = new Dictionary<string, Type>(); 203internal static Type ResolveWellKnownTypes(WorkflowMarkupSerializationManager manager, string xmlns, string typeName) 205Type resolvedType = null; 324internal static void GetMappingFromType(WorkflowMarkupSerializationManager manager, Type type, out WorkflowMarkupSerializerMapping matchingMapping, out IList<WorkflowMarkupSerializerMapping> collectedMappings) 394private static string GetAssemblyName(Type type, WorkflowMarkupSerializationManager manager)
AuthoringOM\Serializer\XamlInterfaces.cs (6)
138private Type type; 149public TypeExtension(Type type) 235internal Type Type 245private Type arrayType; 251public ArrayExtension(Type arrayType) 270public Type Type
Shared\BasePropertyDescriptor.cs (28)
69internal static Type GetBaseType(PropertyDescriptor property, object owner, IServiceProvider serviceProvider) 71Type baseType = null; 73Type ownerType = owner.GetType(); 234public override Type ComponentType 242public override Type PropertyType 303private Type componentType; 307private Type parameterType = null; 310internal ParameterInfoBasedPropertyDescriptor(Type componentType, ParameterInfo paramInfo, bool avoidDuplication, params Attribute[] attributes) 339internal ParameterInfoBasedPropertyDescriptor(Type componentType, string propertyName, Type propertyType, bool avoidDuplication, params Attribute[] attributes) 354internal Type ParameterType 358Type type = this.parameterType; 381public override object GetEditor(Type editorBaseType) 402public override Type ComponentType 425internal static MemberInfo FindMatchingMember(string name, Type ownerType, bool ignoreCase) 439public override Type PropertyType 443Type propertyType = ParameterType; 562MemberInfo memberInfo = component.GetType().GetProperty("ParameterBindings", BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null, typeof(WorkflowParameterBindingCollection), new Type[] { }, new ParameterModifier[] { }); 568public static string GetParameterPropertyName(Type componentType, string paramName) 640Type baseConverterType = Assembly.GetExecutingAssembly().GetType(baseConverterTypeName); 682Type type = value as Type; 729public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 741public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 746if (TypeDescriptor.Equals(destinationType, typeof(Type))) 768public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 770if (value is Type && TypeDescriptor.Equals(destinationType, typeof(string))) 771return ((Type)value).FullName;
Shared\CompilerHelpers.cs (5)
44private static Dictionary<Type, Dictionary<string, CodeDomProvider>> providers = null; 48internal static CodeDomProvider CreateCodeProviderInstance(Type type) 54internal static CodeDomProvider CreateCodeProviderInstance(Type type, string compilerVersion) 78static CodeDomProvider GetCodeProviderInstance(Type type, string compilerVersion) 85providers = new Dictionary<Type, Dictionary<string, CodeDomProvider>>();
Shared\CompModHelpers.cs (12)
416internal static Type GetDataSourceClass(Activity activity, IServiceProvider serviceProvider) 423Type activityType = null; 630internal static Type GetBaseType(PropertyInfo property, object owner, IServiceProvider serviceProvider) 644Type type = basetypeProvider.GetPropertyType(serviceProvider, property.Name); 693internal static bool TypesEqual(CodeTypeReference typeLeft, Type typeRight) 738internal static MethodInfo GetMethodExactMatch(Type type, string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers) 783internal static Type GetDelegateFromEvent(EventInfo eventInfo) 814foreach (Type type in assembly.GetTypes()) 950internal static MethodInfo GetInterfaceMethod(Type interfaceType, string methodName) 964foreach (Type inheritedInterface in interfaceType.GetInterfaces()) 1363public object GetService(Type serviceType)
Shared\DelegateTypeInfo.cs (6)
29private Type[] parameterTypes; 40internal Type[] ParameterTypes 56internal DelegateTypeInfo(Type delegateClass) 62private void Resolve(Type delegateClass) 78parameterTypes = new Type[argTypes.Length]; 82Type paramType = argTypes[index].ParameterType;
Shared\TypeSystemHelpers.cs (5)
283internal static string FormatType(Type type, SupportedLanguages language) 310Type[] genericArguments = type.GetGenericArguments(); 317foreach (Type genericArgument in genericArguments) 408internal static Type ParseTypeName(ITypeProvider typeProvider, SupportedLanguages language, string typeName) 410Type returnType = null;
Shared\ValidationHelpers.cs (1)
193Type objType = obj.GetType();
Shared\Walker.cs (1)
279private static bool IsBrowsableType(Type type)
Shared\XomlSerializationHelpers.cs (2)
43bool IsTypeAuthorized(Type typeToAuthorize); 474public object GetService(Type type) { return null; }
System.Workflow.Runtime (202)
CreationContext.cs (2)
33internal Type Type; 42internal CreationContext(Type type, WorkflowExecutor invokerExec, string invokeActivityID, Dictionary<string, object> args)
DebugEngine\DebugController.cs (11)
60private Dictionary<Type, Guid> typeToGuid; 331this.typeToGuid = new Dictionary<Type, Guid>(); 486if (!String.IsNullOrEmpty(controllerConduitTypeName) && Type.GetType(controllerConduitTypeName) != null) 487this.controllerConduit = Activator.GetObject(Type.GetType(controllerConduitTypeName), url.AbsolutePath) as IWorkflowDebugger; 497Type controllerConduitType = null; 502controllerConduitType = Type.GetType(string.Format(CultureInfo.InvariantCulture, controllerConduitTypeFormat, version)); 545ReadOnlyCollection<Type> types; 550Type scheduleType = types[i]; 995private void LoadExistingScheduleType(Guid scheduleTypeId, Type scheduleType, bool isDynamic, Activity rootActivity) 1057private Guid GetScheduleTypeId(Type scheduleType) 1112MethodInfo boundGetInvocationListMethod = getInvocationListMethod.MakeGenericMethod(new Type[] { dependencyEvent.PropertyType });
DebugEngine\DebugControllerThread.cs (4)
104if (!String.IsNullOrEmpty(evaluationFrameTypeName) && Type.GetType(evaluationFrameTypeName) != null) 105expressionEvaluationFrame = Activator.CreateInstance(Type.GetType(evaluationFrameTypeName)) as IExpressionEvaluationFrame; 112Type eeFrameType = null; 121eeFrameType = Type.GetType(string.Format(CultureInfo.InvariantCulture, eeFrameTypeNameFormat, version));
Hosting\DefaultWorkflowLoaderService.cs (2)
27protected internal override Activity CreateInstance(Type workflowType) 35if (workflowType.GetConstructor(System.Type.EmptyTypes) == null)
Hosting\WorkflowLoaderService.cs (1)
26protected internal abstract Activity CreateInstance(Type workflowType);
RTTrackingProfile.cs (4)
38private Type _workflowType = null; 39private Type _serviceType = null; 82internal RTTrackingProfile(TrackingProfile profile, Activity root, Type serviceType) 200internal Type WorkflowType
System\Activities\Statements\Interop.cs (17)
50Type activityType; 80public Type ActivityType 94&& value.GetConstructor(Type.EmptyTypes) != null) 301if (this.ActivityType.GetConstructor(Type.EmptyTypes) == null) 578object ICustomTypeDescriptor.GetEditor(Type editorBaseType) 929Left = new Equal<Type, Type, bool> 935Right = new InArgument<Type>(context => typeof(System.Activities.Statements.TransactionScope)) 1029static TypeProvider CreateTypeProvider(Type rootType) 1217Type interopBodyType = interopBody.GetType(); 1503class ObtainType : CodeActivity<Type> 1515protected override Type Execute(CodeActivityContext context) 1533public override Type ComponentType 1602public override Type PropertyType 1644Type literalType; 1646public LiteralProperty(Interop owner, string literalName, Type literalType, Attribute[] attributes) 1662public override Type PropertyType
System\Activities\Statements\InteropEnvironment.cs (5)
158object IServiceProvider.GetService(Type serviceType) 294static readonly Type activityType = typeof(System.Workflow.ComponentModel.Activity); 295static readonly Type compositeActivityType = typeof(System.Workflow.ComponentModel.CompositeActivity); 296static readonly Type dependencyObjectType = typeof(System.Workflow.ComponentModel.DependencyObject); 297static readonly Type activityConditionType = typeof(System.Workflow.ComponentModel.ActivityCondition);
System\Activities\Statements\InteropExecutor.cs (3)
592public object GetService(Activity currentActivity, Type serviceType) 829public Guid StartWorkflow(Type workflowType, Dictionary<string, object> namedArgumentValues) 860object IServiceProvider.GetService(Type serviceType)
Tracking.cs (46)
332Type workflowType = exec.WorkflowDefinition.GetType(); 404Type t = service.GetType(); 448private List<TrackingChannelWrapper> GetChannels(Activity schedule, WorkflowExecutor exec, Guid instanceID, Type workflowType, ref TrackingListenerBroker broker) 488Type serviceType = _services[i].GetType(); 945internal bool ContainsService(Type trackingServiceType) 950internal void AddService(Type trackingServiceType, Version profileVersionId) 955internal void ReplaceServices(Dictionary<string, Type> replacements) 960foreach (KeyValuePair<string, Type> replacement in replacements) 976internal void RemoveService(Type trackingServiceType) 981internal bool TryGetProfileVersionId(Type trackingServiceType, out Version profileVersionId) 994internal void MakeProfilePrivate(Type trackingServiceType) 1003internal bool IsProfilePrivate(Type trackingServiceType) 1012internal void MakeProfileInstance(Type trackingServiceType) 1023internal bool IsProfileInstance(Type trackingServiceType) 1101private Dictionary<Type, Dictionary<Type, ProfileList>> _cacheLookup; 1126_cacheLookup = new Dictionary<Type, Dictionary<Type, ProfileList>>(); 1147_cacheLookup = new Dictionary<Type, Dictionary<Type, ProfileList>>(); 1200Type workflowType = schedule.GetType(); 1275Type workflowType = workflow.GetType(); 1328private RTTrackingProfile CreateProfile(TrackingProfile profile, Type workflowType, Type serviceType) 1336private RTTrackingProfile CreateProfile(TrackingProfile profile, Activity schedule, Type serviceType) 1348private bool AddToCache(RTTrackingProfile profile, Type serviceType) 1359private bool AddToCache(RTTrackingProfile profile, Type serviceType, bool resetNoProfiles) 1368Dictionary<Type, ProfileList> schedules = null; 1374schedules = new Dictionary<Type, ProfileList>(); 1394private bool TryGetFromCache(Type serviceType, Type workflowType, out RTTrackingProfile profile) 1401private bool TryGetFromCache(Type serviceType, Type workflowType, Version versionId, out RTTrackingProfile profile) 1407Dictionary<Type, ProfileList> schedules = null; 1468Type t = sender.GetType(); 1496private void RemoveProfile(Type workflowType, Type serviceType) 1500Dictionary<Type, ProfileList> schedules = null; 1504schedules = new Dictionary<Type, ProfileList>(); 1537internal Type ScheduleType = null; 1554internal CacheItem(Type workflowType, Version versionId) 1584private Type _serviceType = null, _scheduleType = null; 1592public TrackingChannelWrapper(TrackingChannel channel, Type serviceType, Type workflowType, RTTrackingProfile profile) 1601internal Type TrackingServiceType 1835internal static Guid HashServiceType(Type serviceType)
Tracking\ProfileEventArgs.cs (6)
18private Type _workflowType = null; 22public ProfileUpdatedEventArgs(Type workflowType, TrackingProfile profile) 34public Type WorkflowType 46private Type _workflowType = null; 50public ProfileRemovedEventArgs(Type workflowType) 55public Type WorkflowType
Tracking\PropertyHelper.cs (3)
82Type t = o.GetType(); 170Type t = activity.GetType(); 238Type t = o.GetType();
Tracking\SqlTrackingQuery.cs (3)
148inst.WorkflowType = Type.GetType(fullName + ", " + assemblyName, true, false); 288private Type _type = null; 291public Type WorkflowType
Tracking\SqlTrackingService.cs (17)
242protected internal override TrackingProfile GetProfile(Type workflowType, Version profileVersion) 252protected internal override bool TryGetProfile(Type workflowType, out TrackingProfile profile) 336protected internal override bool TryReloadProfile(Type workflowType, Guid scheduleInstanceId, out TrackingProfile profile) 388Type t = null; 624private TrackingProfile GetProfileByScheduleType(Type workflowType, Version profileVersionId, bool wantToCreateDefault) 684private class TypeKeyedCollection : KeyedCollection<string, Type> 686protected override string GetKeyForItem(Type item) 694public Type Type; 702public Type Type; 1262private void InsertWorkflow(DbCommand command, Guid workflowInstanceId, Type workflowType, Activity rootActivity) 1431Type t = record1.EventArgs.GetType(); 1453Type t = record2.EventArgs.GetType(); 1767Type t = record.UserData.GetType(); 1850Type t = sItem.Type; 2373Type type = added.GetType(); 2398Type type = added.GetType(); 2579Type t = activity.GetType();
Tracking\SqlTrackingWorkflowInstance.cs (6)
47Type _workflowType = null; 110public Type WorkflowType 225Type type = Type.GetType(reader.GetString(6) + ", " + reader.GetString(7), true, false); 372Type type = Type.GetType(reader.GetString(8) + ", " + reader.GetString(9), true, false);
Tracking\TrackingLocation.cs (18)
78private Type _activityType = null; 98public ActivityTrackingLocation(Type activityType) 118public ActivityTrackingLocation(Type activityType, IEnumerable<ActivityExecutionStatus> executionStatusEvents) 143public ActivityTrackingLocation(Type activityType, bool matchDerivedTypes, IEnumerable<ActivityExecutionStatus> executionStatusEvents) 160public Type ActivityType 254private Type _argType = null; 258private Type _activityType = null; 272public UserTrackingLocation(Type argumentType) 277public UserTrackingLocation(Type argumentType, Type activityType) 283public UserTrackingLocation(Type argumentType, string activityTypeName) 300public UserTrackingLocation(string argumentTypeName, Type activityType) 317public Type ArgumentType 335public Type ActivityType 431Type objType = obj.GetType(); 449Type b = objType.BaseType; 461internal static bool IsMatch(object obj, Type matchType, bool matchDerived) 463Type objType = obj.GetType();
Tracking\TrackingParameters.cs (3)
19private Type _workflowType = null; 28public TrackingParameters(Guid instanceId, Type workflowType, Activity rootActivity, IList<string> callPath, Guid callerInstanceId, Guid contextGuid, Guid callerContextGuid, Guid callerParentContextGuid) 45public Type WorkflowType
Tracking\TrackingProfileSerializer.cs (4)
265location.ActivityType = Type.GetType(type, true); 410location.ActivityType = Type.GetType(type, true); 431location.ArgumentType = Type.GetType(type, true); 1198Type t = extract.GetType();
Tracking\TrackingRecord.cs (6)
51private Type _activityType = null; 69public ActivityTrackingRecord(Type activityType, string qualifiedName, Guid contextGuid, Guid parentContextGuid, ActivityExecutionStatus executionStatus, DateTime eventDateTime, int eventOrder, EventArgs eventArgs) 103public Type ActivityType 159private Type _activityType = null; 178public UserTrackingRecord(Type activityType, string qualifiedName, Guid contextGuid, Guid parentContextGuid, DateTime eventDateTime, int eventOrder, string userDataKey, object userData) 212public Type ActivityType
Tracking\TrackingService.cs (3)
19protected internal abstract bool TryGetProfile(Type workflowType, out TrackingProfile profile); 21protected internal abstract TrackingProfile GetProfile(Type workflowType, Version profileVersionId); 25protected internal abstract bool TryReloadProfile(Type workflowType, Guid workflowInstanceId, out TrackingProfile profile);
WorkflowDefinitionDispenser.cs (13)
37private Dictionary<Type, List<PropertyInfo>> workflowOutParameters; 54this.workflowOutParameters = new Dictionary<Type, List<PropertyInfo>>(); 61Type workflowType = rootActivity.GetType(); 78internal void GetWorkflowTypes(out ReadOnlyCollection<Type> keys, out ReadOnlyCollection<Activity> values) 80this.workflowTypes.GetWorkflowDefinitions<Type>(out keys, out values); 102internal Activity GetWorkflowDefinition(Type workflowType) 110internal Activity GetRootActivity(Type workflowType, bool createNew, bool initForRuntime) 254private Activity LoadRootActivity(Type workflowType, bool createDefinition, bool initForRuntime) 327Type workflowType = rootActivity.GetType(); 408Type type = activity.GetType(); 422Type type = node.Value.GetType(); 441internal Activity GetOrGenerateDefinition(Type type, string xomlText, string rulesText, byte[] md5Codes, bool initForRuntime, out bool exist) 533if (((typeof(K) == typeof(Type)) && (this.type == CacheType.Type)) || ((typeof(K) == typeof(byte[])) && (this.type == CacheType.Xoml)))
WorkflowEventArgs.cs (3)
136private Type _workflowType; 139internal WorkflowDefinitionEventArgs(Type scheduleType) 149public Type WorkflowType
WorkflowExecutor.cs (3)
2805object IServiceProvider.GetService(Type serviceType) 2831Guid IWorkflowCoreRuntime.StartWorkflow(Type workflowType, Dictionary<string, object> namedArgumentValues) 3074object IWorkflowCoreRuntime.GetService(Activity activity, Type serviceType)
WorkflowRuntime.cs (19)
347internal Activity GetWorkflowDefinition(Type workflowType) 356public WorkflowInstance CreateWorkflow(Type workflowType) 367public WorkflowInstance CreateWorkflow(Type workflowType, Dictionary<string, object> namedArgumentValues) 386public WorkflowInstance CreateWorkflow(Type workflowType, Dictionary<string, object> namedArgumentValues, Guid instanceId) 819private Dictionary<Type, List<object>> _services = new Dictionary<Type, List<object>>(); 823private Dictionary<string, Type> _trackingServiceReplacement; 860internal Dictionary<string, Type> TrackingServiceReplacement 899Type basetype = service.GetType(); 906foreach (Type t in basetype.GetInterfaces()) 968Type type = service.GetType(); 994private void AddTrackingServiceReplacementInfo(Type type) 1004_trackingServiceReplacement = new Dictionary<string, Type>(); 1011private void RemoveTrackingServiceReplacementInfo(Type type) 1041public ReadOnlyCollection<object> GetAllServices(Type serviceType) 1076public object GetService(Type serviceType) 1424Type companionType = rootActivity.GetType(); 1488Type t = Type.GetType(serviceSettings.Type, true);
System.WorkflowServices (238)
System\ServiceModel\Activation\WorkflowServiceBuildProvider.cs (1)
35Type ServiceHostFactoryType
System\ServiceModel\Activation\WorkflowServiceHostFactory.cs (4)
38Type workflowType = this.GetTypeFromString(constructorString, baseAddresses); 119Type GetTypeFromString(string typeString, Uri[] baseAddresses) 130Type workflowType = Type.GetType(typeString, false);
System\ServiceModel\Activities\Description\WorkflowRuntimeEndpoint.cs (1)
89public object GetService(Type serviceType)
System\ServiceModel\Activities\Description\WorkflowRuntimeServicesBehavior.cs (1)
48public object GetService(Type serviceType)
System\ServiceModel\Activities\WorkflowRuntimeServicesExtensionProvider.cs (3)
14Dictionary<Type, object> services; 18this.services = new Dictionary<Type, object>(); 36public object GetService(Type serviceType)
System\ServiceModel\Configuration\PersistenceProviderElement.cs (5)
35public override Type BehaviorType 73Type providerType = System.Type.GetType((string) base[typeParameter]); 81ConstructorInfo cInfo = providerType.GetConstructor(new Type[] { typeof(NameValueCollection) }); 89cInfo = providerType.GetConstructor(new Type[] { });
System\ServiceModel\Configuration\WorkflowRuntimeElement.cs (1)
36public override Type BehaviorType
System\ServiceModel\Description\DescriptionCreator.cs (1)
23public ServiceDescription BuildServiceDescription(out IDictionary<string, ContractDescription> implementedContracts, out IList<Type> reflectedContracts)
System\ServiceModel\Description\ServiceDescriptionContext.cs (6)
15IList<Type> reflectedContracts; 17Dictionary<KeyValuePair<Type, string>, WorkflowOperationBehavior> workflowOperationBehaviors; 22this.reflectedContracts = new List<Type>(); 23this.workflowOperationBehaviors = new Dictionary<KeyValuePair<Type, string>, WorkflowOperationBehavior>(); 34public IList<Type> ReflectedContracts 54internal IDictionary<KeyValuePair<Type, string>, WorkflowOperationBehavior> WorkflowOperationBehaviors
System\ServiceModel\Description\WorkflowServiceBehavior.cs (1)
33public WorkflowServiceBehavior(Type workflowType) :
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (2)
25Type newServiceType; 51Type serviceType)
System\ServiceModel\Dispatcher\ServiceDurableInstanceContextProvider.cs (2)
23Type serviceType; 29Type serviceType,
System\ServiceModel\QueueNameHelper.cs (1)
17public static string Create(Type contractType, string operationName)
System\ServiceModel\Security\SerializableAuthorizationContext.cs (13)
21static readonly IList<Type> redBitsKnownType = new List<Type>( 22new Type[] 33IList<Type> knownTypes; 35SerializableAuthorizationContext(byte[] contextBlob, DateTime expirationTime, string id, IList<Type> knownTypes) 55IList<Type> knownTypes = BuildKnownClaimTypes(authorizationContext); 68static IList<Type> BuildKnownClaimTypes(AuthorizationContext authorizationContext) 70List<Type> knownTypes = new List<Type>(); 74Type claimSetType = claimSet.GetType(); 83Type claimType = claim.GetType(); 100static byte[] CreateSerializableBlob(AuthorizationContext authorizationContext, IList<Type> knownTypes) 137static IAuthorizationPolicy RetrievePolicyFromBlob(byte[] contextBlob, string id, DateTime expirationTime, IList<Type> knownTypes)
System\ServiceModel\WorkflowServiceHost.cs (6)
18IList<Type> reflectedContracts; 21public WorkflowServiceHost(Type workflowType, params Uri[] baseAddress) : 80public ServiceEndpoint AddServiceEndpoint(Type implementedContract, Binding binding, string address) 90public ServiceEndpoint AddServiceEndpoint(Type implementedContract, Binding binding, Uri address) 95public ServiceEndpoint AddServiceEndpoint(Type implementedContract, Binding binding, string address, Uri listenUri) 105public ServiceEndpoint AddServiceEndpoint(Type implementedContract, Binding binding, Uri address, Uri listenUri)
System\Workflow\Activities\ChannelToken.cs (3)
136Type contractType) 157Type contractType) 247Type contractType)
System\Workflow\Activities\ChannelTokenTypeConverter.cs (3)
25public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 30public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 60public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\Workflow\Activities\ContextTokenTypeConverter.cs (3)
25public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 30public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 60public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\Workflow\Activities\ContractMethodInfo.cs (5)
99public override Type DeclaringType 124public override Type ReflectedType 140public override Type ReturnType 171public override object[] GetCustomAttributes(Type attributeType, bool inherit) 200public override bool IsDefined(Type attributeType, bool inherit)
System\Workflow\Activities\ContractMethodParameterInfo.cs (3)
50this.ClassImpl = Type.GetType(typeName); 69public override object[] GetCustomAttributes(Type attributeType, bool inherit) 84public override bool IsDefined(Type attributeType, bool inherit)
System\Workflow\Activities\ContractType.cs (38)
30private Type[] nestedTypes = Type.EmptyTypes; 89public override Type BaseType 97public override Type DeclaringType 165public override Type UnderlyingSystemType 226public override object[] GetCustomAttributes(Type attributeType, bool inherit) 241for (Type t = this; t != null; t = t.BaseType) 269public override Type GetElementType() 299public override Type GetInterface(string name, bool ignoreCase) 314public override Type[] GetInterfaces() 316return Type.EmptyTypes; 356members.AddRange(GetMembersHelper<Type>(bindingAttr, new MemberSignature(name, null, null), ref this.nestedTypes)); 380public override Type GetNestedType(string name, BindingFlags bindingAttr) 385public override Type[] GetNestedTypes(BindingFlags bindingAttr) 387return Type.EmptyTypes; 401public override bool IsAssignableFrom(Type type) 414public override bool IsDefined(Type attributeType, bool inherit) 423public override bool IsSubclassOf(Type type) 428public override Type MakeByRefType() 470protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 475protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 480protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) 574else if (memberInfo is Type) 576isPublic = (memberInfo as Type).IsPublic || (memberInfo as Type).IsNestedPublic; 709private Type[] parameters = null; 710private Type returnType = null; 718List<Type> typeCollection = new List<Type>(); 736List<Type> typeCollection = new List<Type>(); 752internal MemberSignature(string name, Type[] parameters, Type returnType) 758this.parameters = (Type[])parameters.Clone(); 770public Type[] Parameters 779return (Type[])parameters.Clone(); 783public Type ReturnType
System\Workflow\Activities\Design\ListItemDetailViewAttribute.cs (3)
14private Type viewType; 16public ListItemDetailViewAttribute(Type viewType) 21public Type ViewType
System\Workflow\Activities\Design\ListItemViewAttribute.cs (3)
14private Type viewType; 16public ListItemViewAttribute(Type viewType) 21public Type ViewType
System\Workflow\Activities\Design\OperationPickerDialog.cs (9)
182private List<MethodInfo> GetMethodsFromInterface(Type serviceContractInterfaceType) 185Queue<Type> interfacesQueue = new Queue<Type>(); 186List<Type> interfacesList = new List<Type>(); 191Type currentInterfaceType = interfacesQueue.Dequeue(); 193foreach (Type baseInteface in currentInterfaceType.GetInterfaces()) 205private void ImportContract(Type serviceContractType) 521bool ITypeFilterProvider.CanFilterType(Type type, bool throwOnError)
System\Workflow\Activities\Design\RichListBox.cs (8)
57public static Type GetDetailViewType(Type editableListItemType) 67Type viewType = null; 81public static Type GetItemViewType(Type editableListItemType) 91Type viewType = null; 225Type viewType = GetItemViewType(listItem.GetType()); 237Type viewType = GetItemViewType(listItem.GetType());
System\Workflow\Activities\Design\ServiceContractListItem.cs (2)
19Type contractType; 37public Type ContractType
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (15)
122internal static string GetTypeSignature(Type type) 141Type[] argumentTypes = type.GetGenericArguments(); 144Type argumentType = argumentTypes[index]; 192void AddToTypeList(Type type) 489Type paramType; 490Type returnType = typeof(void); 720operationParameterInfo.ParameterType = typeCell as Type; 800public static bool IsValidType(Type type) 830bool ITypeFilterProvider.CanFilterType(Type type, bool throwOnError) 840static bool IsExemptType(Type type) 851private Type type; 853public TypeCellItem(Type type) 866public virtual Type Type 875private Type chosenType = null; 885public Type ChosenType
System\Workflow\Activities\Design\ServiceOperationUIEditor.cs (1)
32Type allowedActivityType = null;
System\Workflow\Activities\DynamicContractTypeBuilder.cs (1)
29public static Type GetContractType(OperationInfo operationInfo, ReceiveActivity contextActivity)
System\Workflow\Activities\LogicalChannel.cs (3)
28Type contractType = null; 40public LogicalChannel(string name, Type contractType) 79public Type ContractType
System\Workflow\Activities\OperationInfo.cs (3)
206protected internal override Type GetContractType(IServiceProvider provider) 208Type contractType = DynamicContractTypeBuilder.GetContractType(this, this.ParentDependencyObject as ReceiveActivity); 279Type type = this.GetContractType(provider);
System\Workflow\Activities\OperationInfoBase.cs (1)
118internal protected abstract Type GetContractType(IServiceProvider provider);
System\Workflow\Activities\OperationParameterInfo.cs (3)
39typeof(Type), typeof(OperationParameterInfo), 136public Type ParameterType 140return (Type) GetValue(ParameterTypeProperty);
System\Workflow\Activities\ReceiveActivity.cs (8)
667Type contractType = serviceOperationInfo.GetContractType(((IComponent)this).Site); 669List<Type> interfaces = ServiceOperationHelpers.GetContracts(contractType); 672Type interfaceType = interfaces[i]; 702Type operationDeclaringType = null; 712KeyValuePair<Type, string> operationKey = 713new KeyValuePair<Type, string>(operationDeclaringType, serviceOperationInfo.Name); 1361IDictionary<int, Type> notNullableParameters; 1371notNullableParameters = new Dictionary<int, Type>();
System\Workflow\Activities\SendActivity.cs (4)
267Type contractType) 288Type contractType) 315Type contractType, 337Type contractType,
System\Workflow\Activities\ServiceOperationHelpers.cs (11)
125public static bool IsNullableType(Type type) 130public static bool IsValidServiceContract(Type contractType) 182internal static List<Type> GetContracts(Type contractType) 184List<Type> types = new List<Type>(); 189foreach (Type contract in contractType.GetInterfaces()) 211internal static object[] GetCustomAttributes(Type attributeType, Attribute[] attributes) 242internal static bool IsDefined(Type attributeType, 287KeyValuePair<Type, string> operationKey = 288new KeyValuePair<Type, string>(opDescription.DeclaringContract.ContractType, opDescription.Name);
System\Workflow\Activities\ServiceOperationInfoTypeConverter.cs (3)
17public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 22public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 33object value, Type destinationType)
System\Workflow\Activities\TypedOperationInfo.cs (10)
25typeof(Type), typeof(TypedOperationInfo), 32public TypedOperationInfo(Type contractType, string operationName) 48public Type ContractType 50get { return (Type) this.GetValue(TypedOperationInfo.ContractTypeProperty); } 112internal protected override Type GetContractType(IServiceProvider provider) 126Type contractType = this.ContractType; 134Type currentDesignTimeType = typeProvider.GetType(contractType.AssemblyQualifiedName); 194Type type = this.GetContractType(provider); 285MethodInfo InternalGetMethodInfo(IServiceProvider provider, Type contractType) 333foreach (Type parentContract in contractType.GetInterfaces())
System\Workflow\Activities\ValidationHelper.cs (17)
178Dictionary<Type, Hashtable> implementedServiceOperations = new Dictionary<Type, Hashtable>(); 184Type contractType = serviceOperation.GetContractType(manager); 227Dictionary<Type, bool> checkedContracts = new Dictionary<Type, bool>(); 228Dictionary<Type, Hashtable> notImplementedServiceOperations = new Dictionary<Type, Hashtable>(); 230foreach (Type contractType in implementedServiceOperations.Keys) 232Queue<Type> interfacesQueue = new Queue<Type>(); 233List<Type> contractList = new List<Type>(); 239Type currentInterfaceType = interfacesQueue.Dequeue(); 246foreach (Type baseInteface in currentInterfaceType.GetInterfaces()) 255foreach (Type currentContractType in contractList) 734Type contractType = operationInfo.GetContractType(manager); 989Type contractType,
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (1)
30public object GetService(Type serviceType)
System\Workflow\ComponentModel\Design\FindSimilarActivitiesVerb.cs (1)
65private object GetService(Type serviceType)
System\Workflow\Runtime\CompiledWorkflowDefinitionContext.cs (3)
13static Type activityType = typeof(Activity); 16Type workflowType; 18internal CompiledWorkflowDefinitionContext(Type workflowType)
System\Workflow\Runtime\Hosting\ChannelManager.cs (7)
125public PooledChannel TakeChannel(string endpointName, Type contractType, string customAddress, out ChannelPoolKey key) 136this.endpointMappings[cacheAddress] = new KeyValuePair<string, Type>(endpointName, contractType); 208KeyValuePair<string, Type> endpointData; 212endpointData = (KeyValuePair<string, Type>) this.endpointMappings[address]; 289Type contractType; 293public ChannelFactoryReference(ChannelFactory channelFactory, Type contractType) 314public Type ContractType
System\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (16)
25public static EndpointAddress BuildCacheAddress(string endpointName, Type contractType) 96public static IChannel CreateChannel(Type contractType, ChannelFactory factory, string customAddress) 158public static ChannelFactory CreateChannelFactory(string endpointName, Type contractType) 163public static ChannelFactory CreateChannelFactory(string endpointName, Type contractType, IDictionary<EndpointAddress, ServiceEndpoint> codeEndpoints) 181Type channelFactoryType = contractInfo.ChannelFactoryType; 223public static bool IsEndpointDefinedInConfiguration(string endpointName, Type contractType) 250public static bool IsSessionlessContract(Type contractType) 255static ContractInfo GetContractInfo(Type contractType) 276Type channelFactoryType; 277Type contractType; 282public ContractInfo(Type contractType) 286Type[] typeArguments = new Type[] { contractType }; 289this.createChannelMethodInfo = this.channelFactoryType.GetMethod("CreateChannel", new Type[0] { }); 290this.createChannelWithCustomAddressMethodInfo = this.channelFactoryType.GetMethod("CreateChannel", new Type[1] { typeof(EndpointAddress) }); 295public Type ChannelFactoryType
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (1)
296Type contractType = logicalChannel.ContractType;
System\Workflow\Runtime\WorkflowDefinitionContext.cs (1)
66Type companionType = rootActivity.GetType();
System.Xaml.Hosting (20)
System\Xaml\Hosting\Configuration\HandlerElement.cs (6)
17Type httpHandlerCLRType; 19Type xamlRootElementClrType; 97internal Type LoadHttpHandlerType() 101this.httpHandlerCLRType = Type.GetType(HttpHandlerType, true); 107internal Type LoadXamlRootElementType() 111this.xamlRootElementClrType = Type.GetType(XamlRootElementType, true);
System\Xaml\Hosting\Configuration\HandlerElementCollection.cs (2)
102internal bool TryGetHttpHandlerType(Type hostedXamlType, out Type httpHandlerType)
System\Xaml\Hosting\Configuration\XamlHostingConfiguration.cs (2)
21internal static bool TryGetHttpHandlerType(string virtualPath, Type hostedXamlType, out Type httpHandlerType)
System\Xaml\Hosting\IXamlBuildProviderExtension.cs (1)
15Type GetGeneratedType(CompilerResults results);
System\Xaml\Hosting\XamlBuildProvider.cs (3)
50public override Type GetGeneratedType(CompilerResults results) 54Type result = this.xamlBuildProviderExtension.GetGeneratedType(results); 156Type httpHandlerType;
System\Xaml\Hosting\XamlHttpHandlerFactory.cs (6)
47static object CreateInstance(Type type) 163Type hostedXamlType; 201Type GetCompiledCustomString(string normalizedVirtualPath) 238Type httpHandlerType; 302else if (this.cachedResult is Type) 304return (IHttpHandler)CreateInstance((Type)this.cachedResult);
System.Xml (1013)
parent\parent\parent\parent\InternalApis\Clr\inc\LocalAppContext.cs (2)
86Type appContextType = typeof(object).Assembly.GetType("System.AppContext"); 94new Type[] { typeof(string), typeof(bool).MakeByRefType() },
System\Xml\BinaryXml\XmlBinaryReader.cs (16)
20internal static readonly Type TypeOfObject = typeof(System.Object); 21internal static readonly Type TypeOfString = typeof(System.String); 23static volatile Type[] TokenTypeMap = null; 287System.Type valueType; 566public override System.Type ValueType { 1558public override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) { 2886Type[] map = new Type[256]; 2898Type TypeOfInt32 = typeof(System.Int32); 2901Type TypeOfDecimal = typeof(System.Decimal); 2907Type TypeOfDateTime = typeof(System.DateTime); 2916Type TypeOfDateTimeOffset = typeof( System.DateTimeOffset ); 2920Type TypeOfByteArray = typeof( System.Byte[] ); 2938System.Type GetValueType(BinXmlToken token) { 2939Type t = TokenTypeMap[(int)token]; 3726object ValueAs(BinXmlToken token, Type returnType, IXmlNamespaceResolver namespaceResolver) {
System\Xml\BinaryXml\XmlBinaryReaderAsync.cs (2)
34public override Task<object> ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 50public override Task<object> ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) {
System\Xml\Core\BinaryCompatibility.cs (1)
18Type binaryCompatabilityType;
System\Xml\Core\XmlAsyncCheckReader.cs (6)
184public override System.Type ValueType { 236public override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) { 336public override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) { 341public override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver, string localName, string namespaceURI) { 681public override Task<object> ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 702public override Task<object> ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) {
System\Xml\Core\XmlReader.cs (4)
194public virtual System.Type ValueType { 332public virtual object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) { 510public virtual object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) { 525public virtual object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver, string localName, string namespaceURI) {
System\Xml\Core\XmlReaderAsync.cs (2)
52public virtual async Task< object > ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 99public virtual async Task< object > ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) {
System\Xml\Core\XmlSubtreeReader.cs (1)
658public override object ReadContentAs( Type returnType, IXmlNamespaceResolver namespaceResolver ) {
System\Xml\Core\XmlSubtreeReaderAsync.cs (1)
188public override async Task< object > ReadContentAsAsync( Type returnType, IXmlNamespaceResolver namespaceResolver ) {
System\Xml\Core\XmlWrappingReader.cs (1)
51public override System.Type ValueType { get { return reader.ValueType; } }
System\Xml\Core\XsdValidatingReader.cs (4)
126static volatile Type TypeOfString; 351public override System.Type ValueType { 582public override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) { 841public override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) {
System\Xml\Core\XsdValidatingReaderAsync.cs (2)
61public override async Task< object > ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) { 138public override async Task< object > ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver) {
System\Xml\Resolvers\XmlPreloadedResolver.cs (4)
41internal virtual bool SupportsType(Type type) { 104internal override bool SupportsType(Type type) { 200public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) { 234public override bool SupportsType(Uri absoluteUri, Type type) {
System\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
23Type ofObjectToReturn) {
System\Xml\Schema\DataTypeImplementation.cs (103)
386Type derivedType = this.GetType(); 387Type baseType = datatype.GetType(); 435public override Type ValueType { get { return typeof(string); }} 471internal abstract Type ListValueType { get; } 477internal override object ParseValue(string s, Type typDest, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr) { 905public override Type ValueType { get { return ListValueType; }} 909internal override Type ListValueType { get { return itemType.ListValueType; }} 1044static readonly Type atomicValueType = typeof(object); 1045static readonly Type listValueType = typeof(object[]); 1073public override Type ValueType { get { return atomicValueType; }} 1079internal override Type ListValueType { get { return listValueType; }} 1201static readonly Type atomicValueType = typeof(string); 1202static readonly Type listValueType = typeof(string[]); 1210public override Type ValueType { get { return atomicValueType; }} 1214internal override Type ListValueType { get { return listValueType; }} 1341static readonly Type atomicValueType = typeof(bool); 1342static readonly Type listValueType = typeof(bool[]); 1352public override Type ValueType { get { return atomicValueType; }} 1354internal override Type ListValueType { get { return listValueType; }} 1415static readonly Type atomicValueType = typeof(float); 1416static readonly Type listValueType = typeof(float[]); 1426public override Type ValueType { get { return atomicValueType; }} 1428internal override Type ListValueType { get { return listValueType; }} 1498static readonly Type atomicValueType = typeof(double); 1499static readonly Type listValueType = typeof(double[]); 1509public override Type ValueType { get { return atomicValueType; }} 1511internal override Type ListValueType { get { return listValueType; }} 1583static readonly Type atomicValueType = typeof(decimal); 1584static readonly Type listValueType = typeof(decimal[]); 1595public override Type ValueType { get { return atomicValueType; }} 1597internal override Type ListValueType { get { return listValueType; }} 1670static readonly Type atomicValueType = typeof(TimeSpan); 1671static readonly Type listValueType = typeof(TimeSpan[]); 1681public override Type ValueType { get { return atomicValueType; }} 1683internal override Type ListValueType { get { return listValueType; }} 1806static readonly Type atomicValueType = typeof(DateTime); 1807static readonly Type listValueType = typeof(DateTime[]); 1825public override Type ValueType { get { return atomicValueType; }} 1827internal override Type ListValueType { get { return listValueType; }} 2185static readonly Type atomicValueType = typeof(byte[]); 2186static readonly Type listValueType = typeof(byte[][]); 2196public override Type ValueType { get { return atomicValueType; }} 2198internal override Type ListValueType { get { return listValueType; }} 2277static readonly Type atomicValueType = typeof(byte[]); 2278static readonly Type listValueType = typeof(byte[][]); 2288public override Type ValueType { get { return atomicValueType; }} 2290internal override Type ListValueType { get { return listValueType; }} 2368static readonly Type atomicValueType = typeof(Uri); 2369static readonly Type listValueType = typeof(Uri[]); 2379public override Type ValueType { get { return atomicValueType; }} 2386internal override Type ListValueType { get { return listValueType; }} 2456static readonly Type atomicValueType = typeof(XmlQualifiedName); 2457static readonly Type listValueType = typeof(XmlQualifiedName[]); 2480public override Type ValueType { get { return atomicValueType; }} 2482internal override Type ListValueType { get { return listValueType; }} 2773static readonly Type atomicValueType = typeof(XmlQualifiedName); 2774static readonly Type listValueType = typeof(XmlQualifiedName[]); 2797public override Type ValueType { get { return atomicValueType; }} 2799internal override Type ListValueType { get { return listValueType; }} 2961static readonly Type atomicValueType = typeof(long); 2962static readonly Type listValueType = typeof(long[]); 2979public override Type ValueType { get { return atomicValueType; }} 2981internal override Type ListValueType { get { return listValueType; }} 3020static readonly Type atomicValueType = typeof(int); 3021static readonly Type listValueType = typeof(int[]); 3032public override Type ValueType { get { return atomicValueType; }} 3034internal override Type ListValueType { get { return listValueType; }} 3074static readonly Type atomicValueType = typeof(short); 3075static readonly Type listValueType = typeof(short[]); 3086public override Type ValueType { get { return atomicValueType; }} 3088internal override Type ListValueType { get { return listValueType; }} 3127static readonly Type atomicValueType = typeof(sbyte); 3128static readonly Type listValueType = typeof(sbyte[]); 3139public override Type ValueType { get { return atomicValueType; }} 3141internal override Type ListValueType { get { return listValueType; }} 3209static readonly Type atomicValueType = typeof(ulong); 3210static readonly Type listValueType = typeof(ulong[]); 3221public override Type ValueType { get { return atomicValueType; }} 3223internal override Type ListValueType { get { return listValueType; }} 3262static readonly Type atomicValueType = typeof(uint); 3263static readonly Type listValueType = typeof(uint[]); 3274public override Type ValueType { get { return atomicValueType; }} 3276internal override Type ListValueType { get { return listValueType; }} 3315static readonly Type atomicValueType = typeof(ushort); 3316static readonly Type listValueType = typeof(ushort[]); 3327public override Type ValueType { get { return atomicValueType; }} 3329internal override Type ListValueType { get { return listValueType; }} 3367static readonly Type atomicValueType = typeof(byte); 3368static readonly Type listValueType = typeof(byte[]); 3379public override Type ValueType { get { return atomicValueType; }} 3381internal override Type ListValueType { get { return listValueType; }} 3462static readonly Type atomicValueType = typeof(XmlQualifiedName); 3463static readonly Type listValueType = typeof(XmlQualifiedName[]); 3486public override Type ValueType { get { return atomicValueType; }} 3488internal override Type ListValueType { get { return listValueType; }} 3496static readonly Type atomicValueType = typeof(char); 3497static readonly Type listValueType = typeof(char[]); 3499public override Type ValueType { get { return atomicValueType; }} 3501internal override Type ListValueType { get { return listValueType; }} 3585static readonly Type atomicValueType = typeof(Guid); 3586static readonly Type listValueType = typeof(Guid[]); 3588public override Type ValueType { get { return atomicValueType; }} 3590internal override Type ListValueType { get { return listValueType; }}
System\Xml\Schema\Preprocessor.cs (1)
311Type returnType = obj.GetType();
System\Xml\Schema\XmlAtomicValue.cs (2)
175public override Type ValueType { 293public override object ValueAs(Type type, IXmlNamespaceResolver nsResolver) {
System\Xml\Schema\XmlSchemaDataType.cs (5)
27public abstract Type ValueType { get; } 52public virtual object ChangeType(object value, Type targetType) { 66public virtual object ChangeType(object value, Type targetType, IXmlNamespaceResolver namespaceResolver) { 103internal abstract object ParseValue(string s, Type typDest, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr); 254Type t = value.GetType();
System\Xml\Schema\XmlValueConverter.cs (167)
259public abstract object ChangeType(bool value, Type destinationType); 260public abstract object ChangeType(int value, Type destinationType); 261public abstract object ChangeType(long value, Type destinationType); 262public abstract object ChangeType(decimal value, Type destinationType); 263public abstract object ChangeType(float value, Type destinationType); 264public abstract object ChangeType(double value, Type destinationType); 265public abstract object ChangeType(DateTime value, Type destinationType); 266public abstract object ChangeType(DateTimeOffset value, Type destinationType); 267public abstract object ChangeType(string value, Type destinationType); 268public abstract object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver); 269public abstract object ChangeType(object value, Type destinationType); 270public abstract object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver); 276private Type clrTypeDefault; 325protected XmlBaseConverter(XmlBaseConverter converterAtomic, Type clrTypeDefault) { 331protected static readonly Type ICollectionType = typeof(ICollection); 332protected static readonly Type IEnumerableType = typeof(IEnumerable); 333protected static readonly Type IListType = typeof(IList); 334protected static readonly Type ObjectArrayType = typeof(object[]); 335protected static readonly Type StringArrayType = typeof(string[]); 336protected static readonly Type XmlAtomicValueArrayType = typeof(XmlAtomicValue[]); 339protected static readonly Type DecimalType = typeof(decimal); 340protected static readonly Type Int32Type = typeof(int); 341protected static readonly Type Int64Type = typeof(long); 342protected static readonly Type StringType = typeof(string); 343protected static readonly Type XmlAtomicValueType = typeof(XmlAtomicValue); 344protected static readonly Type ObjectType = typeof(object); 345protected static readonly Type ByteType = typeof(byte); 346protected static readonly Type Int16Type = typeof(short); 347protected static readonly Type SByteType = typeof(sbyte); 348protected static readonly Type UInt16Type = typeof(ushort); 349protected static readonly Type UInt32Type = typeof(uint); 350protected static readonly Type UInt64Type = typeof(ulong); 351protected static readonly Type XPathItemType = typeof(XPathItem); 352protected static readonly Type DoubleType = typeof(double); 353protected static readonly Type SingleType = typeof(float); 354protected static readonly Type DateTimeType = typeof(DateTime); 355protected static readonly Type DateTimeOffsetType = typeof(DateTimeOffset); 356protected static readonly Type BooleanType = typeof(bool); 357protected static readonly Type ByteArrayType = typeof(Byte[]); 358protected static readonly Type XmlQualifiedNameType = typeof(XmlQualifiedName); 359protected static readonly Type UriType = typeof(Uri); 360protected static readonly Type TimeSpanType = typeof(TimeSpan); 361protected static readonly Type XPathNavigatorType = typeof(XPathNavigator); 464public override object ChangeType(bool value, Type destinationType) {return (object) ChangeType((object) value, destinationType, null); } 465public override object ChangeType(DateTime value, Type destinationType) {return (object) ChangeType((object) value, destinationType, null); } 466public override object ChangeType(DateTimeOffset value, Type destinationType) {return (object) ChangeType((object) value, destinationType, null); } 467public override object ChangeType(decimal value, Type destinationType) {return (object) ChangeType((object) value, destinationType, null); } 468public override object ChangeType(double value, Type destinationType) {return (object) ChangeType((object) value, destinationType, null); } 469public override object ChangeType(int value, Type destinationType) {return (object) ChangeType((object) value, destinationType, null); } 470public override object ChangeType(long value, Type destinationType) {return (object) ChangeType((object) value, destinationType, null); } 471public override object ChangeType(float value, Type destinationType) {return (object) ChangeType((object) value, destinationType, null); } 472public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) {return (object) ChangeType((object) value, destinationType, nsResolver); } 473public override object ChangeType(string value, Type destinationType) {return this.ChangeType(value, destinationType, null); } 474public override object ChangeType(object value, Type destinationType) {return this.ChangeType(value, destinationType, null); } 520protected Type DefaultClrType { 527protected static bool IsDerivedFrom(Type derivedType, Type baseType) { 541protected Exception CreateInvalidClrMappingException(Type sourceType, Type destinationType) { 572protected virtual object ChangeListType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 927Type sourceType = value.GetType(); 968Type sourceType = value.GetType(); 1002Type sourceType = value.GetType(); 1043Type sourceType = value.GetType(); 1059public override object ChangeType(decimal value, Type destinationType) { 1073public override object ChangeType(int value, Type destinationType) { 1087public override object ChangeType(long value, Type destinationType) { 1101public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1116public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1120Type sourceType = value.GetType(); 1162private object ChangeTypeWildcardDestination(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1163Type sourceType = value.GetType(); 1174private object ChangeTypeWildcardSource(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1237Type sourceType = value.GetType(); 1281Type sourceType = value.GetType(); 1312Type sourceType = value.GetType(); 1327public override object ChangeType(double value, Type destinationType) { 1340public override object ChangeType(float value, Type destinationType) { 1353public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1367public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1371Type sourceType = value.GetType(); 1441Type sourceType = value.GetType(); 1481Type sourceType = value.GetType(); 1564Type sourceType = value.GetType(); 1579public override object ChangeType(DateTime value, Type destinationType) { 1592public override object ChangeType(DateTimeOffset value, Type destinationType) { 1605public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1619public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1623Type sourceType = value.GetType(); 1672Type sourceType = value.GetType(); 1739Type sourceType = value.GetType(); 1753public override object ChangeType(bool value, Type destinationType) { 1765public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1778public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1782Type sourceType = value.GetType(); 1874Type sourceType = value.GetType(); 1906public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1937public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 1941Type sourceType = value.GetType(); 2031private object ChangeTypeWildcardDestination(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2032Type sourceType = value.GetType(); 2038private object ChangeTypeWildcardSource(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2117Type sourceType = value.GetType(); 2130public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2142public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2146Type sourceType = value.GetType(); 2192Type sourceType = value.GetType(); 2212Type sourceType = value.GetType(); 2232Type sourceType = value.GetType(); 2251Type sourceType = value.GetType(); 2271Type sourceType = value.GetType(); 2291Type sourceType = value.GetType(); 2311Type sourceType = value.GetType(); 2331Type sourceType = value.GetType(); 2375Type sourceType = value.GetType(); 2406public override object ChangeType(bool value, Type destinationType) { 2415public override object ChangeType(DateTime value, Type destinationType) { 2424public override object ChangeType(DateTimeOffset value, Type destinationType) { 2433public override object ChangeType(decimal value, Type destinationType) { 2442public override object ChangeType(double value, Type destinationType) { 2451public override object ChangeType(int value, Type destinationType) { 2460public override object ChangeType(long value, Type destinationType) { 2469public override object ChangeType(float value, Type destinationType) { 2478public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2508public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2512Type sourceType = value.GetType(); 2590private object ChangeTypeWildcardDestination(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2591Type sourceType = value.GetType(); 2597private object ChangeTypeWildcardSource(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2610protected override object ChangeListType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2611Type sourceType = value.GetType(); 2628private bool SupportsType(Type clrType) { 2720public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2724Type sourceType = value.GetType(); 2755Type sourceType = value.GetType(); 2770Type sourceType = value.GetType(); 2784Type sourceType = value.GetType(); 2799Type sourceType = value.GetType(); 2814Type sourceType = value.GetType(); 2829Type sourceType = value.GetType(); 2844Type sourceType = value.GetType(); 2859Type sourceType = value.GetType(); 2878public override object ChangeType(bool value, Type destinationType) { 2887public override object ChangeType(DateTime value, Type destinationType) { 2896public override object ChangeType(DateTimeOffset value, Type destinationType) { 2905public override object ChangeType(decimal value, Type destinationType) { 2914public override object ChangeType(double value, Type destinationType) { 2923public override object ChangeType(int value, Type destinationType) { 2932public override object ChangeType(long value, Type destinationType) { 2941public override object ChangeType(float value, Type destinationType) { 2950public override object ChangeType(string value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2960public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 2964Type sourceType = value.GetType(); 3031private object ChangeTypeWildcardDestination(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 3032Type sourceType = value.GetType(); 3038private object ChangeTypeWildcardSource(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 3068public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 3089protected XmlListConverter(XmlBaseConverter atomicConverter, Type clrTypeDefault) : base(atomicConverter, clrTypeDefault) { 3117public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 3129protected override object ChangeListType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 3130Type sourceType = value.GetType(); 3155Type itemTypeDst = destinationType.GetElementType(); 3205private bool IsListType(Type type) { 3299private new Exception CreateInvalidClrMappingException(Type sourceType, Type destinationType) { 3341public override object ChangeType(object value, Type destinationType, IXmlNamespaceResolver nsResolver) { 3345Type sourceType = value.GetType();
System\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
63public int Add(string name, Type type) {
System\Xml\Serialization\CodeExporter.cs (7)
116internal static CodeAttributeDeclaration FindAttributeDeclaration(Type type, CodeAttributeDeclarationCollection metadata) { 165internal void ExportRoot(StructMapping mapping, Type includeType) { 213internal CodeTypeDeclaration ExportEnum(EnumMapping mapping, Type type) { 235internal void AddTypeMetadata(CodeAttributeDeclarationCollection metadata, Type type, string defaultName, string name, string ns, bool includeInSchema) { 256internal static void AddIncludeMetadata(CodeAttributeDeclarationCollection metadata, StructMapping mapping, Type type) { 267internal static void ExportConstant(CodeTypeDeclaration codeClass, ConstantMapping constant, Type type, bool init, long enumValue) { 280internal static object PromoteType(Type type, object value) {
System\Xml\Serialization\CodeGenerator.cs (82)
44internal static Type[] EmptyTypeArray = new Type[] { }; 54Dictionary<Tuple<Type, string>, Queue<LocalBuilder>> freeLocals; 63internal static bool IsNullableGenericType(Type type) { 67internal static void AssertHasInterface(Type type, Type iType) { 78internal void BeginMethod(Type returnType, string methodName, Type[] argTypes, string[] argNames, MethodAttributes methodAttributes) { 84internal void BeginMethod(Type returnType, MethodBuilderInfo methodBuilderInfo, Type[] argTypes, string[] argNames, MethodAttributes methodAttributes) { 93void InitILGeneration(Type[] argTypes, string[] argNames, bool isStatic) { 99this.freeLocals = new Dictionary<Tuple<Type, string>, Queue<LocalBuilder>>(); 160Dictionary<Type, LocalBuilder> TmpLocals = new Dictionary<Type, LocalBuilder>(); 161internal LocalBuilder GetTempLocal(Type type) { 170internal Type GetVariableType(object var) { 227private bool TryDequeueLocal(Type type, string name, out LocalBuilder local) { 233Tuple<Type, string> key = new Tuple<Type, string>(type, name); 248internal LocalBuilder DeclareLocal(Type type, string name) { 260internal LocalBuilder DeclareOrGetLocal(Type type, string name) { 312Type varType = GetVariableType(forState.End); 518internal void BeginCatchBlock(Type exception) { 635internal void InitObj(Type valueType) { 639internal void NewArray(Type elementType, object len) { 652Type objType = GetVariableType(obj).GetElementType(); 664Type arrayType = GetVariableType(obj); 667Call(typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) })); 670Type objType = arrayType.GetElementType(); 684static bool IsStruct(Type objType) { 688internal Type LoadMember(object obj, MemberInfo memberInfo) { 699Type currentType = propertyInfo.DeclaringType.BaseType; 728internal Type LoadMember(MemberInfo memberInfo) { 729Type memberType = null; 760internal Type LoadMemberAddress(MemberInfo memberInfo) { 761Type memberType = null; 917internal void ConvertAddress(Type source, Type target) { 921internal void ConvertValue(Type source, Type target) { 925internal void Castclass(Type target) { 929internal void Box(Type type) { 933internal void Unbox(Type type) { 996internal void Ldobj(Type type) { 997OpCode opCode = GetLdindOpCode(Type.GetTypeCode(type)); 1006internal void Stobj(Type type) { 1039internal void Ldtoken(Type t) { 1044Type valueType = o.GetType(); 1045if (o is Type) { 1046Ldtoken((Type)o); 1047Call(typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(RuntimeTypeHandle) }, null)); 1053switch (Type.GetTypeCode(valueType)) { 1091new Type[] { typeof(Int32), typeof(Int32), typeof(Int32), typeof(Boolean), typeof(Byte) }, 1106new Type[] { typeof(Int64) }, 1121new Type[] { typeof(Int64) }, 1220internal void Stloc(Type type, string name) { 1233internal void Ldloc(Type type, string name) { 1433internal void Ldelem(Type arrayElementType) { 1438OpCode opCode = GetLdelemOpCode(Type.GetTypeCode(arrayElementType)); 1445internal void Ldelema(Type arrayElementType) { 1510internal void Stelem(Type arrayElementType) { 1514OpCode opCode = GetStelemOpCode(Type.GetTypeCode(arrayElementType)); 1680void InternalConvert(Type source, Type target, bool isAddress) { 1685OpCode opCode = GetConvOpCode(Type.GetTypeCode(target)); 1774static internal TypeBuilder CreateTypeBuilder(ModuleBuilder moduleBuilder, string name, TypeAttributes attributes, Type parent, Type[] interfaces) { 2103internal void IsInst(Type type) { 2448internal Type ArgType; 2449internal ArgBuilder(string name, int index, Type argType) { 2572public void AddToFreeLocals(Dictionary<Tuple<Type, string>, Queue<LocalBuilder>> freeLocals) { 2574Tuple<Type, string> key = new Tuple<Type, string>(item.Value.LocalType, item.Key); 2729public readonly Type[] ParameterTypes; 2730public MethodBuilderInfo(MethodBuilder methodBuilder, Type[] parameterTypes) { 2735public void Validate(Type returnType, Type[] parameterTypes, MethodAttributes attributes) { 2749private Type sourceType; 2750private Type targetType; 2754public CodeGeneratorConversionException(Type sourceType, Type targetType, bool isAddress, string reason)
System\Xml\Serialization\CodeIdentifier.cs (5)
160static int GetCSharpName(Type t, Type[] parameters, int index, StringBuilder sb) { 188internal static string GetCSharpName(Type t) { 205Type[] arguments = t.IsGenericType || t.ContainsGenericParameters ? t.GetGenericArguments() : new Type[0];
System\Xml\Serialization\CodeIdentifiers.cs (1)
163public object ToArray(Type type) {
System\Xml\Serialization\Compilation.cs (15)
53internal TempAssembly(XmlMapping[] xmlMappings, Type[] types, string defaultNamespace, string location, Evidence evidence) { 150internal static Assembly LoadGeneratedAssembly(Type type, string defaultNamespace, out XmlSerializerImplementation contract) { 231Type contractType = GetTypeFromAssembly(serializer, "XmlSerializerContract"); 258static bool IsSerializerVersionMatch(Assembly serializer, Type type, string defaultNamespace, string location) { 277static string GenerateAssemblyId(Type type) { 292internal static Assembly GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, string defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) { 305foreach (Type t in scope.Types) { 335Type type = types[i]; 415internal static Assembly GenerateRefEmitAssembly(XmlMapping[] xmlMappings, Type[] types, string defaultNamespace, Evidence evidence) { 441new Type[] { typeof(SecurityRuleSet) }, 451new Type[] { typeof(String) }, 483Type writerType = writerCodeGen.GenerateEnd(); 519static MethodInfo GetMethodFromType(Type type, string methodName, Assembly assembly) { 531internal static Type GetTypeFromAssembly(Assembly assembly, string typeName) { 533Type type = assembly.GetType(typeName);
System\Xml\Serialization\Compiler.cs (5)
46internal void AddImport(Type type, Hashtable types) { 54Type baseType = type.BaseType; 58Type declaringType = type.DeclaringType; 62foreach (Type intf in type.GetInterfaces()) 74Type[] arguments = type.GetGenericArguments();
System\Xml\Serialization\Configuration\SchemaImporterExtensionElement.cs (8)
31public SchemaImporterExtensionElement(string name, Type type) : this() 54public Type Type 72new ConfigurationProperty(ConfigurationStrings.Type, typeof(Type), null, 79this.type = Type.GetType(name, true, true); 83public TypeAndName(Type type) 98public readonly Type type; 103public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { 118public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) {
System\Xml\Serialization\Configuration\XmlSerializerSection.cs (1)
71public override bool CanValidate(Type type)
System\Xml\Serialization\ImportContext.cs (1)
287Type t = item.GetType();
System\Xml\Serialization\Mappings.cs (2)
933Type type; 1029internal Type Type {
System\Xml\Serialization\Models.cs (18)
33internal TypeModel GetTypeModel(Type type) { 37internal TypeModel GetTypeModel(Type type, bool directReference) { 69internal ArrayModel GetArrayModel(Type type) { 85Type type; 88protected TypeModel(Type type, TypeDesc typeDesc, ModelScope scope) { 94internal Type Type { 108internal ArrayModel(Type type, TypeDesc typeDesc, ModelScope scope) : base(type, typeDesc, scope) { } 116internal PrimitiveModel(Type type, TypeDesc typeDesc, ModelScope scope) : base(type, typeDesc, scope) { } 120internal SpecialModel(Type type, TypeDesc typeDesc, ModelScope scope) : base(type, typeDesc, scope) { } 125internal StructModel(Type type, TypeDesc typeDesc, ModelScope scope) : base(type, typeDesc, scope) { } 163void CheckSupportedMember(TypeDesc typeDesc, MemberInfo member, Type type) { 228Type fieldType; 232internal FieldModel(string name, Type fieldType, TypeDesc fieldTypeDesc, bool checkSpecified, bool checkShouldPersist) : 235internal FieldModel(string name, Type fieldType, TypeDesc fieldTypeDesc, bool checkSpecified, bool checkShouldPersist, bool readOnly) { 244internal FieldModel(MemberInfo memberInfo, Type fieldType, TypeDesc fieldTypeDesc) { 249this.checkShouldPersistMethodInfo = memberInfo.DeclaringType.GetMethod("ShouldSerialize" + memberInfo.Name, new Type[0]); 285internal Type FieldType { 345internal EnumModel(Type type, TypeDesc typeDesc, ModelScope scope) : base(type, typeDesc, scope) { }
System\Xml\Serialization\NameTable.cs (1)
75internal Array ToArray(Type type) {
System\Xml\Serialization\SchemaImporter.cs (1)
138internal void MakeDerived(StructMapping structMapping, Type baseType, bool baseTypeCanBeIndirect) {
System\Xml\Serialization\SchemaObjectWriter.cs (7)
280System.Type t = o.GetType(); 809System.Type t = o.GetType(); 859System.Type t = o.GetType(); 878System.Type t = o.GetType(); 905System.Type t = o.GetType(); 927System.Type t = o.GetType(); 946System.Type t = o.GetType();
System\Xml\Serialization\SoapAttributeOverrides.cs (4)
27public void Add(Type type, SoapAttributes attributes) { 35public void Add(Type type, string member, SoapAttributes attributes) { 51public SoapAttributes this[Type type] { 61public SoapAttributes this[Type type, string member] {
System\Xml\Serialization\SoapIncludeAttribute.cs (3)
18Type type; 24public SoapIncludeAttribute(Type type) { 32public Type Type {
System\Xml\Serialization\SoapReflectionImporter.cs (12)
87public void IncludeType(Type type) { 91void IncludeType(Type type, RecursionLimiter limiter) { 99public XmlTypeMapping ImportTypeMapping(Type type) { 107public XmlTypeMapping ImportTypeMapping(Type type, string defaultNamespace) { 167SoapAttributes GetAttributes(Type type) { 263NullableMapping CreateNullableMapping(TypeMapping baseMapping, Type type) { 633Type accessorType = model.FieldType; 701internal string XsdTypeName(Type type) { 708internal string XsdTypeName(Type type, SoapAttributes a, string name) { 714Type genType = type.GetGenericTypeDefinition(); 715Type[] names = genType.GetGenericArguments(); 716Type[] types = type.GetGenericArguments();
System\Xml\Serialization\SoapSchemaImporter.cs (2)
60public XmlTypeMapping ImportDerivedTypeMapping(XmlQualifiedName name, Type baseType, bool baseTypeCanBeIndirect) 124public XmlMembersMapping ImportMembersMapping(string name, string ns, SoapSchemaMember[] members, bool hasWrapperElement, Type baseType, bool baseTypeCanBeIndirect) {
System\Xml\Serialization\SourceInfo.cs (16)
31new Type[] { typeof(Int32) }, 39public readonly Type Type; 42public SourceInfo(string source, string arg, MemberInfo memberInfo, Type type, CodeGenerator ilg) { 54public void LoadAddress(Type elementType) { 58public void Load(Type elementType) { 62private void InternalLoad(Type elementType, bool asAddress = false) { 66Type varType = ILG.GetVariableType(varA); 71Type eType = varType.GetElementType(); 96new Type[] { typeof(Int32) }, 107Type eType = get_Item.ReturnType; 127Type varType; 155Type memberType = (MemberInfo is FieldInfo) ? 182private void Convert(Type sourceType, Type targetType, bool asAddress) { 191private void ConvertNullableValue(Type nullableType, Type targetType) {
System\Xml\Serialization\TypeExtensions.cs (2)
13public static bool TryConvertTo(this Type targetType, object data, out object returnValue) { 24Type sourceType = data.GetType();
System\Xml\Serialization\Types.cs (44)
82Type type; 117internal TypeDesc(Type type, bool isXsdType, XmlSchemaType dataType, string formatterName, TypeFlags flags) 122internal TypeDesc(Type type, string name, string fullName, TypeKind kind, TypeDesc baseTypeDesc, TypeFlags flags, TypeDesc arrayElementTypeDesc) 170internal Type Type { 316internal TypeDesc GetNullableTypeDesc(Type type) { 504internal static bool IsKnownType(Type type) { 509switch (Type.GetTypeCode(type)) { 580static void AddPrimitive(Type type, string dataTypeName, string formatterName, TypeFlags flags) { 590static void AddNonXsdPrimitive(Type type, string dataTypeName, string ns, string formatterName, XmlQualifiedName baseTypeName, XmlSchemaFacet[] facets, TypeFlags flags) { 606static void AddSoapEncodedPrimitive(Type type, string dataTypeName, string ns, string formatterName, XmlQualifiedName baseTypeName, TypeFlags flags) { 628internal TypeDesc GetTypeDesc(Type type) { 632internal TypeDesc GetTypeDesc(Type type, MemberInfo source) { 636internal TypeDesc GetTypeDesc(Type type, MemberInfo source, bool directReference) { 640internal TypeDesc GetTypeDesc(Type type, MemberInfo source, bool directReference, bool throwOnError) { 658internal TypeDesc GetArrayTypeDesc(Type type) { 678internal Type GetTypeFromTypeDesc(TypeDesc typeDesc) { 683return de.Key as Type; 688TypeDesc ImportTypeDesc(Type type, MemberInfo memberInfo, bool directReference) { 691Type arrayElementType = null; 692Type baseType = null; 854for (Type t = type.DeclaringType; t != null && !t.ContainsGenericParameters && !(t.IsAbstract && t.IsSealed); t = t.DeclaringType) 860private static bool IsArraySegment(Type t) { 864internal static bool IsOptionalValue(Type type) { 881internal static string TypeName(Type t) { 895Type[] arguments = t.GetGenericArguments(); 912internal static Type GetArrayElementType(Type type, string memberInfo) { 1046static bool ShouldBeReplaced(MemberInfo memberInfoToBeReplaced, Type derivedType, out MemberInfo replacedInfo) 1049Type currentType = derivedType; 1050Type typeToBeReplaced = memberInfoToBeReplaced.DeclaringType; 1091static TypeFlags GetConstructorFlags(Type type, ref Exception exception) { 1092ConstructorInfo ctor = type.GetConstructor(BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic, null, new Type[0], null); 1111static Type GetEnumeratorElementType(Type type, ref TypeFlags flags) { 1113MethodInfo enumerator = type.GetMethod("GetEnumerator", new Type[0]); 1132enumerator = type.GetMethod("System.Collections.IEnumerable.GetEnumerator", BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic, null, new Type[0], null); 1142Type currentType = (p == null ? typeof(object) : p.PropertyType); 1144MethodInfo addMethod = type.GetMethod("Add", new Type[] { currentType }); 1148addMethod = type.GetMethod("Add", new Type[] { currentType }); 1160internal static PropertyInfo GetDefaultIndexer(Type type, string memberInfo) { 1173for (Type t = type; t != null; t = t.BaseType) { 1193MethodInfo addMethod = type.GetMethod("Add", new Type[] { indexer.PropertyType }); 1199static Type GetCollectionElementType(Type type, string memberInfo) {
System\Xml\Serialization\XmlArrayItemAttribute.cs (4)
20Type type; 47public XmlArrayItemAttribute(Type type) { 55public XmlArrayItemAttribute(string elementName, Type type) { 64public Type Type {
System\Xml\Serialization\XmlAttributeAttribute.cs (4)
20Type type; 44public XmlAttributeAttribute(Type type) { 52public XmlAttributeAttribute(string attributeName, Type type) { 61public Type Type {
System\Xml\Serialization\XmlAttributeOverrides.cs (4)
27public void Add(Type type, XmlAttributes attributes) { 35public void Add(Type type, string member, XmlAttributes attributes) { 51public XmlAttributes this[Type type] { 61public XmlAttributes this[Type type, string member] {
System\Xml\Serialization\XmlAttributes.cs (3)
48static volatile Type ignoreAttributeType; 77private static Type IgnoreAttribute { 171internal static object GetAttr(ICustomAttributeProvider provider, Type attrType) {
System\Xml\Serialization\XmlCodeExporter.cs (4)
196Type type = value.GetType(); 355Type formatter = typeof(XmlConvert); 357MethodInfo format = formatter.GetMethod("To" + pm.TypeDesc.FormatterName, new Type[] {typeof(string)}); 775void ExportMetadata(CodeAttributeDeclarationCollection metadata, Type attributeType, string name, string ns, TypeDesc typeDesc, TypeDesc dataTypeDesc, object isNullable, XmlSchemaForm form, int nestingLevel, int sequenceId) {
System\Xml\Serialization\XmlCountingReader.cs (4)
49public override Type ValueType { get { return innerReader.ValueType; } } 143public override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) 218public override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver) 223public override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver, string localName, string namespaceURI)
System\Xml\Serialization\Xmlcustomformatter.cs (1)
44Type type = value.GetType();
System\Xml\Serialization\XmlElementAttribute.cs (4)
19Type type; 46public XmlElementAttribute(Type type) { 54public XmlElementAttribute(string elementName, Type type) { 63public Type Type {
System\Xml\Serialization\XmlIncludeAttribute.cs (3)
18Type type; 24public XmlIncludeAttribute(Type type) { 32public Type Type {
System\Xml\Serialization\XmlMapping.cs (1)
106internal static string GenerateKey(Type type, XmlRootAttribute root, string ns) {
System\Xml\Serialization\XmlReflectionImporter.cs (43)
97Type type = ((XmlIncludeAttribute)attrs[i]).Type; 106public void IncludeType(Type type) { 110void IncludeType(Type type, RecursionLimiter limiter) { 132public XmlTypeMapping ImportTypeMapping(Type type) { 140public XmlTypeMapping ImportTypeMapping(Type type, string defaultNamespace) { 148public XmlTypeMapping ImportTypeMapping(Type type, XmlRootAttribute root) { 156public XmlTypeMapping ImportTypeMapping(Type type, XmlRootAttribute root, string defaultNamespace) { 219XmlAttributes GetAttributes(Type type, bool canBeSimpleType) { 423internal static MethodInfo GetMethodFromSchemaProvider(XmlSchemaProviderAttribute provider, Type type) { 434MethodInfo getMethod = getMethod = type.GetMethod(provider.MethodName, /* BindingFlags.DeclaredOnly | */ BindingFlags.Static | BindingFlags.Public, null, new Type[] {typeof(XmlSchemaSet)}, null); 444SpecialMapping ImportSpecialMapping(Type type, TypeDesc typeDesc, string ns, ImportContext context, RecursionLimiter limiter) { 552static Exception InvalidAttributeUseException(Type type) { 571NullableMapping CreateNullableMapping(TypeMapping baseMapping, Type type) { 627TypeMapping GetTypeMapping(string typeName, string ns, TypeDesc typeDesc, NameTable typeLib, Type type) { 835internal string XsdTypeName(Type type) { 843internal string XsdTypeName(Type type, XmlAttributes a, string name) { 849Type genType = type.GetGenericTypeDefinition(); 850Type[] names = genType.GetGenericArguments(); 851Type[] types = type.GetGenericArguments(); 874void SetArrayMappingType(ArrayMapping mapping, string defaultNs, Type type) { 1202Type choiceIdentifierType = null; 1228Type choiceIdentifierType = null; 1236Type CheckChoiceIdentifierType(Type type, bool isArrayLike, string identifierName, string memberName) { 1256Type GetChoiceIdentifierType(XmlChoiceIdentifierAttribute choice, XmlReflectionMember[] xmlReflectionMembers, bool isArrayLike, string accessorName) { 1266Type GetChoiceIdentifierType(XmlChoiceIdentifierAttribute choice, StructModel structModel, bool isArrayLike, string accessorName) { 1291Type enumType = member.FieldType; 1296void CreateArrayElementsFromAttributes(ArrayMapping arrayMapping, XmlArrayItemAttributes attributes, Type arrayElementType, string arrayElementNs, RecursionLimiter limiter) { 1303Type targetType = xmlArrayItem.Type != null ? xmlArrayItem.Type : arrayElementType; 1318void ImportAccessorMapping(MemberMapping accessor, FieldModel model, XmlAttributes a, string ns, Type choiceIdentifierType, bool rpc, bool openModel, RecursionLimiter limiter) { 1327Type accessorType = model.FieldType; 1357Type arrayElementType = TypeScope.GetArrayElementType(accessorType, model.FieldTypeDesc.FullName + "." + model.Name); 1380Type targetType = a.XmlAttribute.Type == null ? arrayElementType : a.XmlAttribute.Type; 1408Type targetType = a.XmlText.Type == null ? arrayElementType : a.XmlText.Type; 1422Type targetType = xmlElement.Type == null ? arrayElementType : xmlElement.Type; 1458Type targetType = typeof(IXmlSerializable).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlNode).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlElement); 1634Type targetType = xmlElement.Type == null ? accessorType : xmlElement.Type; 1670Type targetType = typeof(IXmlSerializable).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlNode).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlElement); 1803void CheckAmbiguousChoice(XmlAttributes a, Type accessorType, string accessorName) { 1809Type type = elements[i].Type == null ? accessorType : elements[i].Type; 1829Type type = items[i].Type == null ? accessorType : items[i].Type; 1858object GetDefaultValue(TypeDesc fieldTypeDesc, Type t, XmlAttributes a) { 1951internal static XmlTypeMapping GetTopLevelMapping(Type type, string defaultNamespace) {
System\Xml\Serialization\XmlReflectionMember.cs (2)
19Type type; 29public Type MemberType {
System\Xml\Serialization\XmlSchemaExporter.cs (2)
827Type formatter = typeof(XmlConvert); 828System.Reflection.MethodInfo format = formatter.GetMethod("ToString", new Type[] { pm.TypeDesc.Type });
System\Xml\Serialization\XmlSchemaImporter.cs (18)
70public XmlTypeMapping ImportDerivedTypeMapping(XmlQualifiedName name, Type baseType) { 90public XmlTypeMapping ImportDerivedTypeMapping(XmlQualifiedName name, Type baseType, bool baseTypeCanBeIndirect) { 123public XmlTypeMapping ImportSchemaType(XmlQualifiedName typeName, Type baseType) { 131public XmlTypeMapping ImportSchemaType(XmlQualifiedName typeName, Type baseType, bool baseTypeCanBeIndirect) { 227public XmlMembersMapping ImportMembersMapping(XmlQualifiedName[] names, Type baseType, bool baseTypeCanBeIndirect) { 274ElementAccessor ImportElement(XmlQualifiedName name, Type desiredMappingType, Type baseType) { 287ElementAccessor ImportElement(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns, bool topLevelElement) { 337TypeMapping ImportElementType(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns) { 463TypeMapping ImportType(XmlQualifiedName name, Type desiredMappingType, Type baseType, TypeFlags flags, bool addref) { 488TypeMapping ImportType(XmlSchemaComplexType type, string typeNs, string identifier, Type desiredMappingType, Type baseType, TypeFlags flags) { 528StructMapping ImportStructType(XmlSchemaType type, string typeNs, string identifier, Type baseType, bool arrayLike) { 622StructMapping ImportStructDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType) { 1540TypeMapping ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType, TypeFlags flags, bool isList) {
System\Xml\Serialization\XmlSchemas.cs (3)
274public object Find(XmlQualifiedName name, Type type) { 277internal object Find(XmlQualifiedName name, Type type, bool checkCache) { 587Type type = o.GetType();
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (6)
180internal void GenerateSupportedTypes(Type[] types) { 184writer.Write(typeof(Type).FullName); 189Type type = types[i]; 339writer.Write(typeof(Type).FullName); 345Type type = xmlMappings[i].Accessor.Mapping.TypeDesc.Type; 366internal void GenerateSerializerContract(string className, XmlMapping[] xmlMappings, Type[] types, string readerType, string[] readMethods, string writerType, string[] writerMethods, Hashtable serializers) {
System\Xml\Serialization\XmlSerializationILGen.cs (24)
22internal Dictionary<string, Type> CreatedTypes = new Dictionary<string, Type>(); 78MethodAttributes attributes, Type returnType, Type[] parameterTypes) { 195new Type[] { typeof(Object), typeof(Object) }, 211internal void GenerateSupportedTypes(Type[] types, TypeBuilder serializerContractTypeBuilder) { 216new Type[] { typeof(Type) }, 221Type type = types[i]; 289Type baseSerializerType = baseSerializerTypeBuilder.CreateType(); 311new Type[] { typeof(XmlReader) }, 326new Type[] { typeof(String), typeof(String) }, 345new Type[] { typeof(object), typeof(XmlSerializationWriter) }, 352new Type[] { (mapping is XmlMembersMapping) ? typeof(object[]) : typeof(object) }, 369new Type[] { typeof(XmlSerializationReader) }, 385Type typedSerializerType = typedSerializerTypeBuilder.CreateType(); 398new Type[] { typeof(Object), typeof(Object) }, 424new Type[] { typeof(Type) }, 430Type type = xmlMappings[i].Accessor.Mapping.TypeDesc.Type; 463internal void GenerateSerializerContract(string className, XmlMapping[] xmlMappings, Type[] types, string readerType, string[] readMethods, string writerType, string[] writerMethods, Hashtable serializers) { 552Type serializerContractType = serializerContractTypeBuilder.CreateType(); 565internal void ILGenLoad(string source, Type type) { 571Type memType = (memInfo.MemberType == MemberTypes.Field) ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType;
System\Xml\Serialization\XmlSerializationReader.cs (18)
288Type GetPrimitiveType(XmlQualifiedName typeName, bool throwOnUnknown) { 1279protected Exception CreateUnknownConstantException(string value, Type enumType) { 1284protected Exception CreateInvalidCastException(Type type, object value) { 1289protected Exception CreateInvalidCastException(Type type, object value, string id) { 1311protected Array EnsureArrayIndex(Array a, int index, Type elementType) { 1320protected Array ShrinkArray(Array a, int length, Type elementType, bool isNullable) { 1496Type fallbackElementType = null; 1500Type arrayType = (Type)types[new XmlQualifiedName(typeName, typeNs)]; 1524Type elementType = null; 1528elementType = (Type)types[qname]; 1639Type itemType = null; 1643Type currItemType = currItem.GetType(); 1756protected void AddReadCallback(string name, string ns, Type type, XmlSerializationReadCallback read) { 2166GenerateEnd(new string[0], new XmlMapping[0], new Type[0]); 2168internal void GenerateEnd(string[] methods, XmlMapping[] xmlMappings, Type[] types) { 4621Writer.Write(typeof(Type).FullName); 4679void WriteCatchException(Type exceptionType) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (88)
218internal void GenerateEnd(string[] methods, XmlMapping[] xmlMappings, Type[] types) { 243new Type[] { typeof(String) }, 261Type readerType = this.typeBuilder.CreateType(); 292new Type[] { typeof(String), typeof(String) }, 309List<Type> argTypes = new List<Type>(); 360new Type[] { typeof(object) }, 514new Type[] { typeof(Boolean) }, 710new Type[] { typeof(string) } 824new Type[] { typeof(String) }, 856new Type[] { typeof(String) }, 864Type argType = source == "false" ? typeof(Boolean) : typeof(String); 882new Type[] { argType }, 891new Type[] { argType }, 1015new Type[] { typeof(Object), typeof(Object) }, 1051List<Type> argTypes = new List<Type>(); 1053Type returnType; 1054Type underlyingType; 1075new Type[] { typeof(String), typeof(Hashtable), typeof(String) }, 1117new Type[] { typeof(string), typeof(string) }, 1139new Type[] { typeof(string), typeof(Type) }, 1172List<Type> argTypes = new List<Type>(); 1231new Type[] { typeof(string) } 1237new Type[] { typeof(String) }, 1311new Type[] { typeof(Boolean) }, 1358List<Type> argTypes = new List<Type>(); 1425new Type[] { locXsiType.LocalType }, 1466new Type[] { typeof(String), typeof(String) }, 1473new Type[] { typeof(XmlQualifiedName) }, 1492new Type[] { locXsiType.LocalType }, 1506new Type[] { typeof(XmlQualifiedName) }, 1533new Type[] { typeof(String), typeof(String) }, 1548new Type[] { typeof(Boolean) }, 1910new Type[] { typeof(string) }, 1962new Type[] { typeof(String), typeof(String) }, 1998new Type[] { typeof(string) }, 2029new Type[] { typeof(XmlReader) }, 2043new Type[] { localAttr.LocalType }, 2052List<Type> argTypes = new List<Type>(); 2131new Type[] { typeof(Char[]) }, 2224new Type[] { typeof(String) }, 2400new Type[] { typeof(String) }, 2445new Type[] { typeof(String) }, 2458new Type[] { typeof(String), typeof(Boolean) }, 2584new Type[] { typeof(Boolean) }, 2674new Type[] { typeof(Array), typeof(Int32), typeof(Type), typeof(Boolean) }, 2719Type varType = ilg.GetVariableType(variable); 2741Type arrayElementType = localA.LocalType.GetElementType(); 2746new Type[] { typeof(Array), typeof(Int32), typeof(Type) }, 2789void WriteSourceEnd(string source, Type elementType) { 2792void WriteSourceEnd(string source, Type elementType, Type stackType) { 2795Type varType = ilg.GetVariableType(variable); 2820Type arrayElementType = ilg.GetVariableType(oVar).GetElementType(); 2839new Type[] { elementType }, 2843Type addParameterType = Add.GetParameters()[0].ParameterType; 2854Type varType = ilg.GetVariableType(ilg.GetVariable(match.Groups["a"].Value)); 2856Type varElementType = varType.GetElementType(); 3006new Type[] { typeof(Boolean) } 3105new Type[] { typeof(Int64) }, 3182List<Type> argTypes = new List<Type>(); 3212new Type[] { typeof(Boolean) }, 3258isWrappedAny ? new Type[] { typeof(IXmlSerializable), typeof(Boolean) } : new Type[] { typeof(IXmlSerializable) }, 3324isWrappedAny ? new Type[] { typeof(IXmlSerializable), typeof(Boolean) } : new Type[] { typeof(IXmlSerializable) }, 3344new Type[] { typeof(String), typeof(String), typeof(String), typeof(String), typeof(String), typeof(String) }, 3363new Type[] { typeof(String), typeof(String), typeof(String) }, 3463Type refIntType = Type.GetType("System.Int32&"); 3468new Type[] { refIntType, refIntType }, 3503new Type[] { typeof(String) }, 3516new Type[] { typeof(String) }, 3528void WriteCatchException(Type exceptionType) { 3539new Type[] { typeof(Type), typeof(Object), typeof(String) }, 3551new Type[] { typeof(String) }, 3585void WriteCreateInstance(string source, bool ctorInaccessible, Type type) { 3596new Type[] { typeof(object) }, 3603new Type[] { typeof(object), typeof(string) },
System\Xml\Serialization\XmlSerializationWriter.cs (46)
165XmlQualifiedName GetPrimitiveTypeName(Type type) { 169XmlQualifiedName GetPrimitiveTypeName(Type type, bool throwIfUnknown) { 176internal static XmlQualifiedName GetPrimitiveTypeNameInternal(Type type) { 180switch (Type.GetTypeCode(type)) { 225Type t = o.GetType(); 228switch (Type.GetTypeCode(t)) { 712protected Exception CreateUnknownTypeException(Type type) { 752protected Exception CreateInvalidAnyTypeException(Type type) { 1047protected void AddWriteCallback(Type type, string typeName, string typeNs, XmlSerializationWriteCallback callback) { 1056void WriteArray(string name, string ns, object o, Type type) { 1057Type elementType = TypeScope.GetArrayElementType(type, null); 1086Type elementBaseType = elementType.BaseType; 1164protected void WritePotentiallyReferencingElement(string n, string ns, object o, Type ambientType) { 1169protected void WritePotentiallyReferencingElement(string n, string ns, object o, Type ambientType, bool suppressReference) { 1174protected void WritePotentiallyReferencingElement(string n, string ns, object o, Type ambientType, bool suppressReference, bool isNullable) { 1179Type t = o.GetType(); 1214void WriteReferencedElement(object o, Type ambientType) { 1218void WriteReferencedElement(string name, string ns, object o, Type ambientType) { 1220Type t = o.GetType(); 1235TypeEntry GetTypeEntry(Type t) { 1295internal Type type; 2059Writer.Write(typeof(Type).FullName); 2989void WriteElementCall(string func, Type cast, string source, string name, string ns, bool isNullable, bool isAny) { 3060Type type = value.GetType(); 3062switch (Type.GetTypeCode(type)) { 3252internal static bool IsTypeDynamic(Type type) { 3266Type[] parameterTypes = type.GetGenericArguments(); 3271Type parameterType = parameterTypes[i]; 3288internal static bool IsTypeDynamic(Type[] arguments) { 3289foreach (Type t in arguments){ 3352foreach (Type type in scope.Types) { 3359string WriteTypeInfo(TypeScope scope, TypeDesc typeDesc, Type type){ 3373writer.WriteLine("static "+typeof(Type).FullName+" "+typeVariable +" = " + elementTypeVariable + ".MakeArrayType();"); 3378writer.Write("static "+typeof(Type).FullName+" "+typeVariable +" = "+assemblyVariable+".GetType("); 3387Type parameterType = Nullable.GetUnderlyingType(type); 3391writer.WriteLine("static "+typeof(Type).FullName+" "+typeVariable +" = typeof(System.Nullable<>).MakeGenericType(new " + typeof(Type).FullName + "[] {"+parameterTypeVariable+"});"); 3396writer.Write("static "+typeof(Type).FullName+" "+typeVariable +" = "+assemblyVariable+".GetType("); 3420"object", "string", typeof(Type).FullName, 3428void WriteMappingInfo(TypeMapping mapping, string typeVariable, Type type){ 3456void WriteCollectionInfo(string typeVariable, TypeDesc typeDesc, Type type){ 3474string WriteAssemblyInfo(Type type){ 3490string WriteMemberInfo(Type type, string escapedName, string typeVariable, string memberName){ 3534writer.Write("new "+typeof(Type).FullName+"[] { "); 3545string WriteDefaultIndexerInit(Type type, string escapedName, bool collectionUseReflection, bool elementUseReflection){ 3558writer.Write(typeof(Type[]).FullName);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (91)
56internal Type GenerateEnd() { 89List<Type> argTypes = new List<Type>(); 114void WriteEnumValue(EnumMapping mapping, SourceInfo source, out Type returnType) { 128new Type[] { mapping.TypeDesc.Type }); 135void WritePrimitiveValue(TypeDesc typeDesc, SourceInfo source, out Type returnType) { 142Type argType = typeDesc.Type; 147new Type[] { argType }, 165new Type[] { typeDesc.Type }, 207List<Type> argTypes = new List<Type>(); 215Type argType; 231new Type[] { typeof(String), typeof(String) }, 258new Type[] { typeof(String), typeof(String) }, 272new Type[] { typeof(string), typeof(string), typeof(object), typeof(Boolean) }, 303new Type[] { typeof(Object) }, 331new Type[] { typeof(object[]) }, 508new Type[] { typeof(object) }, 556List<Type> argTypes = new List<Type>(); 634new Type[] { typeof(Int64), typeof(String[]), typeof(Int64[]), typeof(String) }, 661new Type[] { typeof(IFormatProvider) }, 668new Type[] { typeof(object), typeof(string) }, 705List<Type> argTypes = new List<Type>(); 712Type oType = ilg.GetVariableType(oVar); 761new Type[] { typeof(String), typeof(String) }, 773new Type[] { typeof(String), typeof(String) }, 784new Type[] { mapping.TypeDesc.Type } 790new Type[] { typeof(String) }, 836new Type[] { typeof(String), typeof(String) }, 848new Type[] { typeof(String), typeof(String) }, 879List<Type> argTypes = new List<Type>(5); 907new Type[] { typeof(String), typeof(String) }, 922LocalBuilder tLoc = ilg.DeclareLocal(typeof(Type), "t"); 947new Type[] { typeof(String), typeof(String), typeof(Object), typeof(Boolean) }, 963new Type[] { typeof(Object) }, 981new Type[] { typeof(Boolean) }, 1016new Type[] { typeof(String), typeof(String), typeof(Object), typeof(Boolean), typeof(XmlSerializerNamespaces) }, 1027new Type[] { typeof(String), typeof(String) }, 1137new Type[] { typeof(String), typeof(String), typeof(String) }, 1177Type methodType; 1178Type argType = typeof(string); 1195new Type[] { typeof(String) }, 1212new Type[] { typeof(string) }, 1235new Type[] { argType }, 1283List<Type> argTypes = new List<Type>(); 1332new Type[] { typeof(XmlNode), typeof(Object) }, 1351static object GetConvertedDefaultValue(Type targetType, object rawDefaultValue) { 1413new Type[] { typeof(String), typeof(String) }, 1456Type typeIEnumerable = arrayTypeDesc.IsGenericInterface ? typeof(IEnumerable<>).MakeGenericType(arrayElementTypeDesc.Type) : typeof(IEnumerable); 1671new Type[] { typeof(string), typeof(string) }, 1695new Type[] { typeof(String), typeof(String), typeof(String), typeof(String) }, 1721new Type[] { typeof(String), typeof(String) }, 1780new Type[] { typeof(Object) }, 1799Type argType; 1811new Type[] { argType }, 1824new Type[] { typeof(XmlWriter) }, 1932List<Type> argTypes = new List<Type>(); 1986new Type[] { typeof(Object) }, 2002void WriteElementCall(string func, Type cast, SourceInfo source, string name, string ns, bool isNullable, bool isAny) { 2007new Type[] { cast, typeof(String), typeof(String), typeof(Boolean), typeof(Boolean) }, 2068Type valueType = value.GetType(); 2075new Type[] { valueType, valueType }, 2107new Type[] { typeof(String), typeof(String), typeof(String) }, 2135new Type[] { typeof(XmlSerializerNamespaces) }, 2153void WriteLocalDecl(string variableName, string initValue, Type type) { 2160void WriteTypeCompare(string variable, Type type) { 2163void WriteInstanceOf(SourceInfo source, Type type) { 2166void WriteArrayTypeCompare(string variable, Type arrayType) { 2233foreach (Type type in scope.Types) { 2276internal void ILGenForEnumMember(CodeGenerator ilg, Type type, string memberName) { 2289internal void ILGenForCreateInstance(CodeGenerator ilg, Type type, bool ctorInaccessible, bool cast) { 2311internal void ILGenForCreateInstance(CodeGenerator ilg, Type type, Type cast, bool nonPublic) { 2322Type xName = type.Assembly.GetType("System.Xml.Linq.XName"); 2328new Type[] { typeof(String) }, 2334new Type[] { xName }, 2355new Type[] { typeof(Type), typeof(BindingFlags), typeof(Binder), typeof(Object[]), typeof(CultureInfo) }, 2369Type localType = initValue.Type; 2401internal void WriteCreateInstance(string source, bool ctorInaccessible, Type type, CodeGenerator ilg) { 2406internal void WriteInstanceOf(SourceInfo source, Type type, CodeGenerator ilg) { 2419Type localType = (typeName == arrayTypeDesc.CSharpName) ? arrayTypeDesc.Type : arrayTypeDesc.Type.MakeArrayType(); 2427internal void WriteTypeCompare(string variable, Type type, CodeGenerator ilg) { 2430ilg.Ldloc(typeof(Type), variable); 2434internal void WriteArrayTypeCompare(string variable, Type arrayType, CodeGenerator ilg) { 2438ilg.Ldloc(typeof(Type), variable);
System\Xml\Serialization\XmlSerializer.cs (36)
96public virtual bool CanSerialize(Type type){ throw new NotSupportedException(); } 98public virtual XmlSerializer GetSerializer(Type type){ throw new NotSupportedException(); } 108Type primitiveType; 139public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace) : 147public XmlSerializer(Type type, XmlRootAttribute root) : this(type, null, new Type[0], root, null, null) { 154public XmlSerializer(Type type, Type[] extraTypes) : this(type, null, extraTypes, null, null, null) { 161public XmlSerializer(Type type, XmlAttributeOverrides overrides) : this(type, overrides, new Type[0], null, null, null) { 177public XmlSerializer(Type type) : this(type, (string)null) { 184public XmlSerializer(Type type, string defaultNamespace) { 220public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location) 231public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location, Evidence evidence) { 256internal static TempAssembly GenerateTempAssembly(XmlMapping xmlMapping, Type type, string defaultNamespace) { 259return new TempAssembly(new XmlMapping[] { xmlMapping }, new Type[] {type}, defaultNamespace, null, null); 262internal static TempAssembly GenerateTempAssembly(XmlMapping xmlMapping, Type type, string defaultNamespace, string location, Evidence evidence) { 263return new TempAssembly(new XmlMapping[] { xmlMapping }, new Type[] {type}, defaultNamespace, location, evidence); 463return FromMappings(mappings, (Type)null); 471public static XmlSerializer[] FromMappings(XmlMapping[] mappings, Type type) { 482tempAssembly = new TempAssembly(mappings, new Type[] { type }, null, null, null); 508static XmlSerializer[] GetSerializersFromCache(XmlMapping[] mappings, Type type) { 537TempAssembly tempAssembly = new TempAssembly(pendingMappings, new Type[] { type }, null, null, null); 564TempAssembly tempAssembly = new TempAssembly(mappings, new Type[0], null, null, evidence); 578public static Assembly GenerateSerializer(Type[] types, XmlMapping[] mappings) { 595public static Assembly GenerateSerializer(Type[] types, XmlMapping[] mappings, CompilerParameters parameters) { 608Type type = types[i]; 625public static XmlSerializer[] FromTypes(Type[] types) { 642public static string GetXmlSerializerAssemblyName(Type type) { 651public static string GetXmlSerializerAssemblyName(Type type, string defaultNamespace) { 723static XmlTypeMapping GetKnownMapping(Type type, string ns) { 739switch (Type.GetTypeCode(primitiveType)) { 810switch (Type.GetTypeCode(primitiveType)) {
System\Xml\Serialization\XmlSerializerFactory.cs (14)
36public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace) { 44public XmlSerializer CreateSerializer(Type type, XmlRootAttribute root) { 45return CreateSerializer(type, null, new Type[0], root, null, null); 52public XmlSerializer CreateSerializer(Type type, Type[] extraTypes) { 60public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides) { 61return CreateSerializer(type, overrides, new Type[0], null, null, null); 77public XmlSerializer CreateSerializer(Type type) { 85public XmlSerializer CreateSerializer(Type type, string defaultNamespace) { 115public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location) { 126public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location, Evidence evidence) {
System\Xml\Serialization\XmlSerializerVersionAttribute.cs (3)
22Type type; 35public XmlSerializerVersionAttribute(Type type) { 71public Type Type {
System\Xml\Serialization\XmlTextAttribute.cs (3)
18Type type; 32public XmlTextAttribute(Type type) { 40public Type Type {
System\Xml\XmlNullResolver.cs (1)
19public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) {
System\Xml\XmlResolver.cs (2)
36Type ofObjectToReturn); 97public virtual bool SupportsType(Uri absoluteUri, Type type) {
System\Xml\XmlResolverAsync.cs (1)
10Type ofObjectToReturn) {
System\Xml\XmlSecureResolver.cs (1)
33public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) {
System\Xml\XmlSecureResolverAsync.cs (1)
9public override Task<object> GetEntityAsync(Uri absoluteUri, string role, Type ofObjectToReturn) {
System\Xml\XmlUrlResolver.cs (1)
56public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) {
System\Xml\XmlUrlResolverAsync.cs (1)
12public override async Task<Object> GetEntityAsync(Uri absoluteUri, string role, Type ofObjectToReturn) {
System\Xml\XmlXapResolver.cs (1)
19public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
System\Xml\XPath\XPathItem.cs (3)
31public abstract Type ValueType { get; } 37public virtual object ValueAs(Type returnType) { return ValueAs(returnType, null); } 38public abstract object ValueAs(Type returnType, IXmlNamespaceResolver nsResolver);
System\Xml\XPath\XPathNavigator.cs (2)
130public override Type ValueType { 307public override object ValueAs(Type returnType, IXmlNamespaceResolver nsResolver) {
System\Xml\XPath\XPathNavigatorReader.cs (1)
172public override System.Type ValueType {
System\Xml\Xslt\XslCompiledTransform.cs (5)
241GeneratedCodeCtor = typeof(GeneratedCodeAttribute).GetConstructor(new Type[] { typeof(string), typeof(string) }); 256public void Load(Type compiledStylesheet) { 287Type[] earlyBoundTypes = (Type[])fldTypes.GetValue(/*this:*/null); 301public void Load(MethodInfo executeMethod, byte[] queryData, Type[] earlyBoundTypes) {
System\Xml\Xslt\XslTransform.cs (1)
296Type unknownType = unknownDebugger.GetType();
System.Xml.Linq (7)
System\Xml\Linq\XComponentModel.cs (3)
18public override ICustomTypeDescriptor GetTypeDescriptor(Type type, object instance) { 59public override Type ComponentType { 67public override Type PropertyType {
System\Xml\Linq\XLinq.cs (4)
1014public object Annotation(Type type) { 1062public IEnumerable<object> Annotations(Type type) { 1067IEnumerable<object> AnnotationsIterator(Type type) { 1111public void RemoveAnnotations(Type type) {
UIAutomationClient (12)
MS\Internal\Automation\AutomationAttributeInfo.cs (3)
32Type type 52internal Type Type { get { return _type; } } 66private Type _type;
MS\Internal\Automation\AutomationPropertyInfo.cs (3)
39Type type, 62internal Type Type { get { return _type; } } 76private Type _type;
MS\Internal\Automation\Misc.cs (2)
88internal static Array CombineArrays(IEnumerable arrays, Type t) 113internal static Array RemoveDuplicates(Array a, Type t)
MS\Internal\Automation\ProxyManager.cs (2)
77Type t = a.GetType( typeName ); 363Type t = mb.ReflectedType;
System\Windows\Automation\ItemContainerPattern.cs (1)
147Type expectedType = info.Type;
System\Windows\Automation\PropertyCondition.cs (1)
147Type expectedType = info.Type;
WindowsBase (261)
Base\MS\Internal\AvTrace.cs (2)
314&& !(parameters[j] is Type) 492static public Type GetTypeHelper(object value)
Base\MS\Internal\BaseHashHelper.cs (3)
29internal static void RegisterTypes(Assembly assembly, Type[] types) 53Type type = item.GetType(); 76private static HybridDictionary DictionaryFromList(Type[] types)
Base\MS\Internal\ComponentModel\APCustomTypeDescriptor.cs (2)
102Type instanceType = _instance.GetType(); 211public object GetEditor(Type editorBaseType) { return _parent.GetEditor(editorBaseType); }
Base\MS\Internal\ComponentModel\AttachedPropertyMethodSelector.cs (7)
31public override MethodBase SelectMethod(BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[] modifiers) 63private static bool ParametersMatch(ParameterInfo[] parameters, Type[] types) 78Type t = types[idx]; 97Type t = types[idx]; 131public override object ChangeType(object value, Type type, CultureInfo culture) 149public override PropertyInfo SelectProperty(BindingFlags bindingAttr, PropertyInfo[] match, Type returnType, Type[] indexes, ParameterModifier[] modifiers)
Base\MS\Internal\ComponentModel\AttachInfo.cs (1)
197Type attrType = attr.GetType();
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (29)
39internal DependencyObjectPropertyDescriptor(PropertyDescriptor property, DependencyProperty dp, Type objectType) 59internal DependencyObjectPropertyDescriptor(DependencyProperty dp, Type ownerType) 277public override Type ComponentType 304public override Type PropertyType 401Type reflectionType = TypeDescriptor.GetReflectionType(dp.OwnerType); 470Type attrType = AttributeType; 473Type propertyReflectionType = TypeDescriptor.GetReflectionType(_dp.PropertyType); 496Type providerType = Type.GetType(pa.TypeName); 568Type reflectionType = TypeDescriptor.GetReflectionType(dp.OwnerType); 577Type[] paramTypes = new Type[] { 601Type[] types; 602Type reflectionType; 619types = Type.EmptyTypes; 764internal static Type AttachedPropertyBrowsableAttributeType { 766Type attachedPropertyBrowsableType = _attachedPropertyBrowsableType; 778private static Type AttributeType { 780Type attributeType = _attributeType; 792private static Type BoolType { 794Type boolType = _boolType; 806private static Type[] DpType { 808Type[] dpType = _dpType; 810dpType = new Type[] { TypeDescriptor.GetReflectionType(typeof(DependencyObject)) }; 849private Type _componentType; 862private static Type[] _dpType; 863private static Type _boolType; 864private static Type _attributeType; 865private static Type _attachedPropertyBrowsableType;
Base\MS\Internal\ComponentModel\DependencyObjectProvider.cs (4)
73public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 91if (instance != null && !(instance is Type)) 216internal static DependencyObjectPropertyDescriptor GetAttachedPropertyDescriptor(DependencyProperty dp, Type targetType) 238internal static DependencyPropertyKind GetDependencyPropertyKind(DependencyProperty dp, Type targetType)
Base\MS\Internal\ComponentModel\DependencyPropertyKind.cs (2)
46internal DependencyPropertyKind(DependencyProperty dp, Type targetType) 170private readonly Type _targetType;
Base\MS\Internal\ComponentModel\DPCustomTypeDescriptor.cs (3)
35internal DPCustomTypeDescriptor(ICustomTypeDescriptor parent, Type objectType, object instance) 232public object GetEditor(Type editorBaseType) { return _parent.GetEditor(editorBaseType); } 383private Type _objectType;
Base\MS\Internal\ComponentModel\PropertyKey.cs (2)
13internal PropertyKey(Type attachedType, DependencyProperty prop) 46internal Type AttachedType;
Base\MS\Internal\InheritanceContextChangedEventManager.cs (1)
144Type managerType = typeof(InheritanceContextChangedEventManager);
Base\MS\Internal\SystemCoreExtensionMethods.cs (1)
23internal abstract object NewDynamicPropertyAccessor(Type ownerType, string propertyName);
Base\MS\Internal\SystemDataExtensionMethods.cs (1)
28internal abstract bool IsSqlNullableType(Type type);
Base\MS\Internal\WeakEventTable.cs (4)
117internal WeakEventManager this[Type managerType] 126internal WeakEventManager this[Type eventSourceType, string eventName] 599public EventNameKey(Type eventSourceType, string eventName) 631Type _eventSourceType;
Base\System\Collections\ObjectModel\WeakReadOnlyCollection.cs (2)
185Type targetType = array.GetType().GetElementType(); 186Type sourceType = typeof(T);
Base\System\Collections\Specialized\CollectionChangedEventManager.cs (1)
137Type managerType = typeof(CollectionChangedEventManager);
Base\System\ComponentModel\CurrentChangedEventManager.cs (1)
137Type managerType = typeof(CurrentChangedEventManager);
Base\System\ComponentModel\CurrentChangingEventManager.cs (1)
138Type managerType = typeof(CurrentChangingEventManager);
Base\System\ComponentModel\DependencyPropertyDescriptor.cs (12)
39private DependencyPropertyDescriptor(PropertyDescriptor property, string name, Type componentType, DependencyProperty dp, bool isAttached) : base(name, null) 127internal static DependencyPropertyDescriptor FromProperty(DependencyProperty dependencyProperty, Type ownerType, Type targetType, bool ignorePropertyType) 194public static DependencyPropertyDescriptor FromProperty(DependencyProperty dependencyProperty, Type targetType) 257public static DependencyPropertyDescriptor FromName(string name, Type ownerType, Type targetType) 279public static DependencyPropertyDescriptor FromName(string name, Type ownerType, Type targetType, 391public override object GetEditor(Type editorBaseType) { return Property.GetEditor(editorBaseType); } 441public override Type ComponentType { get { return _componentType; } } 453public override Type PropertyType { get { return _dp.PropertyType; } } 613private Type _componentType;
Base\System\ComponentModel\ErrorsChangedEventManager.cs (1)
114Type managerType = typeof(ErrorsChangedEventManager);
Base\System\ComponentModel\IItemProperties.cs (3)
42public ItemPropertyInfo(string name, Type type, object descriptor) 53public Type PropertyType { get { return _type; } } 63Type _type;
Base\System\ComponentModel\PropertyChangedEventManager.cs (1)
340Type managerType = typeof(PropertyChangedEventManager);
Base\System\Windows\AttachedPropertyBrowsableForTypeAttribute.cs (3)
28public AttachedPropertyBrowsableForTypeAttribute(Type targetType) 45public Type TargetType 162private Type _targetType;
Base\System\Windows\AttachedPropertyBrowsableWhenAttributePresentAttribute.cs (3)
26public AttachedPropertyBrowsableWhenAttributePresentAttribute(Type attributeType) 44public Type AttributeType 106private Type _attributeType;
Base\System\Windows\DeferredReference.cs (2)
41internal abstract Type GetValueType(); 67internal override Type GetValueType()
Base\System\Windows\DependencyObjectType.cs (7)
42public static DependencyObjectType FromSystemType(Type systemType) 63internal static DependencyObjectType FromSystemTypeInternal(Type systemType) 83private static DependencyObjectType FromSystemTypeRecursive(Type systemType) 124public Type SystemType { get { return _systemType; } } 221private Type _systemType; 225private static Dictionary<Type, DependencyObjectType> DTypeFromCLRType = new Dictionary<Type, DependencyObjectType>();
Base\System\Windows\DependencyProperty.cs (50)
34public static DependencyProperty Register(string name, Type propertyType, Type ownerType) 48public static DependencyProperty Register(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata) 63public static DependencyProperty Register(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback) 92Type propertyType, 93Type ownerType, 106Type propertyType, 107Type ownerType, 160public static DependencyPropertyKey RegisterAttachedReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata) 170public static DependencyPropertyKey RegisterAttachedReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback) 206public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType) 220public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata) 235public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback) 242private static void RegisterParameterValidation(string name, Type propertyType, Type ownerType) 265private static DependencyProperty RegisterCommon(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback) 330Type propertyType) 346Type propertyType, 349Type ownerType) 368Type propertyType, 394Type propertyType, 463Type forType, 519public void OverrideMetadata(Type forType, PropertyMetadata typeMetadata) 540public void OverrideMetadata(Type forType, PropertyMetadata typeMetadata, DependencyPropertyKey key) 579Type forType, 634internal object GetDefaultValue(Type forType) 649public PropertyMetadata GetMetadata(Type forType) 767public DependencyProperty AddOwner(Type ownerType) 782public DependencyProperty AddOwner(Type ownerType, PropertyMetadata typeMetadata) 828public Type PropertyType 836public Type OwnerType 1002internal static DependencyProperty FromName(string name, Type ownerType) 1050internal static bool IsValidType(object value, Type propertyType) 1075public FromNameKey(string name, Type ownerType) 1083public void UpdateNameKey(Type ownerType) 1113private Type _ownerType; 1119private DependencyProperty(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback) 1159internal static int GetUniqueGlobalIndex(Type ownerType, string name) 1205private Type _propertyType; 1206private Type _ownerType; 1247private static Type NullableType = typeof(Nullable<>);
Base\System\Windows\DependencyPropertyKey.cs (1)
40public void OverrideMetadata( Type forType, PropertyMetadata typeMetadata )
Base\System\Windows\DependencyPropertyValueSerializer.cs (8)
25return ValueSerializer.GetSerializerFor(typeof(Type), context) != null; 30return ValueSerializer.GetSerializerFor(typeof(Type), context) != null; 38ValueSerializer typeSerializer = ValueSerializer.GetSerializerFor(typeof(Type), context); 48public override IEnumerable<Type> TypeReferences(object value, IValueSerializerContext context) 53return new Type[] { property.OwnerType }; 63ValueSerializer typeSerializer = ValueSerializer.GetSerializerFor(typeof(Type), context); 70Type ownerType = typeSerializer.ConvertFromString(typeName, context) as Type;
Base\System\Windows\ExpressionConverter.cs (3)
40public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 57public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 100public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\Generated\Int32RectConverter.cs (3)
43public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 61public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 115public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\Generated\PointConverter.cs (3)
43public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 61public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 115public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\Generated\RectConverter.cs (3)
43public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 61public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 115public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\Generated\SizeConverter.cs (3)
43public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 61public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 115public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\Generated\VectorConverter.cs (3)
43public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 61public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 115public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\Input\KeyConverter.cs (3)
44public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 113public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\Input\ModifierKeysConverter.cs (3)
43public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 105public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\IWeakEventListener.cs (1)
35bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e);
Base\System\Windows\Markup\DateTimeConverter2.cs (3)
33public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 43public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 61public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\Markup\DateTimeValueSerializerContext.cs (2)
26public ValueSerializer GetValueSerializerFor(Type type) 56public object GetService(Type serviceType)
Base\System\Windows\Markup\InternalTypeHelper.cs (2)
42protected internal abstract object CreateInstance(Type type, CultureInfo culture); 57protected internal abstract Delegate CreateDelegate(Type delegateType, object target, string handler);
Base\System\Windows\Markup\Primitives\MarkupObject.cs (1)
40public abstract Type ObjectType { get; }
Base\System\Windows\Markup\Primitives\MarkupProperty.cs (3)
48public abstract Type PropertyType { get; } 57Type propertyType = PropertyType; 134public abstract IEnumerable<Type> TypeReferences { get; }
Base\System\Windows\Markup\ServiceProviders.cs (4)
36public Object GetService(Type serviceType) 52public void AddService(Type serviceType, Object service) 74private Dictionary<Type,Object> _objDict = new Dictionary<Type,Object>();
Base\System\Windows\Markup\TypeConverterHelper.cs (17)
104internal static Type GetConverterType(MemberInfo memberInfo) 108Type converterType = null; 121internal static Type GetConverterType(Type type) 125Type converterType = null; 138private static Type GetConverterTypeFromName(string converterName) 140Type converterType = null; 167internal static Type GetCoreConverterTypeFromCustomType(Type type) 169Type converterType = null; 245else if (typeof(Type).IsAssignableFrom(type)) 258private static TypeConverter GetCoreConverterFromCoreType(Type type) 330else if (type == typeof(Type)) 352internal static TypeConverter GetCoreConverterFromCustomType(Type type) 430else if (typeof(Type).IsAssignableFrom(type)) 457internal static TypeConverter GetTypeConverter(Type type) 468Type converterType = GetConverterType(type);
Base\System\Windows\Markup\TypeTypeConverter.cs (1)
24public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
72public override System.Type ValueType { get { return _reader.ValueType; } }
Base\System\Windows\Media\Generated\MatrixConverter.cs (3)
44public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 116public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Base\System\Windows\PropertyMetadata.cs (2)
640protected virtual void OnApply(DependencyProperty dp, Type targetType) 655internal void Seal(DependencyProperty dp, Type targetType)
Base\System\Windows\WeakEventManager.cs (7)
187protected static WeakEventManager GetCurrentManager(Type managerType) 196protected static void SetCurrentManager(Type managerType, WeakEventManager manager) 205internal static WeakEventManager GetCurrentManager(Type eventSourceType, string eventName) 214internal static void SetCurrentManager(Type eventSourceType, string eventName, WeakEventManager manager) 767public virtual bool DeliverEvent(object sender, EventArgs args, Type managerType) 780internal bool DeliverEvent(ref Listener listener, object sender, EventArgs args, Type managerType) 909public override bool DeliverEvent(object sender, EventArgs e, Type managerType)
Base\System\Windows\WeakEventManagerT.cs (1)
109Type managerType = typeof(WeakEventManager<TEventSource, TEventArgs>);
Shared\MS\Internal\HashHelper.cs (2)
35Type[] types = new Type[] {
Shared\MS\Internal\Permissions\InternalPermissions.cs (1)
107Type type = this.GetType();
Shared\MS\Internal\SecurityHelper.cs (1)
884internal static void RunClassConstructor(Type t)
Shared\MS\Utility\TraceProvider.cs (1)
290Type dataType = data.GetType();
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (1)
66public static object PtrToStructure(IntPtr lparam, Type cls) {
Shared\System\Windows\Markup\ReflectionHelper.cs (25)
46internal static Type GetQualifiedType(string typeName) 51Type type = null; 55type = Type.GetType(nameFrags[0]); 104internal static bool IsNullableType(Type type) 109internal static bool IsInternalType(Type type) 111Type origType = type; 131internal static bool IsPublicType(Type type) 148internal static Type GetSystemType(Type type) 169internal static Type GetReflectionType(object item) 186internal static string GetTypeConverterAttributeData(Type type, out Type converterType) 192internal static string GetTypeConverterAttributeData(MemberInfo mi, out Type converterType) 200private static string GetCustomAttributeData(MemberInfo mi, Type attrType, out Type typeValue) 223private static string GetCustomAttributeData(IList<CustomAttributeData> list, Type attrType, out Type typeValue, bool allowTypeAlso, bool allowZeroArgs) 244internal static string GetCustomAttributeData(Type t, 245Type attrType, 248out Type typeValue) 252Type currentType = t; 287Type attrType, 288out Type typeValue, 308if (attrValue == null && allowTypeAlso && tca.ArgumentType == typeof(Type)) 310typeValue = tca.Value as Type;
WsatConfig (2)
Configuration\FirewallWrapper.cs (2)
30this.manager = (INetFirewallMgr)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(FwMgrClassId))); 72INetFirewallOpenPort openPort = (INetFirewallOpenPort)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(FwOpenPortClassId)));
WsatUI (4)
Configuration\FirewallWrapper.cs (2)
30this.manager = (INetFirewallMgr)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(FwMgrClassId))); 72INetFirewallOpenPort openPort = (INetFirewallOpenPort)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid(FwOpenPortClassId)));
MMCUI\WSATPropertySheet.cs (2)
407public static void RegisterWithMmc(Type type) 446public static void UnregisterWithMmc(Type type)
XamlBuildTask (23)
Microsoft\Build\Tasks\Xaml\AttributeData.cs (12)
203if (typeof(Type).IsAssignableFrom(paramType.UnderlyingType)) 205Tuple<string, Type> result = ParseParameterValueTypeName(paramValue, rootNamespace, reader.SchemaContext, namespaceTable); 228paramType = reader.SchemaContext.GetXamlType(typeof(Type)); 238internal static bool IsSupportedParameterType(Type type) 247typeof(Type).IsAssignableFrom(type); 254Type type = paramType.UnderlyingType; 261else if (typeof(Type).IsAssignableFrom(type)) 263return ((Type)value).FullName; 284if (typeof(Type).IsAssignableFrom(paramType.UnderlyingType)) 293private static Tuple<string, Type> ParseParameterValueTypeName(string paramValue, string rootNamespace, XamlSchemaContext schemaContext, NamespaceTable namespaceTable) 340Type type = xamlType.UnderlyingType; 341Fx.Assert(!typeof(Type).IsAssignableFrom(type), "This method should not be called for Types");
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (3)
191Type baseClrType = classData.BaseType.UnderlyingType; 277else if (typeof(System.Type).IsAssignableFrom(paramInfo.Type.UnderlyingType)) 304bool IsComVisible(Type t)
Microsoft\Build\Tasks\Xaml\CodeDomExtensionMethods.cs (2)
12internal static CodeVariableReferenceExpression DeclareVar(this CodeStatementCollection block, Type type, 35internal static CodeObjectCreateExpression New(this Type type, params CodeExpression[] parameters)
Microsoft\Build\Tasks\Xaml\WrappingXamlSchemaContext.cs (4)
15IDictionary<Type, XamlNsReplacingType> MasterTypeList; 22MasterTypeList = new Dictionary<Type, XamlNsReplacingType>(); 25public override XamlType GetXamlType(Type type) 74public XamlNsReplacingType(Type underlyingType, XamlSchemaContext context, string localAssemblyName, string realAssemblyName)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (1)
693Type extensionType = assembly.GetType(extensionEntry.Item1);
Microsoft\Build\Tasks\Xaml\XamlValidatingReader.cs (1)
25Type definedType;