Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Configuration / Assemblies / AssemblyHash.cs / 1 / AssemblyHash.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** File: AssemblyHash ** ** ** Purpose: ** ** ===========================================================*/ namespace System.Configuration.Assemblies { using System; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] [Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")] public struct AssemblyHash : ICloneable { private AssemblyHashAlgorithm _Algorithm; private byte[] _Value; [Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")] public static readonly AssemblyHash Empty = new AssemblyHash(AssemblyHashAlgorithm.None, null); [Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")] public AssemblyHash(byte[] value) { _Algorithm = AssemblyHashAlgorithm.SHA1; _Value = null; if (value != null) { int length = value.Length; _Value = new byte[length]; Array.Copy(value, _Value, length); } } [Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")] public AssemblyHash(AssemblyHashAlgorithm algorithm, byte[] value) { _Algorithm = algorithm; _Value = null; if (value != null) { int length = value.Length; _Value = new byte[length]; Array.Copy(value, _Value, length); } } // Hash is made up of a byte array and a value from a class of supported // algorithm types. [Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")] public AssemblyHashAlgorithm Algorithm { get { return _Algorithm; } set { _Algorithm = value; } } [Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")] public byte[] GetValue() { return _Value; } [Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")] public void SetValue(byte[] value) { _Value = value; } [Obsolete("The AssemblyHash class has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")] public Object Clone() { return new AssemblyHash(_Algorithm, _Value); } } } // 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
- BitmapSourceSafeMILHandle.cs
- _emptywebproxy.cs
- AudienceUriMode.cs
- EUCJPEncoding.cs
- UnmanagedMemoryStreamWrapper.cs
- XmlSchemaValidator.cs
- DefaultValueMapping.cs
- ApplyImportsAction.cs
- AutoSizeToolBoxItem.cs
- StringUtil.cs
- HtmlInputPassword.cs
- LineUtil.cs
- TextServicesCompartment.cs
- ViewStateChangedEventArgs.cs
- SingleSelectRootGridEntry.cs
- XmlQualifiedNameTest.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- FixedDocumentPaginator.cs
- CqlParserHelpers.cs
- RegexRunnerFactory.cs
- SizeAnimationBase.cs
- OperatingSystem.cs
- BaseParaClient.cs
- Geometry.cs
- ObjectContext.cs
- ParameterCollection.cs
- WebPartVerb.cs
- TextTreeInsertElementUndoUnit.cs
- MultiView.cs
- SkinBuilder.cs
- TextRangeEditTables.cs
- TokenFactoryCredential.cs
- Opcode.cs
- LookupBindingPropertiesAttribute.cs
- TreeView.cs
- KeyGestureConverter.cs
- ResourcesBuildProvider.cs
- TraceLevelHelper.cs
- WriteFileContext.cs
- SrgsGrammar.cs
- QilDataSource.cs
- SqlRetyper.cs
- WsatServiceCertificate.cs
- WebHeaderCollection.cs
- ProviderCommandInfoUtils.cs
- WpfKnownMember.cs
- EdmScalarPropertyAttribute.cs
- AssociationType.cs
- RectangleHotSpot.cs
- glyphs.cs
- StoreContentChangedEventArgs.cs
- ColorPalette.cs
- CodeValidator.cs
- PointLight.cs
- WindowsGrip.cs
- RegexGroup.cs
- BuildProvider.cs
- ExpressionEditorAttribute.cs
- UserUseLicenseDictionaryLoader.cs
- PolyBezierSegment.cs
- SettingsPropertyValueCollection.cs
- NullRuntimeConfig.cs
- ProxyFragment.cs
- DataGridViewTopRowAccessibleObject.cs
- CollectionExtensions.cs
- SingleObjectCollection.cs
- DetailsViewAutoFormat.cs
- UnauthorizedWebPart.cs
- ToolStripItemRenderEventArgs.cs
- Keyboard.cs
- _HelperAsyncResults.cs
- FormViewUpdatedEventArgs.cs
- Attachment.cs
- StatusBarPanelClickEvent.cs
- Link.cs
- EntityDataSourceChangedEventArgs.cs
- SpecialFolderEnumConverter.cs
- DataGridDetailsPresenter.cs
- MouseCaptureWithinProperty.cs
- XmlValueConverter.cs
- Reference.cs
- HtmlEmptyTagControlBuilder.cs
- MarkerProperties.cs
- EventProperty.cs
- CodeValidator.cs
- IteratorFilter.cs
- ImageIndexConverter.cs
- OpenTypeLayout.cs
- AssemblyResourceLoader.cs
- EntityDesignerUtils.cs
- DateTimeOffset.cs
- StringConcat.cs
- CqlBlock.cs
- DataSet.cs
- Int32Collection.cs
- ListViewItem.cs
- BitStack.cs
- PrimitiveCodeDomSerializer.cs
- PropertyNames.cs
- CacheMemory.cs