Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / 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. //---------------------------------------------------------------------------- // //// 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
- SplitterEvent.cs
- AdPostCacheSubstitution.cs
- CompositeCollection.cs
- CellRelation.cs
- StateBag.cs
- XmlAnyElementAttributes.cs
- XmlSchemaChoice.cs
- XmlJsonWriter.cs
- HtmlInputPassword.cs
- CalendarAutoFormat.cs
- TextEditorTyping.cs
- EventSetter.cs
- ExceptionValidationRule.cs
- RegexCode.cs
- XmlWrappingReader.cs
- EventListenerClientSide.cs
- SourceItem.cs
- HtmlImageAdapter.cs
- OdbcDataReader.cs
- OperandQuery.cs
- DataGridViewCellStyleConverter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- LinqDataSourceView.cs
- ChineseLunisolarCalendar.cs
- WorkflowMarkupSerializerMapping.cs
- EditingCoordinator.cs
- AutomationProperty.cs
- ZoneLinkButton.cs
- KoreanCalendar.cs
- UpdatePanel.cs
- RequestQueryProcessor.cs
- UnmanagedMemoryStreamWrapper.cs
- UIElementParagraph.cs
- LOSFormatter.cs
- NullableBoolConverter.cs
- XmlDictionaryString.cs
- WinEventQueueItem.cs
- AsyncInvokeContext.cs
- Point.cs
- ReceiveDesigner.xaml.cs
- SchemaNotation.cs
- RijndaelManaged.cs
- TripleDES.cs
- ParseNumbers.cs
- FullTrustAssembly.cs
- Compiler.cs
- DataGridRow.cs
- DbConnectionPool.cs
- Cell.cs
- ListViewItemEventArgs.cs
- Timeline.cs
- InfoCardProofToken.cs
- SiteMapNodeItemEventArgs.cs
- XmlElementCollection.cs
- PenContexts.cs
- smtpconnection.cs
- FrameSecurityDescriptor.cs
- XmlCharacterData.cs
- streamingZipPartStream.cs
- FileInfo.cs
- State.cs
- VarRemapper.cs
- PasswordRecovery.cs
- ADConnectionHelper.cs
- FloatUtil.cs
- XmlIterators.cs
- BaseComponentEditor.cs
- BufferedGraphics.cs
- DataControlCommands.cs
- WebPartPersonalization.cs
- StylusCaptureWithinProperty.cs
- ViewgenGatekeeper.cs
- Hash.cs
- LinkButton.cs
- VirtualStackFrame.cs
- ToolboxControl.cs
- RoleManagerModule.cs
- EventLog.cs
- CommandHelper.cs
- ThreadPool.cs
- PrintingPermissionAttribute.cs
- GridToolTip.cs
- TcpClientSocketManager.cs
- TreeSet.cs
- ProfileSettings.cs
- SqlSelectClauseBuilder.cs
- FontStyle.cs
- CellPartitioner.cs
- Pens.cs
- ArraySegment.cs
- TextRangeEditTables.cs
- RSAOAEPKeyExchangeFormatter.cs
- RegistryKey.cs
- SqlColumnizer.cs
- DragEventArgs.cs
- ListViewUpdatedEventArgs.cs
- MissingMemberException.cs
- ViewValidator.cs
- MarkupCompilePass1.cs
- CodeSubDirectory.cs