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
- OleDbCommandBuilder.cs
- SiteMapNode.cs
- AppDomainProtocolHandler.cs
- PaintEvent.cs
- DataTableNameHandler.cs
- TypeBuilder.cs
- ResourceLoader.cs
- TreeWalkHelper.cs
- X509Extension.cs
- DrawListViewItemEventArgs.cs
- ClientType.cs
- RoleBoolean.cs
- ProcessModuleCollection.cs
- Triangle.cs
- dsa.cs
- StrokeFIndices.cs
- TableAutomationPeer.cs
- WebPartCancelEventArgs.cs
- TextEndOfParagraph.cs
- TypeBuilderInstantiation.cs
- TemplateComponentConnector.cs
- DataGridViewColumnEventArgs.cs
- ParentUndoUnit.cs
- SeekStoryboard.cs
- QuaternionAnimationUsingKeyFrames.cs
- SystemTcpConnection.cs
- ClientRoleProvider.cs
- CircleHotSpot.cs
- PrinterUnitConvert.cs
- MorphHelpers.cs
- DynamicEndpoint.cs
- ReadOnlyNameValueCollection.cs
- TextTabProperties.cs
- TreeBuilder.cs
- RegistryDataKey.cs
- XmlDocumentFragment.cs
- DetailsViewPagerRow.cs
- Wow64ConfigurationLoader.cs
- Track.cs
- GroupBoxAutomationPeer.cs
- CellTreeNodeVisitors.cs
- DataGridViewHitTestInfo.cs
- CodeConstructor.cs
- SvcMapFile.cs
- EventToken.cs
- DataRecordObjectView.cs
- GPRECT.cs
- SQLDateTimeStorage.cs
- PseudoWebRequest.cs
- DefaultPropertyAttribute.cs
- SoapTypeAttribute.cs
- AssemblyEvidenceFactory.cs
- EventLogInternal.cs
- EtwProvider.cs
- StylusPointProperties.cs
- DocumentViewerBaseAutomationPeer.cs
- SeekStoryboard.cs
- UserMapPath.cs
- TreeBuilder.cs
- ExceptionRoutedEventArgs.cs
- BindingListCollectionView.cs
- cookiecontainer.cs
- TimeStampChecker.cs
- ExpressionLink.cs
- ScaleTransform3D.cs
- SelectorAutomationPeer.cs
- KeyToListMap.cs
- ReadOnlyHierarchicalDataSource.cs
- ExpressionDumper.cs
- PointUtil.cs
- Set.cs
- SiteMapDataSourceView.cs
- DropDownHolder.cs
- ManipulationInertiaStartingEventArgs.cs
- TextViewSelectionProcessor.cs
- ProcessInputEventArgs.cs
- TextCompositionManager.cs
- ImageBrush.cs
- InlinedAggregationOperator.cs
- CharacterString.cs
- DataGridViewAdvancedBorderStyle.cs
- FrameworkRichTextComposition.cs
- ContainerParagraph.cs
- BamlLocalizationDictionary.cs
- PathFigureCollection.cs
- DataGridCaption.cs
- PageBreakRecord.cs
- DataSvcMapFileSerializer.cs
- HostingEnvironmentSection.cs
- DistinctQueryOperator.cs
- HebrewNumber.cs
- OperationInvokerTrace.cs
- OrthographicCamera.cs
- ListView.cs
- TypeSystem.cs
- OletxDependentTransaction.cs
- DotAtomReader.cs
- SiteMapPath.cs
- XmlSchemaComplexType.cs
- EllipseGeometry.cs