Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- AssociationSetMetadata.cs
- EventSetter.cs
- AssemblyBuilder.cs
- MatrixValueSerializer.cs
- GuidelineCollection.cs
- ModelPerspective.cs
- CornerRadiusConverter.cs
- TextChange.cs
- ResumeStoryboard.cs
- AnnotationHighlightLayer.cs
- EntityDesignerBuildProvider.cs
- ConfigurationValues.cs
- FacetValueContainer.cs
- ContentPosition.cs
- AutomationAttributeInfo.cs
- ToolStripManager.cs
- StylusSystemGestureEventArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- WebCategoryAttribute.cs
- FileDataSourceCache.cs
- AmbientLight.cs
- EntityViewGenerationAttribute.cs
- RegexReplacement.cs
- RoleManagerSection.cs
- ContentFileHelper.cs
- XPathMessageFilter.cs
- PersonalizableAttribute.cs
- InstancePersistenceCommand.cs
- TableLayoutPanel.cs
- PropertyInformation.cs
- ModifiableIteratorCollection.cs
- BamlTreeMap.cs
- SiteMapNode.cs
- PropertyGridView.cs
- SafeRegistryHandle.cs
- HTMLTextWriter.cs
- StylusButton.cs
- SqlClientWrapperSmiStreamChars.cs
- RichTextBox.cs
- ForceCopyBuildProvider.cs
- AssemblyUtil.cs
- QueryHandler.cs
- SqlTransaction.cs
- NativeMethods.cs
- ToolTipService.cs
- Stack.cs
- UIElementPropertyUndoUnit.cs
- SqlException.cs
- AuthenticationException.cs
- BaseCodePageEncoding.cs
- IDataContractSurrogate.cs
- ToggleProviderWrapper.cs
- AddInToken.cs
- ReaderWriterLock.cs
- TextMessageEncodingBindingElement.cs
- RootBrowserWindow.cs
- ObjectViewEntityCollectionData.cs
- ParserOptions.cs
- OutputScopeManager.cs
- MarkupCompiler.cs
- brushes.cs
- RowToFieldTransformer.cs
- BinaryUtilClasses.cs
- CodeCatchClause.cs
- PreloadedPackages.cs
- QuaternionConverter.cs
- FloaterBaseParaClient.cs
- GridToolTip.cs
- StaticTextPointer.cs
- MenuEventArgs.cs
- CaseStatement.cs
- Error.cs
- prompt.cs
- WizardPanel.cs
- SafeNativeMethods.cs
- TimeoutException.cs
- ProviderIncompatibleException.cs
- ArgumentException.cs
- Operators.cs
- SchemaTableColumn.cs
- IndependentAnimationStorage.cs
- DataFormats.cs
- ErrorFormatter.cs
- SyntaxCheck.cs
- TextFormatterContext.cs
- TextRangeEdit.cs
- XmlElementCollection.cs
- MetadataItemEmitter.cs
- SelectionBorderGlyph.cs
- ServiceOperationDetailViewControl.cs
- TextOnlyOutput.cs
- EventItfInfo.cs
- ToolStripPanel.cs
- ConfigurationValidatorBase.cs
- WinHttpWebProxyFinder.cs
- XPathNavigator.cs
- InternalsVisibleToAttribute.cs
- DayRenderEvent.cs