Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // // ==--== /*============================================================ ** ** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InheritablePropertyChangeInfo.cs
- TransformCollection.cs
- CustomLineCap.cs
- Context.cs
- ImageCreator.cs
- ActivityTrace.cs
- ProxySimple.cs
- DataPagerFieldItem.cs
- AppDomain.cs
- XamlValidatingReader.cs
- SqlProfileProvider.cs
- FontNameEditor.cs
- URLMembershipCondition.cs
- ExpressionStringBuilder.cs
- XhtmlStyleClass.cs
- Configuration.cs
- TimeSpanMinutesConverter.cs
- ByteFacetDescriptionElement.cs
- DesignerResources.cs
- ASCIIEncoding.cs
- EventMap.cs
- BufferedWebEventProvider.cs
- AssemblyBuilder.cs
- XmlDataProvider.cs
- FileStream.cs
- SecurityProtocol.cs
- NetPipeSection.cs
- SyndicationDeserializer.cs
- XmlLinkedNode.cs
- CellTreeNodeVisitors.cs
- Parser.cs
- ViewStateModeByIdAttribute.cs
- ListViewItem.cs
- NativeMethods.cs
- Int64AnimationUsingKeyFrames.cs
- LastQueryOperator.cs
- GridViewUpdateEventArgs.cs
- DeclarativeCatalogPart.cs
- AnonymousIdentificationModule.cs
- ChtmlTextWriter.cs
- GifBitmapDecoder.cs
- PictureBox.cs
- DbXmlEnabledProviderManifest.cs
- FixedSOMImage.cs
- NumericUpDown.cs
- StructuralType.cs
- SizeChangedInfo.cs
- StylusSystemGestureEventArgs.cs
- Vector3D.cs
- OdbcErrorCollection.cs
- DataGridParentRows.cs
- Polyline.cs
- XamlTreeBuilderBamlRecordWriter.cs
- Directory.cs
- SimpleHandlerFactory.cs
- BookmarkOptionsHelper.cs
- TextTreeTextElementNode.cs
- IInstanceContextProvider.cs
- Token.cs
- LongSumAggregationOperator.cs
- GenericArgumentsUpdater.cs
- AnnotationComponentChooser.cs
- ExpressionNode.cs
- MemberCollection.cs
- BitmapEffectGroup.cs
- DoubleAnimationClockResource.cs
- SqlBuilder.cs
- Win32SafeHandles.cs
- FontEmbeddingManager.cs
- NamedPipeTransportSecurity.cs
- DBParameter.cs
- FillErrorEventArgs.cs
- ReplyChannelAcceptor.cs
- TypeDependencyAttribute.cs
- ProtocolInformationWriter.cs
- AssemblyAssociatedContentFileAttribute.cs
- Point4DValueSerializer.cs
- IntPtr.cs
- ContainerFilterService.cs
- VectorCollection.cs
- MediaScriptCommandRoutedEventArgs.cs
- StylusCaptureWithinProperty.cs
- entitydatasourceentitysetnameconverter.cs
- ObjectFullSpanRewriter.cs
- ClientData.cs
- DataGridLinkButton.cs
- MutexSecurity.cs
- CookieParameter.cs
- SerializationInfo.cs
- EncoderParameters.cs
- TreeNodeBindingCollection.cs
- ItemCheckEvent.cs
- CodeAttributeArgumentCollection.cs
- PointAnimationClockResource.cs
- NameValuePermission.cs
- TemplateInstanceAttribute.cs
- PackWebRequest.cs
- SiteMapDataSource.cs
- ThrowHelper.cs
- XPathSingletonIterator.cs