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
- DescendantBaseQuery.cs
- ValidatingReaderNodeData.cs
- DataGridTableCollection.cs
- DependencyObjectValidator.cs
- MetadataSection.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ByteStreamGeometryContext.cs
- SqlCrossApplyToCrossJoin.cs
- PresentationTraceSources.cs
- SQLGuid.cs
- ChannelServices.cs
- ToolStripControlHost.cs
- LinqDataSourceStatusEventArgs.cs
- SizeConverter.cs
- HtmlWindowCollection.cs
- JpegBitmapDecoder.cs
- DelegateSerializationHolder.cs
- InvalidCommandTreeException.cs
- SQLInt64.cs
- XamlPoint3DCollectionSerializer.cs
- XmlDataSourceNodeDescriptor.cs
- StackSpiller.cs
- FormViewDeleteEventArgs.cs
- ToolStripTemplateNode.cs
- WorkflowDesignerColors.cs
- SqlEnums.cs
- QuestionEventArgs.cs
- pingexception.cs
- NameTable.cs
- WebPartAddingEventArgs.cs
- basecomparevalidator.cs
- MarkerProperties.cs
- WebBaseEventKeyComparer.cs
- BamlLocalizabilityResolver.cs
- QueryCacheKey.cs
- COM2PropertyBuilderUITypeEditor.cs
- Variable.cs
- ToolStripMenuItem.cs
- QueryContinueDragEventArgs.cs
- ConfigurationConverterBase.cs
- ObjectSecurity.cs
- EventLogEntry.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Expression.cs
- SortFieldComparer.cs
- DataGridColumnReorderingEventArgs.cs
- InstanceCollisionException.cs
- SqlCommandAsyncResult.cs
- XPathNodePointer.cs
- DocumentPageView.cs
- BrowserDefinitionCollection.cs
- Row.cs
- StringStorage.cs
- RightsManagementEncryptionTransform.cs
- OdbcErrorCollection.cs
- Guid.cs
- MbpInfo.cs
- ComplexBindingPropertiesAttribute.cs
- ChannelRequirements.cs
- CapabilitiesRule.cs
- XmlAnyElementAttributes.cs
- SiteMap.cs
- SingleSelectRootGridEntry.cs
- ConfigXmlCDataSection.cs
- DeflateEmulationStream.cs
- CipherData.cs
- WebException.cs
- RecordConverter.cs
- TextServicesDisplayAttribute.cs
- OleDragDropHandler.cs
- DesignerProperties.cs
- DataGrid.cs
- Point4D.cs
- KeyValueConfigurationCollection.cs
- IntranetCredentialPolicy.cs
- DataGridViewToolTip.cs
- ProviderConnectionPoint.cs
- MergePropertyDescriptor.cs
- AmbiguousMatchException.cs
- ACL.cs
- SelectedCellsCollection.cs
- SafeCryptoHandles.cs
- InvalidFilterCriteriaException.cs
- GroupQuery.cs
- EncoderExceptionFallback.cs
- SchemaNotation.cs
- ComAwareEventInfo.cs
- BasicCellRelation.cs
- DBNull.cs
- CookieParameter.cs
- Soap.cs
- StyleSheetRefUrlEditor.cs
- NetworkCredential.cs
- SettingsPropertyNotFoundException.cs
- PopupEventArgs.cs
- IconConverter.cs
- HttpPostedFile.cs
- TextFormatterHost.cs
- UriTemplateVariableQueryValue.cs
- SocketInformation.cs