Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextAdaptor.cs
- MsiStyleLogWriter.cs
- EntityParameter.cs
- SettingsContext.cs
- AppDomainAttributes.cs
- EncoderReplacementFallback.cs
- FontSizeConverter.cs
- EventSource.cs
- ObjectDataSource.cs
- CaseExpr.cs
- ButtonBaseAdapter.cs
- SqlDataSourceEnumerator.cs
- LZCodec.cs
- InfoCardBinaryReader.cs
- NativeMethods.cs
- WebServiceTypeData.cs
- AccessControlList.cs
- CompilerError.cs
- QueuedDeliveryRequirementsMode.cs
- SectionXmlInfo.cs
- SqlConnectionStringBuilder.cs
- AttachedAnnotationChangedEventArgs.cs
- OleDbRowUpdatedEvent.cs
- EventManager.cs
- FormatSelectingMessageInspector.cs
- DocumentScope.cs
- FunctionMappingTranslator.cs
- ParameterToken.cs
- AuthorizationRule.cs
- MenuItemCollection.cs
- LayoutUtils.cs
- IISUnsafeMethods.cs
- DataGridItemCollection.cs
- COM2ExtendedTypeConverter.cs
- MapPathBasedVirtualPathProvider.cs
- NonSerializedAttribute.cs
- UTF7Encoding.cs
- DataGridViewMethods.cs
- AddInContractAttribute.cs
- IndexedEnumerable.cs
- DataBoundLiteralControl.cs
- ProtocolsConfiguration.cs
- SortKey.cs
- LinkedResourceCollection.cs
- PeerNearMe.cs
- CodeDelegateCreateExpression.cs
- SqlRetyper.cs
- TransformerInfo.cs
- AsynchronousChannel.cs
- SerializerWriterEventHandlers.cs
- ListBoxItemAutomationPeer.cs
- ZoneIdentityPermission.cs
- DoubleAverageAggregationOperator.cs
- AssemblyUtil.cs
- StreamWriter.cs
- MetabaseServerConfig.cs
- BaseParser.cs
- RectangleConverter.cs
- ClientRoleProvider.cs
- SizeConverter.cs
- EnterpriseServicesHelper.cs
- XmlAggregates.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- CombinedTcpChannel.cs
- Socket.cs
- Compilation.cs
- Table.cs
- RichTextBoxAutomationPeer.cs
- activationcontext.cs
- TextElement.cs
- StyleConverter.cs
- HtmlControlPersistable.cs
- SamlConstants.cs
- PtsContext.cs
- HttpListenerResponse.cs
- ProgressChangedEventArgs.cs
- ProtocolViolationException.cs
- SystemMulticastIPAddressInformation.cs
- InstanceDataCollection.cs
- PropertyGridView.cs
- OneOfTypeConst.cs
- ComContractElementCollection.cs
- DeflateStream.cs
- SHA384.cs
- HashJoinQueryOperatorEnumerator.cs
- WebPartDescriptionCollection.cs
- SplitterPanel.cs
- HtmlInputReset.cs
- ObjectListDataBindEventArgs.cs
- DataStorage.cs
- MeasurementDCInfo.cs
- FamilyTypefaceCollection.cs
- XPathDescendantIterator.cs
- WebPartAddingEventArgs.cs
- RowParagraph.cs
- CharEntityEncoderFallback.cs
- ColumnPropertiesGroup.cs
- ScriptHandlerFactory.cs
- ConfigUtil.cs
- Char.cs