Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / CustomAssemblyResolver.cs / 1305376 / CustomAssemblyResolver.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Diagnostics; using System.Reflection; using System.Collections.Generic; using System.Data.Entity; namespace System.Data.Metadata.Edm { internal class CustomAssemblyResolver : MetadataArtifactAssemblyResolver { private Func_referenceResolver; private Func > _wildcardAssemblyEnumerator; internal CustomAssemblyResolver(Func > wildcardAssemblyEnumerator, Func referenceResolver) { Debug.Assert(wildcardAssemblyEnumerator != null); Debug.Assert(referenceResolver != null); _wildcardAssemblyEnumerator = wildcardAssemblyEnumerator; _referenceResolver = referenceResolver; } internal override bool TryResolveAssemblyReference(AssemblyName refernceName, out Assembly assembly) { assembly = _referenceResolver(refernceName); return assembly != null; } internal override IEnumerable GetWildcardAssemblies() { IEnumerable wildcardAssemblies = _wildcardAssemblyEnumerator(); if (wildcardAssemblies == null) { throw EntityUtil.InvalidOperation(Strings.WildcardEnumeratorReturnedNull); } return wildcardAssemblies; } } } // 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
- CapabilitiesSection.cs
- IDReferencePropertyAttribute.cs
- ITextView.cs
- ReceiveMessageContent.cs
- TextServicesCompartment.cs
- RoutedCommand.cs
- ColorContextHelper.cs
- PropertyInfoSet.cs
- ServiceModelSecurityTokenRequirement.cs
- XMLSyntaxException.cs
- MetadataCache.cs
- InspectionWorker.cs
- RegexBoyerMoore.cs
- UdpMessageProperty.cs
- JsonCollectionDataContract.cs
- _SslStream.cs
- LocalizationComments.cs
- TableLayoutCellPaintEventArgs.cs
- StrokeCollectionDefaultValueFactory.cs
- XamlValidatingReader.cs
- ThemeableAttribute.cs
- TreeNode.cs
- IsolationInterop.cs
- CheckBoxAutomationPeer.cs
- CircleHotSpot.cs
- WebServiceMethodData.cs
- BreakRecordTable.cs
- ContextMenuService.cs
- ExternalException.cs
- ArgIterator.cs
- BinaryFormatter.cs
- RIPEMD160.cs
- Command.cs
- WindowsTreeView.cs
- XmlQualifiedName.cs
- DisplayClaim.cs
- QuaternionAnimation.cs
- DebugInfoGenerator.cs
- ArrayWithOffset.cs
- LassoSelectionBehavior.cs
- HttpListenerContext.cs
- ModelTreeEnumerator.cs
- EntityStoreSchemaGenerator.cs
- Inflater.cs
- PersonalizationProviderHelper.cs
- SerializableAttribute.cs
- WorkflowEnvironment.cs
- PauseStoryboard.cs
- SqlProfileProvider.cs
- FormatterConverter.cs
- CodeAssignStatement.cs
- AutoCompleteStringCollection.cs
- SymbolEqualComparer.cs
- SQLByteStorage.cs
- ConfigurationSettings.cs
- SizeConverter.cs
- Itemizer.cs
- RecipientIdentity.cs
- RegexRunnerFactory.cs
- NumberSubstitution.cs
- CompensationHandlingFilter.cs
- EventMappingSettingsCollection.cs
- XmlSignatureManifest.cs
- TreeView.cs
- MenuItemCollection.cs
- XmlDataImplementation.cs
- ProcessHostMapPath.cs
- NavigationCommands.cs
- FormatterServicesNoSerializableCheck.cs
- AsyncWaitHandle.cs
- TextEvent.cs
- FormViewDeleteEventArgs.cs
- AutoGeneratedField.cs
- PathGeometry.cs
- HttpRawResponse.cs
- SetIterators.cs
- XmlSignatureManifest.cs
- StdValidatorsAndConverters.cs
- XmlSchema.cs
- ConnectionManager.cs
- TextProviderWrapper.cs
- AuthenticationManager.cs
- XmlDataSourceView.cs
- SynchronizationLockException.cs
- XPathPatternParser.cs
- ProcessHostMapPath.cs
- StylusDevice.cs
- TemplateNameScope.cs
- httpapplicationstate.cs
- SessionState.cs
- GeneralTransform3DCollection.cs
- StrokeSerializer.cs
- SelectorAutomationPeer.cs
- ProfileSection.cs
- ConfigurationPropertyCollection.cs
- XmlBinaryReader.cs
- DataBoundControlHelper.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ZipIOLocalFileDataDescriptor.cs
- TraceLog.cs