Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SqlDelegatedTransaction.cs
- WindowsListViewSubItem.cs
- SeekStoryboard.cs
- SafeTimerHandle.cs
- TabControl.cs
- ComAdminInterfaces.cs
- ColumnMapProcessor.cs
- EventLogInternal.cs
- BitSet.cs
- JsonStringDataContract.cs
- RootBuilder.cs
- SafeIUnknown.cs
- TypeConverterHelper.cs
- DataListCommandEventArgs.cs
- ChoiceConverter.cs
- ValueTypeFixupInfo.cs
- NullableBoolConverter.cs
- CompressedStack.cs
- LinearQuaternionKeyFrame.cs
- IndicCharClassifier.cs
- IpcClientChannel.cs
- XPathPatternBuilder.cs
- MonikerBuilder.cs
- ToolBar.cs
- ShaderRenderModeValidation.cs
- Compilation.cs
- XmlText.cs
- DbMetaDataCollectionNames.cs
- UnsafeNativeMethods.cs
- RepeatBehavior.cs
- ShapeTypeface.cs
- WindowsSolidBrush.cs
- ContainerControl.cs
- ReflectionTypeLoadException.cs
- BitmapImage.cs
- xdrvalidator.cs
- JoinTreeSlot.cs
- DataContract.cs
- CollectionView.cs
- TaskHelper.cs
- SchemaImporterExtensionsSection.cs
- DbConnectionFactory.cs
- SpinWait.cs
- Win32SafeHandles.cs
- TypeUtil.cs
- Identifier.cs
- SiteMapSection.cs
- OracleRowUpdatingEventArgs.cs
- ButtonFlatAdapter.cs
- KeyInfo.cs
- UpDownBase.cs
- CompoundFileIOPermission.cs
- FrameDimension.cs
- DeferredTextReference.cs
- NetworkAddressChange.cs
- KeyToListMap.cs
- MultiPageTextView.cs
- DataGridTextBox.cs
- MessageAction.cs
- Literal.cs
- UIElementCollection.cs
- NetworkCredential.cs
- VBIdentifierDesigner.xaml.cs
- Stylesheet.cs
- EpmContentDeSerializer.cs
- SubpageParaClient.cs
- ProcessInfo.cs
- StylusPlugin.cs
- Html32TextWriter.cs
- WindowsTreeView.cs
- Exceptions.cs
- WebBrowsableAttribute.cs
- HttpProxyCredentialType.cs
- InheritanceAttribute.cs
- DocumentPageView.cs
- FamilyMap.cs
- DataObjectMethodAttribute.cs
- SafeNativeMethods.cs
- EllipseGeometry.cs
- EntityProviderServices.cs
- EventProxy.cs
- EncryptedPackage.cs
- _UncName.cs
- EntityContainer.cs
- InvalidProgramException.cs
- HashHelper.cs
- Number.cs
- StaticSiteMapProvider.cs
- Decoder.cs
- ProfilePropertySettings.cs
- RandomNumberGenerator.cs
- EnumerableWrapperWeakToStrong.cs
- LinearQuaternionKeyFrame.cs
- WebPartHeaderCloseVerb.cs
- ToggleProviderWrapper.cs
- AppDomainShutdownMonitor.cs
- Separator.cs
- PauseStoryboard.cs
- OleDbErrorCollection.cs
- SqlInternalConnectionTds.cs