Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ExceptQueryOperator.cs
- WindowsPrincipal.cs
- PrintPreviewControl.cs
- StrokeNodeEnumerator.cs
- ProcessHostMapPath.cs
- StructureChangedEventArgs.cs
- FileLogRecordEnumerator.cs
- DynamicDataManager.cs
- FunctionUpdateCommand.cs
- GeneralTransform3DCollection.cs
- FixedStringLookup.cs
- TypedTableGenerator.cs
- SystemBrushes.cs
- OrderedDictionaryStateHelper.cs
- VisualCollection.cs
- WebPartDisplayMode.cs
- ObjectListGeneralPage.cs
- BitmapMetadata.cs
- StringFreezingAttribute.cs
- WebServiceFaultDesigner.cs
- SystemIPv6InterfaceProperties.cs
- ChtmlTextWriter.cs
- TrackingDataItem.cs
- EmbeddedMailObject.cs
- _NestedMultipleAsyncResult.cs
- ConfigurationManagerInternal.cs
- PenThreadWorker.cs
- WizardForm.cs
- FigureHelper.cs
- PolyLineSegment.cs
- DuplicateWaitObjectException.cs
- DbUpdateCommandTree.cs
- Run.cs
- MatrixCamera.cs
- DLinqTableProvider.cs
- DefaultSection.cs
- MarkerProperties.cs
- ModuleBuilderData.cs
- CacheSection.cs
- SQLChars.cs
- ModelPropertyCollectionImpl.cs
- OperationSelectorBehavior.cs
- NullReferenceException.cs
- TextSelection.cs
- ElementProxy.cs
- CloudCollection.cs
- NumericExpr.cs
- XamlPointCollectionSerializer.cs
- AssemblyAttributesGoHere.cs
- CommandField.cs
- FlowDocumentReader.cs
- CompositeDispatchFormatter.cs
- OperationResponse.cs
- InvokePatternIdentifiers.cs
- TextControl.cs
- PickBranchDesigner.xaml.cs
- TdsParserHelperClasses.cs
- SQLDateTime.cs
- GC.cs
- Menu.cs
- TdsEnums.cs
- StringUtil.cs
- DbConnectionFactory.cs
- ResourceProviderFactory.cs
- objectquery_tresulttype.cs
- XmlChildEnumerator.cs
- ObjectListCommandCollection.cs
- EditorOptionAttribute.cs
- SoapAttributeAttribute.cs
- SqlBulkCopy.cs
- EmbeddedMailObjectsCollection.cs
- FormViewModeEventArgs.cs
- HTMLTagNameToTypeMapper.cs
- ConstraintConverter.cs
- TraceSection.cs
- DbSetClause.cs
- NativeMethodsOther.cs
- SrgsRulesCollection.cs
- typedescriptorpermissionattribute.cs
- ExtendedPropertyDescriptor.cs
- SEHException.cs
- WindowsFormsSectionHandler.cs
- PartialClassGenerationTask.cs
- SQLConvert.cs
- Attachment.cs
- MappedMetaModel.cs
- DesignerVerb.cs
- EqualityComparer.cs
- ListViewHitTestInfo.cs
- TextRangeEdit.cs
- GcHandle.cs
- DataTableNewRowEvent.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- AdornedElementPlaceholder.cs
- VisualTreeFlattener.cs
- SqlNotificationEventArgs.cs
- TaskScheduler.cs
- HttpPostedFileBase.cs
- UserInitiatedNavigationPermission.cs
- SendReply.cs