Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Markup / KnownTypesHelper.cs / 1 / 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
- MemoryMappedFileSecurity.cs
- EventLogTraceListener.cs
- QueueProcessor.cs
- SystemIPGlobalProperties.cs
- PreviewKeyDownEventArgs.cs
- UiaCoreApi.cs
- NullRuntimeConfig.cs
- AutomationProperties.cs
- DbDataReader.cs
- FtpRequestCacheValidator.cs
- VisualStyleInformation.cs
- Attributes.cs
- SqlRowUpdatingEvent.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- RightNameExpirationInfoPair.cs
- ComplexTypeEmitter.cs
- LabelLiteral.cs
- WindowsEditBox.cs
- Wrapper.cs
- ToolStripItemEventArgs.cs
- OracleRowUpdatedEventArgs.cs
- ModelPropertyCollectionImpl.cs
- FormViewUpdateEventArgs.cs
- TransactedReceiveData.cs
- COM2IPerPropertyBrowsingHandler.cs
- MembershipUser.cs
- DocumentXPathNavigator.cs
- FlowDecision.cs
- Binding.cs
- MainMenu.cs
- DeclarativeCatalogPart.cs
- TakeQueryOptionExpression.cs
- PersonalizationStateInfoCollection.cs
- SoapInteropTypes.cs
- PropertyGrid.cs
- lengthconverter.cs
- DaylightTime.cs
- DbProviderFactory.cs
- ValidationHelpers.cs
- XsltInput.cs
- XmlEntity.cs
- Line.cs
- SrgsElement.cs
- DataGridViewSortCompareEventArgs.cs
- ActivityExecutionContextCollection.cs
- EntityDataSourceUtil.cs
- MsmqHostedTransportManager.cs
- BooleanExpr.cs
- FormatConvertedBitmap.cs
- Int64Converter.cs
- WebPartCatalogCloseVerb.cs
- DataGridPagerStyle.cs
- ResourceReader.cs
- SimpleBitVector32.cs
- MessageQueueException.cs
- IISUnsafeMethods.cs
- AutomationTextAttribute.cs
- TcpClientSocketManager.cs
- MessageDesigner.cs
- WhitespaceRuleReader.cs
- WebPartMinimizeVerb.cs
- UInt16Converter.cs
- MsmqIntegrationProcessProtocolHandler.cs
- MeasureItemEvent.cs
- LineServices.cs
- DbTypeMap.cs
- ColorAnimationUsingKeyFrames.cs
- StylusTip.cs
- ZoneButton.cs
- OdbcStatementHandle.cs
- X509Certificate2.cs
- Lasso.cs
- CompilationLock.cs
- CommonProperties.cs
- PersonalizationProvider.cs
- WebPartConnectionsDisconnectVerb.cs
- smtpconnection.cs
- RenderOptions.cs
- Rect.cs
- PolicyImporterElement.cs
- ResourceSetExpression.cs
- RangeBaseAutomationPeer.cs
- XmlSchemaExporter.cs
- AnnotationComponentChooser.cs
- ReadOnlyCollection.cs
- UrlMappingCollection.cs
- IntranetCredentialPolicy.cs
- WebUtil.cs
- Encoder.cs
- TemplateAction.cs
- HtmlProps.cs
- DataGridViewControlCollection.cs
- InputScopeNameConverter.cs
- FloatUtil.cs
- SafeFileHandle.cs
- MarginsConverter.cs
- RelationshipType.cs
- StylusButtonEventArgs.cs
- ClientScriptManager.cs
- SqlClientWrapperSmiStream.cs