Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- RegionInfo.cs
- SafeNativeMethods.cs
- unitconverter.cs
- ControlValuePropertyAttribute.cs
- BitmapInitialize.cs
- CuspData.cs
- ItemMap.cs
- FixedSOMPage.cs
- XmlWellformedWriter.cs
- UnmanagedHandle.cs
- SignatureResourceHelper.cs
- AddInContractAttribute.cs
- GridSplitterAutomationPeer.cs
- OperatorExpressions.cs
- DropShadowEffect.cs
- Vars.cs
- CngKey.cs
- WebPartPersonalization.cs
- PropertyIDSet.cs
- EncodingInfo.cs
- Model3DCollection.cs
- DbMetaDataFactory.cs
- Quad.cs
- DoubleUtil.cs
- PrintControllerWithStatusDialog.cs
- MaterializeFromAtom.cs
- TemplateKeyConverter.cs
- UpdatePanelTriggerCollection.cs
- PrintDialog.cs
- XmlSchemaAttributeGroupRef.cs
- IgnoreFileBuildProvider.cs
- ScrollProviderWrapper.cs
- FontUnitConverter.cs
- _TLSstream.cs
- DefaultTextStoreTextComposition.cs
- XPathNavigatorKeyComparer.cs
- AlignmentYValidation.cs
- HierarchicalDataBoundControl.cs
- SectionRecord.cs
- RecordsAffectedEventArgs.cs
- ResourceReferenceExpression.cs
- HandledMouseEvent.cs
- CmsUtils.cs
- SpeakProgressEventArgs.cs
- TraceProvider.cs
- PreloadedPackages.cs
- XmlSchema.cs
- NullableDoubleMinMaxAggregationOperator.cs
- ConfigurationValidatorBase.cs
- DataSourceNameHandler.cs
- TripleDESCryptoServiceProvider.cs
- PrintingPermissionAttribute.cs
- OperandQuery.cs
- RewritingSimplifier.cs
- CodeLabeledStatement.cs
- SwitchExpression.cs
- GenericAuthenticationEventArgs.cs
- GPStream.cs
- Converter.cs
- TabControl.cs
- BamlTreeMap.cs
- XmlElementAttribute.cs
- DataGridAddNewRow.cs
- SqlTriggerContext.cs
- Matrix3D.cs
- ClassValidator.cs
- _LocalDataStore.cs
- TextPointer.cs
- NamespaceInfo.cs
- XamlRtfConverter.cs
- PreProcessInputEventArgs.cs
- CollaborationHelperFunctions.cs
- CodeActivity.cs
- ContractMapping.cs
- FormsAuthenticationEventArgs.cs
- ProviderConnectionPoint.cs
- TextServicesCompartmentContext.cs
- CollectionCodeDomSerializer.cs
- FileDialog_Vista.cs
- DesignerAutoFormatCollection.cs
- Clipboard.cs
- PanelContainerDesigner.cs
- PrintDialog.cs
- sqlmetadatafactory.cs
- UpDownBaseDesigner.cs
- DispatcherOperation.cs
- HttpCookie.cs
- GridViewHeaderRowPresenter.cs
- VisualTarget.cs
- Converter.cs
- XpsFilter.cs
- UserControlBuildProvider.cs
- querybuilder.cs
- ResourceDefaultValueAttribute.cs
- CommandSet.cs
- VSWCFServiceContractGenerator.cs
- FolderBrowserDialogDesigner.cs
- MemoryPressure.cs
- DebugView.cs
- ScriptManager.cs