Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Configuration / Assemblies / AssemblyHash.cs / 1305376 / 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
- UnsafeNativeMethods.cs
- StandardCommands.cs
- PersonalizationStateQuery.cs
- BoundField.cs
- ThumbAutomationPeer.cs
- VersionedStreamOwner.cs
- FontCacheLogic.cs
- ResourcePermissionBase.cs
- DataGridViewRowHeaderCell.cs
- Identity.cs
- ThreadAttributes.cs
- DocumentGridPage.cs
- GZipDecoder.cs
- IsolationInterop.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- PrintController.cs
- ConstantSlot.cs
- ProcessInfo.cs
- PerformanceCounterTraceRecord.cs
- WindowsSpinner.cs
- WorkItem.cs
- TypeUtil.cs
- BinaryKeyIdentifierClause.cs
- DataGridPagerStyle.cs
- safelink.cs
- InOutArgumentConverter.cs
- InfoCardSymmetricCrypto.cs
- CriticalFinalizerObject.cs
- TextPatternIdentifiers.cs
- HideDisabledControlAdapter.cs
- DbCommandTree.cs
- RecognizerBase.cs
- OleDbError.cs
- KerberosSecurityTokenAuthenticator.cs
- WindowsListViewScroll.cs
- DataGridViewCellStateChangedEventArgs.cs
- Int32CollectionConverter.cs
- PersistStreamTypeWrapper.cs
- DynamicObject.cs
- TreeNode.cs
- DataObjectFieldAttribute.cs
- DateTimeConverter2.cs
- ResourceAttributes.cs
- ViewEventArgs.cs
- UpdateCommandGenerator.cs
- FormCollection.cs
- SortQuery.cs
- FixedSOMTextRun.cs
- RequestCachePolicyConverter.cs
- SymmetricSecurityProtocol.cs
- PerfProviderCollection.cs
- MemberHolder.cs
- WebMethodAttribute.cs
- LogicalChannel.cs
- Rect3DValueSerializer.cs
- DesignBinding.cs
- SafeEventLogWriteHandle.cs
- RegexCapture.cs
- MasterPageBuildProvider.cs
- ProxyWebPartManager.cs
- CodeExporter.cs
- FillErrorEventArgs.cs
- OleDbStruct.cs
- _NativeSSPI.cs
- StylusEditingBehavior.cs
- XPathNavigatorReader.cs
- SoapReflectionImporter.cs
- CultureTableRecord.cs
- SqlUserDefinedAggregateAttribute.cs
- Label.cs
- DefaultPropertyAttribute.cs
- BlockCollection.cs
- CollectionsUtil.cs
- WeakReferenceList.cs
- streamingZipPartStream.cs
- XmlEntityReference.cs
- CompilationRelaxations.cs
- InstanceStoreQueryResult.cs
- ObjectDataProvider.cs
- Point4DValueSerializer.cs
- CodeCatchClause.cs
- ValueTypeFixupInfo.cs
- ClockController.cs
- HwndSourceKeyboardInputSite.cs
- ApplicationActivator.cs
- SimpleType.cs
- MultipleViewPattern.cs
- WebMessageBodyStyleHelper.cs
- FormsAuthenticationConfiguration.cs
- CursorConverter.cs
- BitmapEffectInput.cs
- Profiler.cs
- QfeChecker.cs
- GridViewColumnCollection.cs
- VariableDesigner.xaml.cs
- SafeFindHandle.cs
- ButtonChrome.cs
- Translator.cs
- X509Certificate2Collection.cs
- TransformerTypeCollection.cs