Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- EdmComplexPropertyAttribute.cs
- XmlArrayAttribute.cs
- SafeLibraryHandle.cs
- DataGridParentRows.cs
- LayoutEvent.cs
- WebAdminConfigurationHelper.cs
- AuthenticationServiceManager.cs
- DesignerUtils.cs
- ContextMenuService.cs
- TimeSpanOrInfiniteConverter.cs
- AutoCompleteStringCollection.cs
- CmsUtils.cs
- DataColumnChangeEvent.cs
- DataDocumentXPathNavigator.cs
- XmlSerializationReader.cs
- ToolTipAutomationPeer.cs
- MultiPageTextView.cs
- PropertySourceInfo.cs
- MexHttpBindingElement.cs
- ProcessModuleCollection.cs
- BackEase.cs
- UnconditionalPolicy.cs
- DesignTimeVisibleAttribute.cs
- ValidationHelper.cs
- TableRowCollection.cs
- PerformanceCounterCategory.cs
- UnsafeNativeMethods.cs
- ConfigsHelper.cs
- ChineseLunisolarCalendar.cs
- Compiler.cs
- Base64Encoding.cs
- QuaternionConverter.cs
- ToolStripSeparatorRenderEventArgs.cs
- RectAnimation.cs
- SoapEnumAttribute.cs
- OptimalTextSource.cs
- AudioBase.cs
- OdbcEnvironmentHandle.cs
- ListViewItem.cs
- ByteStack.cs
- regiisutil.cs
- TargetInvocationException.cs
- Calendar.cs
- ColumnMapVisitor.cs
- ExpressionNormalizer.cs
- ViewStateException.cs
- controlskin.cs
- cache.cs
- StyleSelector.cs
- ContextMenuStripActionList.cs
- HwndMouseInputProvider.cs
- ImageSourceValueSerializer.cs
- ImportContext.cs
- SrgsElementFactory.cs
- InternalBase.cs
- IsolatedStorageException.cs
- RepeatBehavior.cs
- AdornerLayer.cs
- ValueProviderWrapper.cs
- OperationCanceledException.cs
- SafeNativeMethodsMilCoreApi.cs
- TypeBuilder.cs
- XmlSerializerVersionAttribute.cs
- BoolLiteral.cs
- SystemWebSectionGroup.cs
- XmlResolver.cs
- StyleXamlTreeBuilder.cs
- WizardForm.cs
- MutableAssemblyCacheEntry.cs
- DBConcurrencyException.cs
- ProgressBarAutomationPeer.cs
- Rule.cs
- TaiwanCalendar.cs
- MenuItemCollectionEditorDialog.cs
- PropertyPathWorker.cs
- PointCollection.cs
- MatrixConverter.cs
- ObjectDataProvider.cs
- Privilege.cs
- SecurityTokenException.cs
- UniqueIdentifierService.cs
- Exceptions.cs
- SiteMapHierarchicalDataSourceView.cs
- UIElement.cs
- LineInfo.cs
- Module.cs
- EntityDataSourceView.cs
- SrgsSemanticInterpretationTag.cs
- X509Certificate2.cs
- TimeSpanValidatorAttribute.cs
- ExeConfigurationFileMap.cs
- CngProperty.cs
- MembershipSection.cs
- EntityDataSourceDesignerHelper.cs
- AsymmetricSignatureFormatter.cs
- InvalidOperationException.cs
- DbParameterHelper.cs
- CellQuery.cs
- HatchBrush.cs
- Int16Converter.cs