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
- DesignTimeTemplateParser.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- XPathNodeIterator.cs
- RemotingHelper.cs
- CodeIndexerExpression.cs
- TaiwanCalendar.cs
- ComponentEditorForm.cs
- XhtmlBasicLiteralTextAdapter.cs
- FilterableAttribute.cs
- _ListenerAsyncResult.cs
- XsltQilFactory.cs
- ProtocolsConfiguration.cs
- FloaterBaseParaClient.cs
- KeyConstraint.cs
- ScrollEvent.cs
- MultipartContentParser.cs
- PageMediaType.cs
- SerializationException.cs
- Positioning.cs
- Rights.cs
- base64Transforms.cs
- CrossAppDomainChannel.cs
- PropertyDescriptors.cs
- StyleSelector.cs
- ProjectedSlot.cs
- BufferedReadStream.cs
- ProxyManager.cs
- TableLayoutColumnStyleCollection.cs
- metadatamappinghashervisitor.cs
- PersistChildrenAttribute.cs
- NullableDecimalAverageAggregationOperator.cs
- CodeThrowExceptionStatement.cs
- SmiConnection.cs
- WarningException.cs
- serverconfig.cs
- ApplicationContext.cs
- DbParameterHelper.cs
- SoapEnumAttribute.cs
- FixUpCollection.cs
- VirtualDirectoryMapping.cs
- PointAnimationUsingKeyFrames.cs
- DataGridViewHeaderCell.cs
- EntryWrittenEventArgs.cs
- GenericAuthenticationEventArgs.cs
- FontInfo.cs
- ClassHandlersStore.cs
- ReadWriteSpinLock.cs
- TextTreePropertyUndoUnit.cs
- RepeaterCommandEventArgs.cs
- TraceUtils.cs
- ThreadLocal.cs
- EncoderFallback.cs
- MobileControl.cs
- GridViewRowCollection.cs
- VisualBrush.cs
- COM2Enum.cs
- InvokeSchedule.cs
- CodeCastExpression.cs
- StaticFileHandler.cs
- PresentationAppDomainManager.cs
- DeferredSelectedIndexReference.cs
- NamedObject.cs
- FileAuthorizationModule.cs
- CommandID.cs
- Predicate.cs
- ProcessStartInfo.cs
- RoutedEventHandlerInfo.cs
- X509ChainPolicy.cs
- DesigntimeLicenseContext.cs
- cookie.cs
- ListenerSessionConnection.cs
- EntityDataSourceState.cs
- AmbientLight.cs
- Line.cs
- Activity.cs
- ping.cs
- XmlCountingReader.cs
- WorkflowEventArgs.cs
- SettingsSavedEventArgs.cs
- NativeMethods.cs
- IPPacketInformation.cs
- DictionaryKeyPropertyAttribute.cs
- DragEvent.cs
- RightsDocument.cs
- XpsFontSerializationService.cs
- Axis.cs
- AmbientLight.cs
- CompressedStack.cs
- DocumentApplicationJournalEntry.cs
- ProxyFragment.cs
- ListMarkerSourceInfo.cs
- UiaCoreTypesApi.cs
- NativeCppClassAttribute.cs
- Options.cs
- SQLBinary.cs
- DiagnosticSection.cs
- OutputScope.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ProjectionCamera.cs
- AnimationClockResource.cs