Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GridViewSelectEventArgs.cs
- XmlSerializerAssemblyAttribute.cs
- StrokeCollection.cs
- messageonlyhwndwrapper.cs
- DictionaryEntry.cs
- IdnMapping.cs
- RelatedCurrencyManager.cs
- InkSerializer.cs
- SamlAdvice.cs
- KeyProperty.cs
- NamespaceImport.cs
- CallbackException.cs
- PageThemeCodeDomTreeGenerator.cs
- ClockGroup.cs
- IxmlLineInfo.cs
- FunctionDetailsReader.cs
- SecurityMode.cs
- Int64Storage.cs
- ClientScriptManager.cs
- DriveNotFoundException.cs
- RSAPKCS1SignatureFormatter.cs
- TaskScheduler.cs
- ProfileGroupSettingsCollection.cs
- ClickablePoint.cs
- AttachedAnnotation.cs
- ConfigurationManagerInternalFactory.cs
- CodeTypeReference.cs
- SchemaMerger.cs
- DBAsyncResult.cs
- ThemeableAttribute.cs
- ClientEventManager.cs
- ToolStripPanelCell.cs
- DataBoundControlHelper.cs
- _UncName.cs
- StoryFragments.cs
- ProvidersHelper.cs
- CustomAssemblyResolver.cs
- XmlNodeChangedEventManager.cs
- SuppressMergeCheckAttribute.cs
- RuleSettingsCollection.cs
- DynamicFilter.cs
- GeneralTransform3DCollection.cs
- XmlSchemaSimpleContentExtension.cs
- TraceLevelHelper.cs
- connectionpool.cs
- QueryOperationResponseOfT.cs
- DataStreamFromComStream.cs
- OdbcConnection.cs
- RequestCacheManager.cs
- PropertyBuilder.cs
- Rotation3DAnimation.cs
- GetMemberBinder.cs
- StyleReferenceConverter.cs
- DecoderBestFitFallback.cs
- ManagementObjectCollection.cs
- EntityUtil.cs
- ILGenerator.cs
- BrowserCapabilitiesFactoryBase.cs
- EarlyBoundInfo.cs
- SimpleType.cs
- Bezier.cs
- AdornerPresentationContext.cs
- HashHelpers.cs
- RepeatBehavior.cs
- TempFiles.cs
- InvariantComparer.cs
- HttpStreamMessage.cs
- VersionedStreamOwner.cs
- TextTreeTextNode.cs
- MatrixValueSerializer.cs
- TextTreeUndo.cs
- MouseCaptureWithinProperty.cs
- MSAANativeProvider.cs
- SupportsPreviewControlAttribute.cs
- documentsequencetextcontainer.cs
- ForeignKeyConstraint.cs
- PeerContact.cs
- NetDataContractSerializer.cs
- UInt16.cs
- HashJoinQueryOperatorEnumerator.cs
- FileUpload.cs
- DragStartedEventArgs.cs
- ListViewItem.cs
- SimpleBitVector32.cs
- DetailsView.cs
- ExpanderAutomationPeer.cs
- MessageHeaderDescription.cs
- XmlSchemaDocumentation.cs
- StylusTip.cs
- SqlBulkCopy.cs
- DataGridViewRowCollection.cs
- UpdateManifestForBrowserApplication.cs
- ConstrainedGroup.cs
- DataGridViewCheckBoxCell.cs
- PackageRelationshipSelector.cs
- HostedImpersonationContext.cs
- VisualBasicSettingsHandler.cs
- DateRangeEvent.cs
- LinqDataSourceStatusEventArgs.cs
- TraceHandlerErrorFormatter.cs