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
- DrawingGroup.cs
- DocumentOrderQuery.cs
- ObjectListCommandCollection.cs
- StandardRuntimeEnumValidatorAttribute.cs
- Listen.cs
- AuthenticatedStream.cs
- Button.cs
- XmlQueryContext.cs
- Util.cs
- DeferredSelectedIndexReference.cs
- TextOptions.cs
- PageAdapter.cs
- DbParameterCollectionHelper.cs
- ProfileModule.cs
- ControlPager.cs
- CheckBox.cs
- OrthographicCamera.cs
- SparseMemoryStream.cs
- Rfc4050KeyFormatter.cs
- QueryStringParameter.cs
- TraceListeners.cs
- DirectoryLocalQuery.cs
- Odbc32.cs
- TypeSystem.cs
- UriTemplateTrieNode.cs
- Point3DAnimationBase.cs
- ItemType.cs
- CrossAppDomainChannel.cs
- CommandHelper.cs
- MarkerProperties.cs
- ResourcesChangeInfo.cs
- MimeBasePart.cs
- StringStorage.cs
- TabItemWrapperAutomationPeer.cs
- NumericExpr.cs
- ReachObjectContext.cs
- TableItemPattern.cs
- ObjectStorage.cs
- ApplicationManager.cs
- IIS7WorkerRequest.cs
- DataTableExtensions.cs
- DoubleAnimation.cs
- CallContext.cs
- SpeechEvent.cs
- CancellationHandlerDesigner.cs
- InvariantComparer.cs
- EditorPart.cs
- ArraySegment.cs
- ListControlActionList.cs
- Journal.cs
- Property.cs
- XmlReflectionMember.cs
- XPathNodeList.cs
- NativeCppClassAttribute.cs
- AlphabetConverter.cs
- LockCookie.cs
- FileFormatException.cs
- CancelAsyncOperationRequest.cs
- ComMethodElementCollection.cs
- BinaryWriter.cs
- QilDataSource.cs
- WebPartConnectionsCloseVerb.cs
- BooleanAnimationBase.cs
- CatalogZoneDesigner.cs
- BoundField.cs
- FusionWrap.cs
- CriticalHandle.cs
- TableLayoutSettingsTypeConverter.cs
- ObjectDataSourceMethodEditor.cs
- CopyAttributesAction.cs
- BaseTreeIterator.cs
- OleDbStruct.cs
- WsatServiceCertificate.cs
- InstanceStoreQueryResult.cs
- RolePrincipal.cs
- DataRelation.cs
- SiteMapSection.cs
- UiaCoreTypesApi.cs
- StringInfo.cs
- ElementUtil.cs
- EventProxy.cs
- PathGradientBrush.cs
- FileDialog_Vista_Interop.cs
- LicenseException.cs
- MiniLockedBorderGlyph.cs
- CodeNamespaceImport.cs
- SelectionProviderWrapper.cs
- LayoutTable.cs
- WebPermission.cs
- BooleanToVisibilityConverter.cs
- X509Certificate.cs
- BamlLocalizableResource.cs
- MissingManifestResourceException.cs
- TableItemPatternIdentifiers.cs
- ListSortDescriptionCollection.cs
- EndpointInfo.cs
- ValidationPropertyAttribute.cs
- ConnectionPoint.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- MailMessageEventArgs.cs