Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StylusPointDescription.cs
- ButtonStandardAdapter.cs
- SourceFilter.cs
- PerformanceCounterNameAttribute.cs
- RegisterResponseInfo.cs
- EntityParameter.cs
- RijndaelManagedTransform.cs
- EraserBehavior.cs
- StackBuilderSink.cs
- SerialStream.cs
- x509utils.cs
- Image.cs
- DataSourceCacheDurationConverter.cs
- TraceUtility.cs
- UnsafeNativeMethods.cs
- DataTemplate.cs
- assemblycache.cs
- LoginCancelEventArgs.cs
- FontStretch.cs
- Section.cs
- InputScopeAttribute.cs
- TypeDescriptionProviderAttribute.cs
- TableRowsCollectionEditor.cs
- ServiceDeploymentInfo.cs
- XmlSchemaIdentityConstraint.cs
- DataTransferEventArgs.cs
- TreeViewEvent.cs
- DbMetaDataCollectionNames.cs
- LocalizableAttribute.cs
- ProjectionPlan.cs
- HttpPostedFile.cs
- RenderTargetBitmap.cs
- HasCopySemanticsAttribute.cs
- AmbientProperties.cs
- MissingManifestResourceException.cs
- XmlSerializerSection.cs
- SafeFileMapViewHandle.cs
- WindowsListBox.cs
- Size.cs
- DataGridHeaderBorder.cs
- ConfigXmlWhitespace.cs
- sqlmetadatafactory.cs
- followingsibling.cs
- DataGridTextColumn.cs
- RadioButtonBaseAdapter.cs
- DocumentPageHost.cs
- remotingproxy.cs
- querybuilder.cs
- CodeExpressionStatement.cs
- ParallelForEach.cs
- FrugalList.cs
- SortFieldComparer.cs
- XPathNavigator.cs
- XPathExpr.cs
- StringToken.cs
- ConfigXmlComment.cs
- BufferedOutputStream.cs
- Effect.cs
- DesignSurfaceCollection.cs
- GlobalEventManager.cs
- NumericPagerField.cs
- NameValuePair.cs
- DropShadowBitmapEffect.cs
- LayoutTable.cs
- XmlSchemaImport.cs
- FamilyTypeface.cs
- EventPropertyMap.cs
- XmlElementCollection.cs
- Rect3D.cs
- _NtlmClient.cs
- DrawingContextWalker.cs
- HybridDictionary.cs
- ItemContainerProviderWrapper.cs
- TableLayoutPanelBehavior.cs
- _NetRes.cs
- TrackingProfile.cs
- WebPartCatalogCloseVerb.cs
- DesignerHelpers.cs
- SectionUpdates.cs
- GuidConverter.cs
- WebReferencesBuildProvider.cs
- ProcessHost.cs
- PropertyEmitter.cs
- EventlogProvider.cs
- InvalidDataException.cs
- MetadataFile.cs
- Trace.cs
- ColumnBinding.cs
- EntityProxyTypeInfo.cs
- ProjectionCamera.cs
- BufferedStream.cs
- Byte.cs
- XmlWriter.cs
- ObjectDataSource.cs
- Stream.cs
- SymLanguageVendor.cs
- _SpnDictionary.cs
- IBuiltInEvidence.cs
- WebPageTraceListener.cs
- RelatedImageListAttribute.cs