Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- cookieexception.cs
- SqlInternalConnection.cs
- HtmlInputPassword.cs
- InvalidMessageContractException.cs
- AmbientEnvironment.cs
- WS2007HttpBinding.cs
- DiscoveryDocumentReference.cs
- XamlGridLengthSerializer.cs
- KeysConverter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- Rect3DConverter.cs
- InvokePatternIdentifiers.cs
- TextDecorationCollection.cs
- WindowClosedEventArgs.cs
- LassoHelper.cs
- CodeAccessSecurityEngine.cs
- PropertyEmitter.cs
- HttpRequestCacheValidator.cs
- Variable.cs
- CodeFieldReferenceExpression.cs
- DbExpressionBuilder.cs
- DataGridColumnHeaderAutomationPeer.cs
- OpenTypeCommon.cs
- securitycriticaldataformultiplegetandset.cs
- HtmlValidationSummaryAdapter.cs
- StrokeSerializer.cs
- TextParaLineResult.cs
- DataGridItemCollection.cs
- SelectorItemAutomationPeer.cs
- GroupByExpressionRewriter.cs
- OracleBFile.cs
- CompiledRegexRunner.cs
- XmlAtomicValue.cs
- smtpconnection.cs
- WindowsGraphicsWrapper.cs
- BinaryMethodMessage.cs
- DataKeyArray.cs
- DataSourceControl.cs
- ServiceHostingEnvironmentSection.cs
- PrintDialog.cs
- ControlEvent.cs
- ClientEventManager.cs
- ValueProviderWrapper.cs
- SqlDataRecord.cs
- hresults.cs
- DatasetMethodGenerator.cs
- CodeIdentifier.cs
- KoreanCalendar.cs
- WorkflowFormatterBehavior.cs
- DetailsViewDeleteEventArgs.cs
- PointAnimation.cs
- WebBrowserBase.cs
- DiagnosticsConfiguration.cs
- Propagator.Evaluator.cs
- BaseCollection.cs
- X509SecurityTokenAuthenticator.cs
- PowerStatus.cs
- InfiniteIntConverter.cs
- WindowAutomationPeer.cs
- DataObject.cs
- Camera.cs
- SaveFileDialog.cs
- Pts.cs
- RtfToXamlLexer.cs
- HttpHandlersSection.cs
- WindowsIdentity.cs
- WebPartDescriptionCollection.cs
- XMLUtil.cs
- ReadOnlyTernaryTree.cs
- StrongNameMembershipCondition.cs
- EventItfInfo.cs
- Ipv6Element.cs
- ComponentEvent.cs
- RegistrationServices.cs
- UICuesEvent.cs
- SQLSingleStorage.cs
- ListDictionaryInternal.cs
- WebMessageEncodingElement.cs
- ArgumentNullException.cs
- SignatureDescription.cs
- ToolStripItemImageRenderEventArgs.cs
- MobileControlDesigner.cs
- SafeHandle.cs
- Line.cs
- PagedDataSource.cs
- RoleManagerEventArgs.cs
- OneWayBindingElementImporter.cs
- FrameworkName.cs
- FormParameter.cs
- ConfigXmlComment.cs
- XslNumber.cs
- SafeNativeMethodsOther.cs
- Container.cs
- ExceptionUtil.cs
- HttpCookiesSection.cs
- WebPartUtil.cs
- ReachPageContentCollectionSerializerAsync.cs
- TrustManager.cs
- StrokeSerializer.cs
- Schedule.cs