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
- SemanticTag.cs
- SerializationHelper.cs
- FormCollection.cs
- SelectionUIService.cs
- ManipulationDevice.cs
- RelationshipFixer.cs
- ForEachAction.cs
- HttpContext.cs
- WindowsSysHeader.cs
- FrameAutomationPeer.cs
- UInt64.cs
- DocumentSequence.cs
- FlowDocumentView.cs
- DefaultEvaluationContext.cs
- ProfileParameter.cs
- CommonDialog.cs
- HttpModuleActionCollection.cs
- GlobalItem.cs
- SoapTypeAttribute.cs
- BufferedGraphicsContext.cs
- sqlser.cs
- InteropEnvironment.cs
- TypeNameParser.cs
- DictionaryBase.cs
- DataGridItemCollection.cs
- SqlProviderManifest.cs
- SafePEFileHandle.cs
- EmissiveMaterial.cs
- QilInvokeLateBound.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- MatrixTransform.cs
- DeviceContext.cs
- LineMetrics.cs
- CapabilitiesState.cs
- DataGridViewImageCell.cs
- Literal.cs
- RelationshipEndMember.cs
- WindowsNonControl.cs
- SiteMapProvider.cs
- Int64KeyFrameCollection.cs
- UserControlCodeDomTreeGenerator.cs
- sqlpipe.cs
- WindowsIPAddress.cs
- dataprotectionpermissionattribute.cs
- ExtentKey.cs
- Model3D.cs
- JsonReaderWriterFactory.cs
- ChannelReliableSession.cs
- GeneralTransform3DTo2DTo3D.cs
- DeviceContext2.cs
- DefaultValidator.cs
- RtType.cs
- XPathMessageFilterElementCollection.cs
- ImageListDesigner.cs
- DecimalAnimationBase.cs
- AssemblyUtil.cs
- DataServiceQueryContinuation.cs
- _WebProxyDataBuilder.cs
- InputElement.cs
- CodeNamespaceImportCollection.cs
- JsonEnumDataContract.cs
- ConstrainedGroup.cs
- DataGridViewCellCancelEventArgs.cs
- ConsoleKeyInfo.cs
- SpellCheck.cs
- CacheMode.cs
- CalendarDateRange.cs
- RedBlackList.cs
- WithStatement.cs
- ListParagraph.cs
- OleDbDataReader.cs
- ObjectContextServiceProvider.cs
- ItemCheckedEvent.cs
- ResourceReferenceKeyNotFoundException.cs
- OracleInfoMessageEventArgs.cs
- WrappedReader.cs
- DateTimeStorage.cs
- QuaternionConverter.cs
- DataReceivedEventArgs.cs
- NameValuePair.cs
- VarRefManager.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- ConstantExpression.cs
- DbProviderServices.cs
- SqlDataSourceCache.cs
- ProfilePropertyNameValidator.cs
- SecurityDescriptor.cs
- Thread.cs
- OdbcConnection.cs
- XmlSchemaComplexType.cs
- SettingsBindableAttribute.cs
- UnionExpr.cs
- MulticastDelegate.cs
- ContentFileHelper.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TextReader.cs
- Pen.cs
- ThousandthOfEmRealDoubles.cs
- OnOperation.cs
- NonBatchDirectoryCompiler.cs