Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- HttpCacheParams.cs
- EnumConverter.cs
- PersonalizationStateInfoCollection.cs
- WindowsRebar.cs
- GuidelineSet.cs
- MemberPath.cs
- InfoCardMetadataExchangeClient.cs
- ActivationArguments.cs
- VBIdentifierNameEditor.cs
- httpapplicationstate.cs
- StrongNameKeyPair.cs
- StyleCollection.cs
- ConfigViewGenerator.cs
- BrowserCapabilitiesFactory.cs
- LineBreakRecord.cs
- XmlNamedNodeMap.cs
- DataColumnMapping.cs
- SingleKeyFrameCollection.cs
- LexicalChunk.cs
- _DigestClient.cs
- AddInAttribute.cs
- ExpressionNormalizer.cs
- EventProviderTraceListener.cs
- control.ime.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- SchemaElementDecl.cs
- ObjectStateManager.cs
- OutputScopeManager.cs
- PersonalizationProvider.cs
- SmiSettersStream.cs
- HatchBrush.cs
- SchemaSetCompiler.cs
- NextPreviousPagerField.cs
- EncodingInfo.cs
- DataBindingCollection.cs
- __Filters.cs
- Separator.cs
- CustomValidator.cs
- AsnEncodedData.cs
- AssemblyAssociatedContentFileAttribute.cs
- SBCSCodePageEncoding.cs
- TextOutput.cs
- X509Chain.cs
- RequestSecurityTokenForGetBrowserToken.cs
- FreezableDefaultValueFactory.cs
- Executor.cs
- SafeNativeMethods.cs
- ObjectDataSourceWizardForm.cs
- DbDataAdapter.cs
- CodeEventReferenceExpression.cs
- XdrBuilder.cs
- FormDesigner.cs
- GlobalizationSection.cs
- ConnectorEditor.cs
- FieldBuilder.cs
- NotifyInputEventArgs.cs
- AQNBuilder.cs
- GenericArgumentsUpdater.cs
- SafeRightsManagementHandle.cs
- EnvelopedSignatureTransform.cs
- WebDescriptionAttribute.cs
- ButtonField.cs
- ExpressionPrefixAttribute.cs
- Utils.cs
- ClientUrlResolverWrapper.cs
- LocationReferenceValue.cs
- XmlSecureResolver.cs
- XPathDocument.cs
- SourceFilter.cs
- MenuStrip.cs
- StringWriter.cs
- RuntimeEnvironment.cs
- remotingproxy.cs
- ValidationHelpers.cs
- DefaultValueConverter.cs
- RequestCacheValidator.cs
- GridViewRowPresenter.cs
- ContainerFilterService.cs
- MethodInfo.cs
- SelectionBorderGlyph.cs
- Model3DGroup.cs
- CheckedPointers.cs
- SafeProcessHandle.cs
- XmlSchemaInferenceException.cs
- XmlDocumentType.cs
- Label.cs
- HotSpotCollection.cs
- DataGridViewBand.cs
- WebPartVerb.cs
- EntityDataSourceSelectingEventArgs.cs
- TokenCreationParameter.cs
- UniqueIdentifierService.cs
- TextServicesProperty.cs
- SessionPageStatePersister.cs
- Preprocessor.cs
- SafeNativeMemoryHandle.cs
- UIElement3D.cs
- NullableDoubleSumAggregationOperator.cs
- RegularExpressionValidator.cs
- Win32SafeHandles.cs