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
- DetailsViewPagerRow.cs
- WindowsFont.cs
- FileSystemInfo.cs
- ItemList.cs
- ConstructorNeedsTagAttribute.cs
- SqlMetaData.cs
- DataComponentMethodGenerator.cs
- TypeSource.cs
- Regex.cs
- NonBatchDirectoryCompiler.cs
- ControlEvent.cs
- ClonableStack.cs
- FontFaceLayoutInfo.cs
- CompositionDesigner.cs
- XmlILModule.cs
- SystemIcmpV6Statistics.cs
- HtmlTableRowCollection.cs
- RepeaterCommandEventArgs.cs
- dataobject.cs
- ActivityExecutionContext.cs
- XmlProcessingInstruction.cs
- Stream.cs
- SoapException.cs
- UriWriter.cs
- WizardPanel.cs
- HttpAsyncResult.cs
- DataPager.cs
- CommentEmitter.cs
- RoutedEventArgs.cs
- FileLogRecordHeader.cs
- ArithmeticException.cs
- XPathAncestorIterator.cs
- ObjectViewQueryResultData.cs
- RangeValuePatternIdentifiers.cs
- EntityTransaction.cs
- ParameterBuilder.cs
- EmptyEnumerator.cs
- Attributes.cs
- SoapFault.cs
- PersonalizableAttribute.cs
- StrokeNodeEnumerator.cs
- WindowsTreeView.cs
- RegexStringValidatorAttribute.cs
- RegistryKey.cs
- LocalizabilityAttribute.cs
- OleDbWrapper.cs
- TypeSystem.cs
- ModuleBuilder.cs
- ProfileSection.cs
- RowBinding.cs
- XmlHierarchyData.cs
- ScrollItemPattern.cs
- PointAnimationUsingPath.cs
- PropertyInfoSet.cs
- WorkflowMarkupSerializer.cs
- ToolStripDropDownClosingEventArgs.cs
- FixedFlowMap.cs
- WebZone.cs
- WriterOutput.cs
- MarkerProperties.cs
- SizeLimitedCache.cs
- HttpPostedFileWrapper.cs
- SecureStringHasher.cs
- NavigationProgressEventArgs.cs
- RMPublishingDialog.cs
- XmlAttributeCollection.cs
- EventItfInfo.cs
- SettingsAttributes.cs
- LowerCaseStringConverter.cs
- ToolStripPanelCell.cs
- ProfileEventArgs.cs
- StateMachine.cs
- SrgsRuleRef.cs
- SurrogateDataContract.cs
- WindowsAuthenticationModule.cs
- Thread.cs
- NativeBuffer.cs
- Accessible.cs
- DocumentOrderComparer.cs
- UserControl.cs
- WindowsSlider.cs
- BaseUriHelper.cs
- FixedPage.cs
- SHA512.cs
- ThrowHelper.cs
- SynchronizationContext.cs
- MailBnfHelper.cs
- MulticastNotSupportedException.cs
- JoinTreeNode.cs
- NameHandler.cs
- SqlConnectionFactory.cs
- securitycriticaldata.cs
- ClientTarget.cs
- GPRECT.cs
- SqlRowUpdatingEvent.cs
- RecognizedPhrase.cs
- CellParaClient.cs
- FileIOPermission.cs
- GenericWebPart.cs
- rsa.cs