Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / Util / AssemblyUtil.cs / 1 / AssemblyUtil.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Reflection; namespace System.Web.Util { internal static class AssemblyUtil { private const string _emptyFileVersion = "0.0.0.0"; public static string GetAssemblyFileVersion(Assembly assembly) { AssemblyFileVersionAttribute[] attributes = (AssemblyFileVersionAttribute[])assembly.GetCustomAttributes(typeof(AssemblyFileVersionAttribute), false); string version; if (attributes.Length > 0) { version = attributes[0].Version; if (String.IsNullOrEmpty(version)) { version = _emptyFileVersion; } } else { version = _emptyFileVersion; } return version; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Reflection; namespace System.Web.Util { internal static class AssemblyUtil { private const string _emptyFileVersion = "0.0.0.0"; public static string GetAssemblyFileVersion(Assembly assembly) { AssemblyFileVersionAttribute[] attributes = (AssemblyFileVersionAttribute[])assembly.GetCustomAttributes(typeof(AssemblyFileVersionAttribute), false); string version; if (attributes.Length > 0) { version = attributes[0].Version; if (String.IsNullOrEmpty(version)) { version = _emptyFileVersion; } } else { version = _emptyFileVersion; } return version; } } } // 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
- DataGridItemEventArgs.cs
- Select.cs
- SimpleHandlerBuildProvider.cs
- LocalizationParserHooks.cs
- RegexNode.cs
- Converter.cs
- MatrixValueSerializer.cs
- InplaceBitmapMetadataWriter.cs
- CacheVirtualItemsEvent.cs
- DefaultValueConverter.cs
- ToolStripProgressBar.cs
- XPathScanner.cs
- Exceptions.cs
- EntityUtil.cs
- XPathDescendantIterator.cs
- ReadOnlyDictionary.cs
- FieldNameLookup.cs
- CrossSiteScriptingValidation.cs
- ChannelListenerBase.cs
- CheckBox.cs
- RequestContextBase.cs
- PackageRelationshipSelector.cs
- AppDomainManager.cs
- PresentationSource.cs
- SystemSounds.cs
- StandardToolWindows.cs
- SafeViewOfFileHandle.cs
- ScriptControlManager.cs
- DataGridViewCellStyleChangedEventArgs.cs
- EntityDataSourceViewSchema.cs
- GeneralTransformCollection.cs
- ExpressionPrinter.cs
- Rect3DConverter.cs
- FormViewRow.cs
- SizeChangedEventArgs.cs
- AccessorTable.cs
- CodeAttachEventStatement.cs
- TraceSection.cs
- DesignerCategoryAttribute.cs
- FixedDocument.cs
- StateRuntime.cs
- DesignerTransactionCloseEvent.cs
- Translator.cs
- InputLanguage.cs
- QilStrConcat.cs
- MethodAccessException.cs
- XPathDocument.cs
- HttpBrowserCapabilitiesBase.cs
- ListControl.cs
- Facet.cs
- WebServiceReceive.cs
- QueryCacheEntry.cs
- securitycriticaldataformultiplegetandset.cs
- GridViewRowEventArgs.cs
- ByteFacetDescriptionElement.cs
- ListView.cs
- DefaultTextStoreTextComposition.cs
- CodeValidator.cs
- Expression.cs
- ModifierKeysValueSerializer.cs
- SqlLiftWhereClauses.cs
- BuildResultCache.cs
- PhysicalOps.cs
- ParallelQuery.cs
- ContentWrapperAttribute.cs
- AppDomainManager.cs
- DataListItemEventArgs.cs
- XPathArrayIterator.cs
- TableNameAttribute.cs
- DataGridViewCellLinkedList.cs
- COM2IPerPropertyBrowsingHandler.cs
- CustomAttributeFormatException.cs
- httpapplicationstate.cs
- ImageButton.cs
- GenericUriParser.cs
- HandlerBase.cs
- SelectionEditor.cs
- SqlVersion.cs
- WindowsRichEdit.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- RequiredAttributeAttribute.cs
- EntityProviderFactory.cs
- MenuCommand.cs
- XmlKeywords.cs
- ResourceDescriptionAttribute.cs
- IndependentAnimationStorage.cs
- InfoCardAsymmetricCrypto.cs
- VirtualDirectoryMappingCollection.cs
- CheckoutException.cs
- System.Data_BID.cs
- StateRuntime.cs
- Light.cs
- DataSvcMapFileSerializer.cs
- NamespaceDecl.cs
- DiagnosticTraceSchemas.cs
- GetRecipientRequest.cs
- Matrix.cs
- InvalidMessageContractException.cs
- ComponentChangingEvent.cs
- FixedHighlight.cs