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
- TreeViewDesigner.cs
- cryptoapiTransform.cs
- PersonalizationProviderHelper.cs
- HtmlInputControl.cs
- SmtpReplyReaderFactory.cs
- ViewgenContext.cs
- XmlnsCompatibleWithAttribute.cs
- DataGridViewRowEventArgs.cs
- BoundField.cs
- DropTarget.cs
- DispatchChannelSink.cs
- TypeListConverter.cs
- PermissionRequestEvidence.cs
- AtomServiceDocumentSerializer.cs
- ConsoleKeyInfo.cs
- MetafileEditor.cs
- GridViewRowCollection.cs
- SmtpNetworkElement.cs
- Slider.cs
- ObjectDataSource.cs
- KeyBinding.cs
- XmlWrappingReader.cs
- ImageAttributes.cs
- XmlFormatExtensionAttribute.cs
- DataGridViewSelectedColumnCollection.cs
- Condition.cs
- MachineSettingsSection.cs
- SettingsSavedEventArgs.cs
- DocumentXPathNavigator.cs
- CollectionMarkupSerializer.cs
- RealizationContext.cs
- DesignTimeHTMLTextWriter.cs
- Root.cs
- CmsInterop.cs
- StateBag.cs
- TraceSection.cs
- XpsException.cs
- DataSourceExpressionCollection.cs
- ConfigurationValue.cs
- BatchServiceHost.cs
- SamlConditions.cs
- HwndSubclass.cs
- TimeSpanConverter.cs
- ProgressBarAutomationPeer.cs
- SimpleMailWebEventProvider.cs
- ThrowHelper.cs
- RectIndependentAnimationStorage.cs
- ErrorWrapper.cs
- UserControlCodeDomTreeGenerator.cs
- HtmlInputControl.cs
- CollectionView.cs
- DragCompletedEventArgs.cs
- ListItemCollection.cs
- FragmentQuery.cs
- ConfigurationSchemaErrors.cs
- __ConsoleStream.cs
- CharacterMetrics.cs
- XmlHierarchicalDataSourceView.cs
- FileResponseElement.cs
- RegexNode.cs
- ProgressBar.cs
- RefType.cs
- SystemSounds.cs
- BadImageFormatException.cs
- CurrentChangingEventArgs.cs
- CustomCategoryAttribute.cs
- BinaryReader.cs
- Debug.cs
- PerfCounterSection.cs
- RawStylusInputReport.cs
- fixedPageContentExtractor.cs
- Compiler.cs
- propertyentry.cs
- PropertyState.cs
- PageStatePersister.cs
- AttachedPropertyMethodSelector.cs
- SQLMembershipProvider.cs
- RelationshipDetailsRow.cs
- Adorner.cs
- GridViewCommandEventArgs.cs
- SystemResourceHost.cs
- Cursor.cs
- SetMemberBinder.cs
- SqlDataSourceConfigureFilterForm.cs
- InfoCardKeyedHashAlgorithm.cs
- UICuesEvent.cs
- WhiteSpaceTrimStringConverter.cs
- WsatServiceAddress.cs
- BatchWriter.cs
- NonClientArea.cs
- ReadOnlyActivityGlyph.cs
- WizardSideBarListControlItemEventArgs.cs
- WebPartEditVerb.cs
- SocketElement.cs
- TextSelectionProcessor.cs
- DataGridColumnHeaderCollection.cs
- EventLogException.cs
- SortQuery.cs
- XmlDataSourceView.cs
- OutputScopeManager.cs