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
- TokenBasedSet.cs
- DBDataPermission.cs
- CodeEntryPointMethod.cs
- SyndicationFeedFormatter.cs
- TransactionScope.cs
- SiteMapDataSourceView.cs
- DispatcherEventArgs.cs
- CodeCatchClause.cs
- WindowsListViewGroupHelper.cs
- ProbeMatchesMessageCD1.cs
- PageBreakRecord.cs
- IntSecurity.cs
- TransactionInformation.cs
- StateDesigner.Layouts.cs
- ConnectionsZone.cs
- DataMemberListEditor.cs
- MetadataArtifactLoader.cs
- COMException.cs
- ExtentKey.cs
- SettingsPropertyIsReadOnlyException.cs
- SoapException.cs
- CompareInfo.cs
- Random.cs
- BrowserDefinition.cs
- ChildTable.cs
- InputReferenceExpression.cs
- ColorDialog.cs
- FixedSOMLineRanges.cs
- ActiveXContainer.cs
- TextBreakpoint.cs
- DictionaryCustomTypeDescriptor.cs
- BoolExpressionVisitors.cs
- PrimarySelectionGlyph.cs
- LinqDataSourceContextData.cs
- RectIndependentAnimationStorage.cs
- SafeRightsManagementPubHandle.cs
- ISessionStateStore.cs
- ListViewGroup.cs
- NullableIntAverageAggregationOperator.cs
- CallContext.cs
- NativeMethods.cs
- SettingsContext.cs
- AdjustableArrowCap.cs
- DataServiceContext.cs
- MessageAction.cs
- ReplacementText.cs
- WindowVisualStateTracker.cs
- RecognizerBase.cs
- TypeSystem.cs
- itemelement.cs
- XmlILOptimizerVisitor.cs
- Journaling.cs
- LoadGrammarCompletedEventArgs.cs
- DBNull.cs
- WarningException.cs
- FixedSOMPage.cs
- TemplatePagerField.cs
- KnownTypesHelper.cs
- ProgressPage.cs
- RegexWriter.cs
- AuthenticationException.cs
- IntranetCredentialPolicy.cs
- GridViewRowCollection.cs
- QilSortKey.cs
- ConsoleTraceListener.cs
- IndexerNameAttribute.cs
- InkCanvasAutomationPeer.cs
- ParallelTimeline.cs
- EastAsianLunisolarCalendar.cs
- SmtpLoginAuthenticationModule.cs
- RadioButtonFlatAdapter.cs
- PixelFormatConverter.cs
- xmlfixedPageInfo.cs
- ProfileProvider.cs
- VisualState.cs
- ConnectionsZone.cs
- ControlCachePolicy.cs
- smtpconnection.cs
- sqlser.cs
- TaskSchedulerException.cs
- MatrixTransform3D.cs
- HotSpotCollection.cs
- BindingObserver.cs
- ExpressionBuilderContext.cs
- XpsDocument.cs
- ColorTransformHelper.cs
- ConnectionsZone.cs
- SymDocumentType.cs
- PersonalizationStateInfo.cs
- ParameterRefs.cs
- StringFormat.cs
- Overlapped.cs
- CSharpCodeProvider.cs
- tooltip.cs
- ToolStripRenderEventArgs.cs
- UidManager.cs
- IntegerFacetDescriptionElement.cs
- SmtpException.cs
- XmlName.cs
- DependencyPropertyChangedEventArgs.cs