67 references to ReflectionHelper
PresentationBuildTasks (67)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (5)
211ReflectionHelper.Dispose(); 223ReflectionHelper.Dispose(); 391_localAssembly = ReflectionHelper.LoadAssembly(LocalAssemblyFile.AssemblyName, LocalAssemblyFile.Path); 1308ReflectionHelper.Initialize(paths); 1313ReflectionHelper.LocalAssemblyName = AssemblyName;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (5)
69Assembly = ReflectionHelper.LoadAssembly(_frameworkAssembly, string.Empty) 287if (ReflectionHelper.IsNullableType(type)) 294else if (type == ReflectionHelper.GetSystemType(typeof(Uri))) 988assemblyInfoRecord.Assembly = ReflectionHelper.LoadAssembly(assemblyInfoRecord.AssemblyFullName, path); 1235bamlTypeInfoRecord.IsInternalType = (elementType != null && ReflectionHelper.IsInternalType(elementType));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (3)
473else if (ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(propertyType)) 477else if (ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(propertyType) || 479(ReflectionHelper.GetMscorlibType(typeof(IEnumerable)).IsAssignableFrom(propertyType) && !propertyCanWrite))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (28)
228return (ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(type) 229|| ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(type) 230|| ReflectionHelper.GetMscorlibType(typeof(Array)).IsAssignableFrom(type)); 621ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(ParentContext.ContextData as Type)); 1913contentProperty = ReflectionHelper.GetCustomAttributeData(baseType, attrType, true); 2372assemblyName = ReflectionHelper.LocalAssemblyName; 3118&& !ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(pType)) 3292if (propType == ReflectionHelper.GetMscorlibType(typeof(Type))) 3364Assembly asmPC = ReflectionHelper.GetAlreadyReflectionOnlyLoadedAssembly("PRESENTATIONCORE"); 3417propName = ReflectionHelper.GetCustomAttributeData(baseType, attrType, false); 4193ReflectionHelper.GetMscorlibType(typeof(IEnumerable)).IsAssignableFrom(propertyType) && 4194!ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(propertyType) && 4492if (ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(parentElementType) 4493&& ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(parentElementType)) 4590if (ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(pi.PropertyType)) 4647!ReflectionHelper.GetMscorlibType(typeof(IEnumerable)).IsAssignableFrom(parentType) && 4648!ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(parentType) && 4649!ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(parentType)) 4714if ( contentPropertyType == ReflectionHelper.GetMscorlibType(typeof(object)) || 4715contentPropertyType == ReflectionHelper.GetMscorlibType(typeof(string)) ) 4725else if( ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(contentPropertyType) ) 4750contentPropertyType == ReflectionHelper.GetMscorlibType(typeof(string)))) 4841if( collectionItemType == ReflectionHelper.GetMscorlibType(typeof(object)) 4843collectionItemType == ReflectionHelper.GetMscorlibType(typeof(string)) ) 4883if( iCollectionT.Assembly == ReflectionHelper.GetMscorlibType(typeof(IList)).Assembly ) 4897return ReflectionHelper.GetMscorlibType(typeof(Object)); 4966if( propertyInfo.PropertyType.IsAssignableFrom(ReflectionHelper.GetMscorlibType(typeof(string))) ) 6770Assembly asmXml = ReflectionHelper.GetAlreadyReflectionOnlyLoadedAssembly("SYSTEM.XML");
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (18)
371ReflectionHelper.LoadAssembly(entry.Key as String, entry.Value as String); 392AssemblyWB = ReflectionHelper.LoadAssembly(asmName, asmPath); 396AssemblyPC = ReflectionHelper.LoadAssembly(asmName, asmPath); 400AssemblyPF = ReflectionHelper.LoadAssembly(asmName, asmPath); 405ReflectionHelper.LoadAssembly(asmName, asmPath); 410ReflectionHelper.LoadAssembly(asmName, asmPath); 956if (!ReflectionHelper.IsPublicType(delegateType)) 958if (!ReflectionHelper.IsInternalType(delegateType) || 1022if (ReflectionHelper.IsPublicType(fi.ReflectedType)) 1079if (ReflectionHelper.IsPublicType(mi.ReflectedType)) 1213if (owner == null || ReflectionHelper.IsPublicType(owner)) 1842xmlLangPropertyName = ReflectionHelper.GetCustomAttributeData(typeAndSerializer.ObjectType, 2479return ReflectionHelper.IsFriendAssembly(assembly); 2484bool isInternalAllowed = ReflectionUtils.GetAssemblyPartialName(type.Assembly).Equals(ReflectionHelper.LocalAssemblyName, StringComparison.Ordinal) || 2538if (!ReflectionHelper.IsPublicType(objectType)) 2543!ReflectionHelper.IsInternalType(objectType) || 4343if (!ReflectionHelper.HasAlreadyReflectionOnlyLoaded(assemblyNameLookup)) 4350_assembly = ReflectionHelper.LoadAssembly(_assemblyName, _assemblyPath);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
100assy = ReflectionHelper.GetAlreadyReflectionOnlyLoadedAssembly(assemblyName); 112assy = ReflectionHelper.LoadAssembly(assemblyName, assemblyFullPath);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (6)
104string converterName = ReflectionHelper.GetTypeConverterAttributeData(memberInfo, out Type converterType); 113string? converterName = ReflectionHelper.GetTypeConverterAttributeData(type, out Type? converterType); 123converterType = ReflectionHelper.GetQualifiedType(converterName); 128if (!ReflectionHelper.IsPublicType(converterType)) 131if (!ReflectionHelper.IsInternalType(converterType) || 132!ReflectionHelper.IsInternalAllowedOnType(converterType))