Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / ObjectLayer / AssemblyCacheEntry.cs / 1305376 / AssemblyCacheEntry.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Reflection; namespace System.Data.Metadata.Edm { internal abstract class AssemblyCacheEntry { internal abstract IListTypesInAssembly { get; } internal abstract IList ClosureAssemblies { get; } internal bool TryGetEdmType(string typeName, out EdmType edmType) { edmType = null; foreach (EdmType loadedEdmType in this.TypesInAssembly) { if (loadedEdmType.Identity == typeName) { edmType = loadedEdmType; break; } } return (edmType != null); } internal bool ContainsType(string typeName) { EdmType edmType = null; return TryGetEdmType(typeName, out edmType); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Reflection; namespace System.Data.Metadata.Edm { internal abstract class AssemblyCacheEntry { internal abstract IListTypesInAssembly { get; } internal abstract IList ClosureAssemblies { get; } internal bool TryGetEdmType(string typeName, out EdmType edmType) { edmType = null; foreach (EdmType loadedEdmType in this.TypesInAssembly) { if (loadedEdmType.Identity == typeName) { edmType = loadedEdmType; break; } } return (edmType != null); } internal bool ContainsType(string typeName) { EdmType edmType = null; return TryGetEdmType(typeName, out edmType); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UnitControl.cs
- FilteredDataSetHelper.cs
- XmlUnspecifiedAttribute.cs
- FormClosingEvent.cs
- AppDomainProtocolHandler.cs
- TreeBuilderXamlTranslator.cs
- DropShadowEffect.cs
- CommandEventArgs.cs
- TypedElement.cs
- AddingNewEventArgs.cs
- MenuItemStyleCollection.cs
- ImageKeyConverter.cs
- SamlConditions.cs
- CompositeFontFamily.cs
- PrefixQName.cs
- WorkflowMarkupSerializationException.cs
- TreeNodeCollection.cs
- MissingMemberException.cs
- XComponentModel.cs
- FontInfo.cs
- OrderToken.cs
- TypeSystemProvider.cs
- AssemblyBuilderData.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- XmlSchemaElement.cs
- SingleResultAttribute.cs
- ModulesEntry.cs
- UniqueIdentifierService.cs
- AppliesToBehaviorDecisionTable.cs
- RichTextBoxConstants.cs
- XmlAutoDetectWriter.cs
- DetailsViewInsertedEventArgs.cs
- TextWriter.cs
- DataTableNewRowEvent.cs
- AsyncContentLoadedEventArgs.cs
- VisualCollection.cs
- PageBreakRecord.cs
- BitSet.cs
- ChildDocumentBlock.cs
- ILGenerator.cs
- TableProviderWrapper.cs
- SoapFormatExtensions.cs
- EventToken.cs
- JpegBitmapEncoder.cs
- PreservationFileWriter.cs
- OperationFormatStyle.cs
- SafeSecurityHandles.cs
- MasterPageBuildProvider.cs
- IxmlLineInfo.cs
- CorrelationService.cs
- HttpWebRequestElement.cs
- AssertValidation.cs
- ToolZone.cs
- VisualTreeUtils.cs
- SmiGettersStream.cs
- PagesChangedEventArgs.cs
- ImageBrush.cs
- TemplateBindingExpression.cs
- ReflectionHelper.cs
- TypeValidationEventArgs.cs
- IisTraceListener.cs
- AndMessageFilter.cs
- ImpersonationContext.cs
- Merger.cs
- EventPropertyMap.cs
- SqlDataRecord.cs
- XPathNodeHelper.cs
- FieldNameLookup.cs
- DbTransaction.cs
- ScrollPattern.cs
- Helpers.cs
- RtfControlWordInfo.cs
- DocumentCollection.cs
- EventPropertyMap.cs
- AssemblyInfo.cs
- ContentTextAutomationPeer.cs
- ListViewDeletedEventArgs.cs
- XmlNode.cs
- ProfileSettingsCollection.cs
- TypedDatasetGenerator.cs
- Clipboard.cs
- MemberBinding.cs
- Interlocked.cs
- RbTree.cs
- ConnectAlgorithms.cs
- ObjRef.cs
- UrlPath.cs
- _Rfc2616CacheValidators.cs
- MembershipSection.cs
- WindowsFormsHelpers.cs
- ReadOnlyHierarchicalDataSourceView.cs
- diagnosticsswitches.cs
- PartitionResolver.cs
- ObjectSecurity.cs
- TextTreeRootNode.cs
- NativeDirectoryServicesQueryAPIs.cs
- COM2ColorConverter.cs
- DesignerFrame.cs
- MenuBase.cs
- ServiceModelConfigurationSectionCollection.cs