Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / KnownTypesHelper.cs / 1305600 / KnownTypesHelper.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // //--------------------------------------------------------------------------- using System; using System.IO; using System.Collections.Generic; using System.Reflection; using System.Diagnostics; // These are the non-generated parts of the KnownTypes and TypeIndexer classes #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { internal static partial class KnownTypes { // Keep Known WCP Types in a private array, accessed through an indexer private static TypeIndexer _typeIndexer = new TypeIndexer((int)KnownElements.MaxElement); internal static TypeIndexer Types { get { return _typeIndexer; } } #if PBTCOMPILER internal static void InitializeKnownTypes(Assembly asmFramework, Assembly asmCore, Assembly asmBase) { _typeIndexer.Initialize(asmFramework, asmCore, asmBase); } #endif } internal partial class TypeIndexer { public TypeIndexer(int size) { _typeTable =new Type[size]; } public System.Type this[int index] { get { Type t = _typeTable[index]; if (t == null) { t = InitializeOneType((KnownElements)index); } _typeTable[index] = t; return t; } } private Type[] _typeTable; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLChars.cs
- AdornedElementPlaceholder.cs
- GCHandleCookieTable.cs
- Item.cs
- XPathSelectionIterator.cs
- TableRowCollection.cs
- MessageEnumerator.cs
- XmlSignatureProperties.cs
- CodeGenerator.cs
- DeferredTextReference.cs
- PermissionSet.cs
- UnauthorizedWebPart.cs
- ComponentManagerBroker.cs
- WebPartHelpVerb.cs
- ZipIOCentralDirectoryFileHeader.cs
- EncoderNLS.cs
- XmlSchemaFacet.cs
- ConstructorNeedsTagAttribute.cs
- SkewTransform.cs
- RequestQueryParser.cs
- HandlerBase.cs
- TdsParameterSetter.cs
- OleDbStruct.cs
- PtsContext.cs
- ProfileGroupSettingsCollection.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- BorderSidesEditor.cs
- XmlCharacterData.cs
- CompilationUtil.cs
- IHttpResponseInternal.cs
- XmlSchemaSimpleTypeRestriction.cs
- FormConverter.cs
- Normalization.cs
- OpenFileDialog.cs
- PenContext.cs
- DataSet.cs
- DelegatingTypeDescriptionProvider.cs
- ImageListUtils.cs
- ServiceElementCollection.cs
- Axis.cs
- InspectionWorker.cs
- BrowserCapabilitiesCompiler.cs
- SspiWrapper.cs
- TraceInternal.cs
- DiagnosticsConfiguration.cs
- SQLRoleProvider.cs
- OledbConnectionStringbuilder.cs
- HuffCodec.cs
- CodeNamespaceImportCollection.cs
- AlgoModule.cs
- LocatorBase.cs
- JoinTreeSlot.cs
- ScriptResourceHandler.cs
- StreamInfo.cs
- CustomExpression.cs
- VisualSerializer.cs
- ScriptResourceDefinition.cs
- HMACSHA256.cs
- TemplatedWizardStep.cs
- BufferModeSettings.cs
- XomlSerializationHelpers.cs
- CodeDOMUtility.cs
- XmlMemberMapping.cs
- DataGridViewCellStyle.cs
- MaterialGroup.cs
- KoreanCalendar.cs
- DiscardableAttribute.cs
- SQLDecimalStorage.cs
- UxThemeWrapper.cs
- DoWorkEventArgs.cs
- WindowInteropHelper.cs
- XmlDigitalSignatureProcessor.cs
- FlowLayoutPanel.cs
- KnownTypeAttribute.cs
- BitStack.cs
- CodeTypeOfExpression.cs
- DataRowView.cs
- XPathBinder.cs
- ProxyWebPartConnectionCollection.cs
- ImageSourceTypeConverter.cs
- TrackingServices.cs
- XmlILOptimizerVisitor.cs
- MarkerProperties.cs
- OleDbStruct.cs
- SafeBitVector32.cs
- sapiproxy.cs
- DesignTimeVisibleAttribute.cs
- InplaceBitmapMetadataWriter.cs
- EnumValidator.cs
- StyleCollection.cs
- DataGridViewRowEventArgs.cs
- Baml2006ReaderContext.cs
- FastEncoderWindow.cs
- NoPersistHandle.cs
- sqlcontext.cs
- StringReader.cs
- SafeCryptHandles.cs
- FontConverter.cs
- WorkingDirectoryEditor.cs
- UpdatePanelControlTrigger.cs