Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Util / AssemblyUtil.cs / 1305376 / 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
- UserControl.cs
- PolygonHotSpot.cs
- DictionaryGlobals.cs
- SystemEvents.cs
- XsltArgumentList.cs
- ArrayList.cs
- DependencyObjectPropertyDescriptor.cs
- VisualTarget.cs
- HwndSourceParameters.cs
- HealthMonitoringSection.cs
- DataComponentNameHandler.cs
- BitmapEffectDrawingContent.cs
- ResourcePool.cs
- SspiHelper.cs
- RectangleGeometry.cs
- ReversePositionQuery.cs
- GeneralTransform.cs
- CqlBlock.cs
- ContainerParaClient.cs
- FactoryGenerator.cs
- RemoteWebConfigurationHostServer.cs
- DbConnectionPool.cs
- StylusPointDescription.cs
- TypeDependencyAttribute.cs
- Convert.cs
- SerializationBinder.cs
- ObjectContextServiceProvider.cs
- ValidationResult.cs
- QuaternionAnimation.cs
- SqlFormatter.cs
- NameObjectCollectionBase.cs
- HtmlImageAdapter.cs
- ProjectedSlot.cs
- OutputCacheSection.cs
- XDeferredAxisSource.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- EntityContainerRelationshipSet.cs
- GridItemPatternIdentifiers.cs
- ReliableRequestSessionChannel.cs
- MenuItem.cs
- ListChangedEventArgs.cs
- DataBoundControlDesigner.cs
- DuplexSecurityProtocolFactory.cs
- ToolStripDesignerAvailabilityAttribute.cs
- GridViewColumn.cs
- AuthenticateEventArgs.cs
- DeferredReference.cs
- SymbolEqualComparer.cs
- SplashScreenNativeMethods.cs
- SessionStateSection.cs
- StreamReader.cs
- BehaviorEditorPart.cs
- ClonableStack.cs
- _BufferOffsetSize.cs
- ControlParameter.cs
- AuthenticationModeHelper.cs
- BufferBuilder.cs
- FilteredXmlReader.cs
- QilTargetType.cs
- DragStartedEventArgs.cs
- TraceSection.cs
- XhtmlConformanceSection.cs
- SqlMethodCallConverter.cs
- SByteStorage.cs
- Transactions.cs
- BamlLocalizer.cs
- ConfigsHelper.cs
- XPathNode.cs
- DetailsView.cs
- EntityDataSourceSelectedEventArgs.cs
- SoapEnumAttribute.cs
- TextEncodedRawTextWriter.cs
- HttpFileCollection.cs
- DocumentApplicationJournalEntry.cs
- DbDataReader.cs
- StartUpEventArgs.cs
- GridPatternIdentifiers.cs
- AstTree.cs
- CacheMode.cs
- Padding.cs
- NegotiateStream.cs
- Dynamic.cs
- COMException.cs
- WriterOutput.cs
- UnmanagedMemoryStream.cs
- ConfigXmlComment.cs
- SystemResourceHost.cs
- ElementsClipboardData.cs
- BoundColumn.cs
- WindowProviderWrapper.cs
- ToolStripLabel.cs
- ObjectToken.cs
- RegexBoyerMoore.cs
- mansign.cs
- ModelTreeEnumerator.cs
- Italic.cs
- EventManager.cs
- CodeValidator.cs
- Parser.cs
- VisualBrush.cs