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
- AccessDataSourceWizardForm.cs
- TypeInitializationException.cs
- TrailingSpaceComparer.cs
- StaticFileHandler.cs
- TraceSection.cs
- FileInfo.cs
- XmlHierarchyData.cs
- CompilerGeneratedAttribute.cs
- MostlySingletonList.cs
- MulticastNotSupportedException.cs
- SizeLimitedCache.cs
- ControlEvent.cs
- DbSource.cs
- SQlBooleanStorage.cs
- UiaCoreTypesApi.cs
- mediaeventshelper.cs
- DynamicHyperLink.cs
- ComPlusTypeLoader.cs
- ReadWriteSpinLock.cs
- CngProvider.cs
- CodeDirectionExpression.cs
- EnumerableWrapperWeakToStrong.cs
- FactoryRecord.cs
- SqlUserDefinedTypeAttribute.cs
- AssemblyResourceLoader.cs
- DataGridViewAccessibleObject.cs
- CorrelationQuery.cs
- SaveFileDialog.cs
- BaseTemplateBuildProvider.cs
- BoundPropertyEntry.cs
- IgnoreFlushAndCloseStream.cs
- InkSerializer.cs
- HttpCacheParams.cs
- PartitionResolver.cs
- SQLMoney.cs
- SchemaEntity.cs
- ColorPalette.cs
- coordinator.cs
- OleDbRowUpdatedEvent.cs
- OleDbWrapper.cs
- Typography.cs
- PageCatalogPart.cs
- ObjectDataSourceStatusEventArgs.cs
- ReferencedType.cs
- Volatile.cs
- IdentityElement.cs
- CompilerError.cs
- NumberSubstitution.cs
- FormViewModeEventArgs.cs
- FontCacheUtil.cs
- TargetControlTypeCache.cs
- DataGridViewColumnStateChangedEventArgs.cs
- _Connection.cs
- Win32Interop.cs
- XsltLoader.cs
- ChangePassword.cs
- HwndSourceKeyboardInputSite.cs
- GradientSpreadMethodValidation.cs
- InputLanguageProfileNotifySink.cs
- InvokeHandlers.cs
- LineGeometry.cs
- Color.cs
- AssemblyGen.cs
- AttributeTableBuilder.cs
- elementinformation.cs
- HtmlInputFile.cs
- HttpWriter.cs
- Oid.cs
- ScrollChrome.cs
- ConfigurationFileMap.cs
- CompModHelpers.cs
- MarshalDirectiveException.cs
- HelpProvider.cs
- FreezableDefaultValueFactory.cs
- SystemIcmpV4Statistics.cs
- SourceChangedEventArgs.cs
- MetadataCacheItem.cs
- __Error.cs
- TextEditorTyping.cs
- Int16.cs
- DeclarationUpdate.cs
- ProtocolState.cs
- ConsoleKeyInfo.cs
- DurableTimerExtension.cs
- FormatterConverter.cs
- CodePropertyReferenceExpression.cs
- SqlTrackingWorkflowInstance.cs
- RunInstallerAttribute.cs
- TdsEnums.cs
- WebZone.cs
- WindowsComboBox.cs
- SuppressIldasmAttribute.cs
- Permission.cs
- SecureConversationServiceCredential.cs
- shaperfactoryquerycachekey.cs
- SevenBitStream.cs
- EventLogRecord.cs
- WindowsSolidBrush.cs
- DataGridCellInfo.cs
- TreeSet.cs