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
- BounceEase.cs
- RowToFieldTransformer.cs
- PersianCalendar.cs
- NullableDoubleAverageAggregationOperator.cs
- CodeArrayCreateExpression.cs
- ModelItemDictionaryImpl.cs
- HashCodeCombiner.cs
- ExpressionConverter.cs
- RuntimeConfigLKG.cs
- AttachmentCollection.cs
- SchemaName.cs
- MbpInfo.cs
- QueryContinueDragEvent.cs
- FaultCallbackWrapper.cs
- PolicyVersion.cs
- serverconfig.cs
- BindingValueChangedEventArgs.cs
- SystemEvents.cs
- DBBindings.cs
- TextEditorLists.cs
- SignedInfo.cs
- ThreadInterruptedException.cs
- ServiceDescriptionReflector.cs
- GridViewRowCollection.cs
- StatusBar.cs
- InternalTypeHelper.cs
- SparseMemoryStream.cs
- SingleBodyParameterMessageFormatter.cs
- shaperfactoryquerycacheentry.cs
- TreeWalkHelper.cs
- HttpWriter.cs
- HopperCache.cs
- Table.cs
- DesignerActionGlyph.cs
- StringSource.cs
- FilteredDataSetHelper.cs
- SqlClientMetaDataCollectionNames.cs
- ToolZone.cs
- ReferenceConverter.cs
- ContainerSelectorActiveEvent.cs
- WmfPlaceableFileHeader.cs
- StatusBarPanelClickEvent.cs
- WebService.cs
- OleDbTransaction.cs
- MissingFieldException.cs
- PropertyOverridesDialog.cs
- NetPeerTcpBindingCollectionElement.cs
- InlinedAggregationOperatorEnumerator.cs
- CurrentChangedEventManager.cs
- TextBoxBaseDesigner.cs
- OracleConnection.cs
- HistoryEventArgs.cs
- XmlElementAttribute.cs
- XmlIlTypeHelper.cs
- BaseCodePageEncoding.cs
- ServiceDesigner.cs
- ExtentJoinTreeNode.cs
- EncodingStreamWrapper.cs
- EventData.cs
- BitmapCache.cs
- LinqToSqlWrapper.cs
- WebPartConnectionsCancelEventArgs.cs
- ImportStoreException.cs
- CodeParameterDeclarationExpression.cs
- RoleService.cs
- TextServicesDisplayAttributePropertyRanges.cs
- DataBindingExpressionBuilder.cs
- XhtmlTextWriter.cs
- EmptyEnumerable.cs
- MessageSecurityProtocolFactory.cs
- WorkflowRuntimeServiceElementCollection.cs
- SharedRuntimeState.cs
- XmlDataSourceView.cs
- GridViewDeleteEventArgs.cs
- IncrementalReadDecoders.cs
- QilTypeChecker.cs
- ScriptingProfileServiceSection.cs
- Utility.cs
- CompiledQuery.cs
- TextRenderingModeValidation.cs
- EntityContainer.cs
- Relationship.cs
- DataSourceHelper.cs
- CodeGroup.cs
- AppSettings.cs
- NavigationProperty.cs
- Rotation3DKeyFrameCollection.cs
- ZoneMembershipCondition.cs
- DataGridViewControlCollection.cs
- TextDecoration.cs
- PasswordBox.cs
- SystemBrushes.cs
- ProxyAttribute.cs
- OdbcConnectionHandle.cs
- ScriptManager.cs
- CodeDirectionExpression.cs
- ButtonBaseAdapter.cs
- ContentElementAutomationPeer.cs
- CompilerCollection.cs
- XmlMtomReader.cs