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
- ModelItemImpl.cs
- Label.cs
- TemplatedWizardStep.cs
- XmlFormatMapping.cs
- EntityDataSourceSelectedEventArgs.cs
- AxisAngleRotation3D.cs
- VSWCFServiceContractGenerator.cs
- OleStrCAMarshaler.cs
- EventPropertyMap.cs
- KeyConstraint.cs
- TextBox.cs
- EncryptedType.cs
- ConnectionStringsExpressionBuilder.cs
- SiteMapProvider.cs
- ColorTransform.cs
- TextChange.cs
- NetworkInformationException.cs
- UnionCqlBlock.cs
- PropertyGridView.cs
- ConstrainedGroup.cs
- ParseChildrenAsPropertiesAttribute.cs
- CodeArgumentReferenceExpression.cs
- ServiceModelStringsVersion1.cs
- QueryCursorEventArgs.cs
- CodeDirectiveCollection.cs
- KeyGestureValueSerializer.cs
- panel.cs
- PartialTrustValidationBehavior.cs
- XXXOnTypeBuilderInstantiation.cs
- CollectionConverter.cs
- RowUpdatingEventArgs.cs
- WeakReferenceKey.cs
- ElapsedEventArgs.cs
- CqlWriter.cs
- SmiEventStream.cs
- CodeExpressionStatement.cs
- UpdateTranslator.cs
- ContainerUIElement3D.cs
- TextContainerChangeEventArgs.cs
- Composition.cs
- AutomationElement.cs
- StateBag.cs
- EventProvider.cs
- SystemResources.cs
- SrgsRuleRef.cs
- XmlMemberMapping.cs
- TypeUnloadedException.cs
- StrokeIntersection.cs
- DataGridViewRowStateChangedEventArgs.cs
- MeasureData.cs
- PictureBox.cs
- EraserBehavior.cs
- BitmapSizeOptions.cs
- SafeFileHandle.cs
- CreateUserErrorEventArgs.cs
- OleDbError.cs
- ImageDrawing.cs
- Int64KeyFrameCollection.cs
- XmlSchemaChoice.cs
- _UriSyntax.cs
- DateTimeFormatInfoScanner.cs
- HTMLTagNameToTypeMapper.cs
- OneToOneMappingSerializer.cs
- CellCreator.cs
- KeyTimeConverter.cs
- ModelFunction.cs
- SurrogateDataContract.cs
- ConnectorDragDropGlyph.cs
- ClientTargetCollection.cs
- DesignerTransactionCloseEvent.cs
- WebContext.cs
- DetailsViewDesigner.cs
- FormsAuthenticationUserCollection.cs
- CodeSnippetTypeMember.cs
- InstanceData.cs
- MappedMetaModel.cs
- DeviceContext.cs
- FontStretches.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- JoinQueryOperator.cs
- CommonProperties.cs
- RuntimeConfigLKG.cs
- X500Name.cs
- HatchBrush.cs
- securestring.cs
- InfoCardKeyedHashAlgorithm.cs
- NameTable.cs
- ComplexLine.cs
- CurrentTimeZone.cs
- XmlSchemaSimpleContentRestriction.cs
- ProvideValueServiceProvider.cs
- ObjectStateEntryDbDataRecord.cs
- EventSinkActivityDesigner.cs
- DataSourceCache.cs
- EditorZoneAutoFormat.cs
- Hex.cs
- Path.cs
- ContentDisposition.cs
- ActivityCompletionCallbackWrapper.cs
- SqlNotificationEventArgs.cs