Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- PolicyLevel.cs
- BinaryEditor.cs
- StyleHelper.cs
- ImageListUtils.cs
- RequestResizeEvent.cs
- ClientRuntimeConfig.cs
- XmlDeclaration.cs
- SweepDirectionValidation.cs
- XmlILTrace.cs
- PresentationSource.cs
- _OverlappedAsyncResult.cs
- RowUpdatedEventArgs.cs
- TableProviderWrapper.cs
- Misc.cs
- ContainerSelectorActiveEvent.cs
- COAUTHIDENTITY.cs
- QueryableDataSourceHelper.cs
- BuilderElements.cs
- ScalarConstant.cs
- SHA1Managed.cs
- TextRangeEditTables.cs
- RetrieveVirtualItemEventArgs.cs
- StorageBasedPackageProperties.cs
- StateDesigner.CommentLayoutGlyph.cs
- PowerModeChangedEventArgs.cs
- IndicShape.cs
- ProcessRequestArgs.cs
- XPathNavigator.cs
- URLAttribute.cs
- GenericPrincipal.cs
- ClickablePoint.cs
- PropertyFilterAttribute.cs
- UInt32Storage.cs
- codemethodreferenceexpression.cs
- CertificateManager.cs
- ImageCodecInfo.cs
- ObjectDataSourceWizardForm.cs
- X509UI.cs
- DragDropHelper.cs
- ExtenderControl.cs
- DataList.cs
- ResourceCodeDomSerializer.cs
- WsdlBuildProvider.cs
- HtmlInputHidden.cs
- ConfigXmlElement.cs
- SerializerWriterEventHandlers.cs
- DecoderReplacementFallback.cs
- TreeViewImageGenerator.cs
- TreeNodeSelectionProcessor.cs
- TreeView.cs
- _HeaderInfo.cs
- PrimarySelectionAdorner.cs
- NeedSkipTokenVisitor.cs
- CodeIdentifier.cs
- ChannelFactoryBase.cs
- TextRenderer.cs
- TimeSpanSecondsConverter.cs
- OleDbStruct.cs
- AsyncPostBackErrorEventArgs.cs
- ResXDataNode.cs
- QuaternionAnimationUsingKeyFrames.cs
- CodeNamespaceImport.cs
- StreamResourceInfo.cs
- TreeNodeSelectionProcessor.cs
- XPathScanner.cs
- NullableFloatMinMaxAggregationOperator.cs
- ThreadStaticAttribute.cs
- ServicesUtilities.cs
- HttpCacheVaryByContentEncodings.cs
- InputScope.cs
- RequestSecurityTokenResponseCollection.cs
- SpeechDetectedEventArgs.cs
- _LazyAsyncResult.cs
- XmlSchemaSimpleTypeList.cs
- GPPOINTF.cs
- DesignerCategoryAttribute.cs
- DataServiceException.cs
- FlagsAttribute.cs
- MetadataCache.cs
- ACE.cs
- ElementUtil.cs
- WebBrowserProgressChangedEventHandler.cs
- XmlQueryStaticData.cs
- DockPatternIdentifiers.cs
- NamespaceEmitter.cs
- GenerateTemporaryTargetAssembly.cs
- BinaryFormatterWriter.cs
- ApplicationCommands.cs
- PinnedBufferMemoryStream.cs
- EpmHelper.cs
- ResetableIterator.cs
- ExternalFile.cs
- SafeWaitHandle.cs
- MiniCustomAttributeInfo.cs
- PtsCache.cs
- Pair.cs
- EntityDataSourceDataSelectionPanel.cs
- JoinQueryOperator.cs
- PublisherIdentityPermission.cs
- ResourceExpression.cs