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
- DataGridTextBox.cs
- LineInfo.cs
- SqlBulkCopy.cs
- BCLDebug.cs
- StringConverter.cs
- DbConnectionPoolOptions.cs
- CanonicalizationDriver.cs
- StorageEndPropertyMapping.cs
- NumberFormatter.cs
- MembershipValidatePasswordEventArgs.cs
- BamlVersionHeader.cs
- DataGridViewAdvancedBorderStyle.cs
- input.cs
- MLangCodePageEncoding.cs
- SendingRequestEventArgs.cs
- TransportManager.cs
- ObjectNavigationPropertyMapping.cs
- Debug.cs
- ExpressionContext.cs
- Help.cs
- documentsequencetextcontainer.cs
- ZipIOLocalFileHeader.cs
- ItemCheckedEvent.cs
- SelectionChangedEventArgs.cs
- ControlEvent.cs
- RoutedEventValueSerializer.cs
- HttpCacheParams.cs
- DecoderReplacementFallback.cs
- ToolStripItemTextRenderEventArgs.cs
- FilterEventArgs.cs
- TableItemStyle.cs
- SqlInternalConnection.cs
- DbCommandDefinition.cs
- AppearanceEditorPart.cs
- DebugView.cs
- ImageField.cs
- IndexedWhereQueryOperator.cs
- ReadOnlyHierarchicalDataSource.cs
- TypeHelper.cs
- StoreContentChangedEventArgs.cs
- NotifyIcon.cs
- Literal.cs
- HitTestParameters.cs
- ExpressionNode.cs
- NavigationCommands.cs
- ImportCatalogPart.cs
- DefaultParameterValueAttribute.cs
- TypedTableGenerator.cs
- SystemResources.cs
- DoWorkEventArgs.cs
- PasswordRecovery.cs
- ListViewDesigner.cs
- TextFragmentEngine.cs
- TreeNodeStyle.cs
- AsyncMethodInvoker.cs
- ContextInformation.cs
- BitStack.cs
- SmtpReplyReaderFactory.cs
- altserialization.cs
- VariantWrapper.cs
- CompoundFileIOPermission.cs
- Membership.cs
- PropertyGridEditorPart.cs
- PropertyFilterAttribute.cs
- CancelRequestedRecord.cs
- DbConnectionStringBuilder.cs
- UpdateTranslator.cs
- ExecutionEngineException.cs
- DataSourceCacheDurationConverter.cs
- CssTextWriter.cs
- Item.cs
- KeyPullup.cs
- QuaternionKeyFrameCollection.cs
- _DynamicWinsockMethods.cs
- HtmlImage.cs
- DataSourceUtil.cs
- WindowsFormsEditorServiceHelper.cs
- SafeFileMappingHandle.cs
- HwndStylusInputProvider.cs
- TypeValidationEventArgs.cs
- DeferredReference.cs
- TransformPattern.cs
- FocusManager.cs
- RoutedEventArgs.cs
- PathParser.cs
- PropertyEntry.cs
- StateBag.cs
- Setter.cs
- StaticFileHandler.cs
- ZoneButton.cs
- GCHandleCookieTable.cs
- GridViewRowPresenterBase.cs
- Int32CAMarshaler.cs
- DependencyPropertyAttribute.cs
- DataPagerFieldItem.cs
- ControlCollection.cs
- DriveInfo.cs
- LowerCaseStringConverter.cs
- FontUnit.cs
- RoutedPropertyChangedEventArgs.cs