128 references to KnownTypes
PresentationBuildTasks (128)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (21)
210KnownTypes.Clear(); 222KnownTypes.Clear(); 874PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IStyleConnector]) 961CodeVariableDeclarationStatement cvdsES = new CodeVariableDeclarationStatement(KnownTypes.Types[(int)KnownElements.EventSetter], EVENTSETTER); 970new CodeObjectCreateExpression(KnownTypes.Types[(int)KnownElements.EventSetter], 994CodeCastExpression cceTarget = new CodeCastExpression(KnownTypes.Types[(int)KnownElements.Style], careTarget); 1076_ccRoot.CodeClass.BaseTypes.Add(KnownTypes.Types[(int)KnownElements.IStyleConnector].FullName); 1109PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]) 1141if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 1238var iComponentConnector = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]); 1347KnownTypes.InitializeKnownTypes(XamlTypeMapper.AssemblyPF, XamlTypeMapper.AssemblyPC, XamlTypeMapper.AssemblyWB); 1759if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 1888Debug.Assert(pis != null && pis.Length == 2 && KnownTypes.Types[(int)KnownElements.DependencyObject].IsAssignableFrom(pis[0].ParameterType)); 1898if (fiEvent == null || fiEvent.FieldType != KnownTypes.Types[(int)KnownElements.RoutedEvent]) 1970KnownTypes.Types[(int)KnownElements.UIElement].IsAssignableFrom(eventTarget) || 1971KnownTypes.Types[(int)KnownElements.ContentElement].IsAssignableFrom(eventTarget)) 2164Type resourceDictionary = KnownTypes.Types[(int)KnownElements.ResourceDictionary]; 2165Type iNameScope = KnownTypes.Types[(int)KnownElements.INameScope]; 2592cmmLC.ImplementationTypes.Add(new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector])); 2683CodeMethodReferenceExpression cmreLoadContent = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(KnownTypes.Types[(int)KnownElements.Application]), LOADCOMPONENT); 3018if (elementType != null && KnownTypes.Types[(int)KnownElements.IComponentConnector].IsAssignableFrom(elementType))
MS\Internal\MarkupCompiler\ParserExtension.cs (3)
162KnownTypes.Types[(int)KnownElements.Application].IsAssignableFrom(memberInfo.DeclaringType)) 358PropertyInfo pi = KnownTypes.Types[(int)KnownElements.Application].GetProperty(localAttribName); 569bool appEvent = KnownTypes.Types[(int)KnownElements.Application].IsAssignableFrom(xamlClrEventNode.EventMember.DeclaringType);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (11)
97return KnownTypes.Types[-id]; 122Type probeType = KnownTypes.Types[probe]; 313KnownElements tcId = KnownTypes.GetKnownTypeConverterId(id); 319return KnownTypes.Types[(int)tcId]; 337KnownElements converterId = KnownTypes.GetKnownTypeConverterIdForProperty(id, propName); 343return KnownTypes.Types[(int)converterId]; 959propertyId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), memberName); 1324short attributeId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), fieldName); 1393converterOrSerializerType = KnownTypes.Types[(int)converterOrSerializerTypeId]; 1601else if (type == KnownTypes.Types[(int)KnownElements.DependencyProperty]) 1616return KnownTypes.Types[index];
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (3)
462return (KnownTypes.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType )); 4696|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4738KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (9)
297else if (CollectingValues && KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == xamlElementNode.ElementType) 311else if (CollectingValues && KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == xamlElementNode.ElementType) 348KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlElementNode.ElementType) || 349KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlElementNode.ElementType)) 367else if (_deferLoadingSupport && KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(xamlElementNode.ElementType)) 788!KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 789!KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 790!KnownTypes.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType)) 1667((BamlElementStartRecord)valueDeferRecord.Record).TypeId == BamlMapTable.GetKnownTypeIdFromType(KnownTypes.Types[(int)KnownElements.StaticResourceExtension]),
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (9)
150if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 155else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == extensionType) 160else if (KnownTypes.Types[(int)KnownElements.TemplateBindingExtension] == extensionType) 165else if (KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == extensionType) 170else if (KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == extensionType) 193if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 508if (KnownTypes.Types[(int)KnownElements.TypeExtension] == targetType) 515else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == targetType) 592else if (!KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(targetType))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (11)
635if (KnownTypes.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType)) 657(xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.Trigger] || 658xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.MultiTrigger] || 659xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.DataTrigger] || 660xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.MultiDataTrigger] || 661xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.EventTrigger])) 666(KnownTypes.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType))) 696if (xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.EventSetter]) 1233string assemblyName = KnownTypes.Types[(int)KnownElements.EventSetter].Assembly.FullName; 1240KnownTypes.Types[(int)KnownElements.EventSetter].FullName, 1241KnownTypes.Types[(int)KnownElements.EventSetter],
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (16)
653if (KnownTypes.Types[(int)KnownElements.ControlTemplate].IsAssignableFrom(xamlElementStartNode.ElementType)) 655_defaultTargetType = KnownTypes.Types[(int)KnownElements.Control]; 657else if (KnownTypes.Types[(int)KnownElements.DataTemplate].IsAssignableFrom(xamlElementStartNode.ElementType)) 659_defaultTargetType = KnownTypes.Types[(int)KnownElements.ContentPresenter]; 669_templateKeyType = KnownTypes.Types[(int)KnownElements.DataTemplateKey]; 673else if (KnownTypes.Types[(int)KnownElements.ItemsPanelTemplate].IsAssignableFrom(xamlElementStartNode.ElementType)) 675_defaultTargetType = KnownTypes.Types[(int)KnownElements.ItemsPresenter]; 695(xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.Trigger] || 696xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.MultiTrigger] || 697xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.DataTrigger] || 698xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.MultiDataTrigger] || 699xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.EventTrigger])) 704(KnownTypes.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType))) 841!KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(elementType) 843!KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(elementType)) 1535if (!KnownTypes.Types[(int)KnownElements.DataTrigger].IsAssignableFrom(t))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (26)
1878contentProperty = KnownTypes.GetContentPropertyName(knownElement); 1893if (KnownTypes.Types[(int)KnownElements.Application].IsAssignableFrom(type) || 1894KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(type)) 1900Type attrType = KnownTypes.Types[(int)KnownElements.ContentPropertyAttribute]; 1901Type DOType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1902Type FEType = KnownTypes.Types[(int)KnownElements.FrameworkElement]; 1903Type FCEType = KnownTypes.Types[(int)KnownElements.FrameworkContentElement]; 2281Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 2957KnownTypes.Types[(int)KnownElements.IComponentConnector].IsAssignableFrom(parentType)) 3351if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(objectType) || 3352KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(objectType) || 3353KnownTypes.Types[(int)KnownElements.Timeline].IsAssignableFrom(objectType) || 3354KnownTypes.Types[(int)KnownElements.BeginStoryboard].IsAssignableFrom(objectType)) 3379if (KnownTypes.Types[(int)KnownElements.Timeline].IsAssignableFrom(objectType)) 3407Type attrType = KnownTypes.Types[(int)KnownElements.RuntimeNamePropertyAttribute]; 3408Type TimelineType = KnownTypes.Types[(int)KnownElements.Timeline]; 3409Type FEType = KnownTypes.Types[(int)KnownElements.FrameworkElement]; 3410Type FCEType = KnownTypes.Types[(int)KnownElements.FrameworkContentElement]; 3411Type BSBType = KnownTypes.Types[(int)KnownElements.BeginStoryboard]; 3679if (KnownTypes.Types[(int)KnownElements.RoutedEvent].IsAssignableFrom(elementBaseType)) 4375KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(currentObjectType)) 4666if (!(objectType == KnownTypes.Types[(int)KnownElements.ArrayExtension]) 4815KnownTypes.CanCollectionTypeAcceptStrings( (KnownElements) (-collectionTypeID) ) 4821KnownTypes.CanCollectionTypeAcceptStrings( (KnownElements) (-collectionTypeID) ) 4935if( attributes[i].Constructor.ReflectedType == KnownTypes.Types[(int)KnownElements.ContentWrapperAttribute] ) 5702Type attrType = KnownTypes.Types[(int)KnownElements.WhitespaceSignificantCollectionAttribute];
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (16)
1286Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1447Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1816if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) || 1817KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType)) 1819typeAndSerializer.XmlLangProperty = (KnownTypes.Types[(int)KnownElements.FrameworkElement]).GetProperty("Language", 1843KnownTypes.Types[(int)KnownElements.XmlLangPropertyAttribute], 2664if (objectType == KnownTypes.Types[(int)KnownElements.Brush]) 2668else if (objectType == KnownTypes.Types[(int)KnownElements.Geometry] || 2669objectType == KnownTypes.Types[(int)KnownElements.StreamGeometry]) 2678else if (objectType == KnownTypes.Types[(int)KnownElements.Point3DCollection]) 2682else if (objectType == KnownTypes.Types[(int)KnownElements.Vector3DCollection]) 2686else if (objectType == KnownTypes.Types[(int)KnownElements.PointCollection]) 2690else if (objectType == KnownTypes.Types[(int)KnownElements.Int32Collection]) 2705if (objectType == KnownTypes.Types[(int)KnownElements.Style]) 2709else if (KnownTypes.Types[(int)KnownElements.FrameworkTemplate].IsAssignableFrom(objectType)) 3763if (KnownTypes.Types[(int)KnownElements.LineBreak].IsAssignableFrom(type))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\SystemResourceKey.cs (3)
387if ((KnownTypes.Types[(int)KnownElements.MenuItem] == targetType) || 388(KnownTypes.Types[(int)KnownElements.ToolBar] == targetType) || 389(KnownTypes.Types[(int)KnownElements.StatusBar] == targetType))