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
- AssemblyBuilder.cs
- WebPartChrome.cs
- XmlParserContext.cs
- nulltextcontainer.cs
- RootBrowserWindowProxy.cs
- EntitySetBaseCollection.cs
- SocketPermission.cs
- BindingList.cs
- CodeConstructor.cs
- XmlSchemaSimpleContentRestriction.cs
- InputLanguageCollection.cs
- EntityClassGenerator.cs
- DataReceivedEventArgs.cs
- HttpTransportSecurityElement.cs
- ThreadStartException.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BinHexEncoder.cs
- TextServicesHost.cs
- TextPointer.cs
- DesignTimeTemplateParser.cs
- CompositeKey.cs
- EncodingNLS.cs
- EndpointIdentity.cs
- DataTableReader.cs
- ProfileGroupSettingsCollection.cs
- SignalGate.cs
- SystemIPGlobalStatistics.cs
- DPCustomTypeDescriptor.cs
- CheckBox.cs
- FontWeight.cs
- SamlAuthenticationClaimResource.cs
- ResourcePool.cs
- SymmetricAlgorithm.cs
- CategoryGridEntry.cs
- XmlBoundElement.cs
- NullableFloatSumAggregationOperator.cs
- CheckBoxDesigner.cs
- StyleBamlTreeBuilder.cs
- ISAPIApplicationHost.cs
- StateDesigner.cs
- _FixedSizeReader.cs
- Calendar.cs
- SchemaImporterExtensionElementCollection.cs
- StyleSheetDesigner.cs
- Model3D.cs
- COM2ColorConverter.cs
- InstanceData.cs
- TripleDES.cs
- ArraySubsetEnumerator.cs
- EndOfStreamException.cs
- SingletonChannelAcceptor.cs
- SafeProcessHandle.cs
- MsmqReceiveParameters.cs
- XDRSchema.cs
- ProfileServiceManager.cs
- ObjectAssociationEndMapping.cs
- DrawToolTipEventArgs.cs
- AnimationClockResource.cs
- Code.cs
- IgnoreFileBuildProvider.cs
- SmtpReplyReader.cs
- TextureBrush.cs
- IntMinMaxAggregationOperator.cs
- FormParameter.cs
- WebBrowserDocumentCompletedEventHandler.cs
- JsonWriter.cs
- FieldNameLookup.cs
- ToolboxDataAttribute.cs
- DataObject.cs
- IntSecurity.cs
- NavigationFailedEventArgs.cs
- TemplateNameScope.cs
- StreamGeometryContext.cs
- FileLevelControlBuilderAttribute.cs
- ResourceDescriptionAttribute.cs
- ResourcePermissionBase.cs
- OleDbDataReader.cs
- XmlQueryRuntime.cs
- TypeValidationEventArgs.cs
- XPathAncestorQuery.cs
- HttpServerVarsCollection.cs
- AuthenticationService.cs
- COM2ComponentEditor.cs
- AffineTransform3D.cs
- DataServiceQueryOfT.cs
- PolygonHotSpot.cs
- ClientTarget.cs
- DataTrigger.cs
- _Rfc2616CacheValidators.cs
- TemplateParser.cs
- ReflectionUtil.cs
- MetabaseServerConfig.cs
- ComplexType.cs
- SamlAttribute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DataGridViewBand.cs
- ForwardPositionQuery.cs
- ACE.cs
- RequestValidator.cs
- DocumentEventArgs.cs