Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XmlSchemaProviderAttribute.cs
- ImageDrawing.cs
- CultureInfoConverter.cs
- NativeMethods.cs
- BamlLocalizer.cs
- FontStretchConverter.cs
- XmlSchemaSimpleContent.cs
- StringKeyFrameCollection.cs
- HtmlTextArea.cs
- PermissionSetTriple.cs
- KeySpline.cs
- DataPagerFieldCollection.cs
- StorageScalarPropertyMapping.cs
- TextRangeEdit.cs
- BitmapEffectDrawingContextWalker.cs
- PeerNameRecord.cs
- CellTreeNode.cs
- Sentence.cs
- PeerCollaborationPermission.cs
- TableChangeProcessor.cs
- Stack.cs
- ExpandedWrapper.cs
- DocumentEventArgs.cs
- ToolTip.cs
- EntityDataSourceContainerNameConverter.cs
- SystemParameters.cs
- SiblingIterators.cs
- CryptographicAttribute.cs
- AutomationElementCollection.cs
- ServiceHostingEnvironment.cs
- WebRequestModuleElement.cs
- ObjectTag.cs
- PenContexts.cs
- LogicalCallContext.cs
- ReverseInheritProperty.cs
- TextControlDesigner.cs
- FaultImportOptions.cs
- WindowsAltTab.cs
- ExceptionValidationRule.cs
- GcHandle.cs
- SchemaNamespaceManager.cs
- AncestorChangedEventArgs.cs
- ExclusiveCanonicalizationTransform.cs
- FileSecurity.cs
- ItemContainerGenerator.cs
- CDSsyncETWBCLProvider.cs
- ResolveCriteria11.cs
- DataServiceEntityAttribute.cs
- ValidatorUtils.cs
- HttpVersion.cs
- WebPartVerbCollection.cs
- Compiler.cs
- MonitoringDescriptionAttribute.cs
- DataGridLengthConverter.cs
- Point3D.cs
- __Filters.cs
- dbdatarecord.cs
- ImageMapEventArgs.cs
- SafeNativeMethods.cs
- HtmlTableRow.cs
- PeerNameRecordCollection.cs
- ParagraphResult.cs
- LinkConverter.cs
- LabelDesigner.cs
- WindowsSpinner.cs
- LinqDataSourceHelper.cs
- KnownBoxes.cs
- Parallel.cs
- ScriptingAuthenticationServiceSection.cs
- InlineUIContainer.cs
- ObjectItemNoOpAssemblyLoader.cs
- DataGridViewDataErrorEventArgs.cs
- TextDpi.cs
- SourceFilter.cs
- OleDbConnection.cs
- DesignTimeType.cs
- OrthographicCamera.cs
- SqlNode.cs
- SchemaImporter.cs
- Exceptions.cs
- DeviceContext2.cs
- NamespaceDisplay.xaml.cs
- NativeMethods.cs
- SqlCachedBuffer.cs
- ProfileParameter.cs
- UnauthorizedWebPart.cs
- GeneralTransform3D.cs
- DataServiceQueryOfT.cs
- NumberFunctions.cs
- mactripleDES.cs
- RouteData.cs
- LicFileLicenseProvider.cs
- MDIControlStrip.cs
- NullEntityWrapper.cs
- ClientUtils.cs
- BindingBase.cs
- securitycriticaldataformultiplegetandset.cs
- HtmlWindowCollection.cs
- StreamProxy.cs
- DataGridColumn.cs