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
- FileAuthorizationModule.cs
- KnownTypesProvider.cs
- MetadataAssemblyHelper.cs
- FixedSOMLineCollection.cs
- WsdlWriter.cs
- IsolationInterop.cs
- ParameterCollection.cs
- oledbmetadatacollectionnames.cs
- SimpleRecyclingCache.cs
- MaskedTextBoxDesignerActionList.cs
- Compiler.cs
- ScrollItemProviderWrapper.cs
- FieldBuilder.cs
- SmiEventStream.cs
- GregorianCalendar.cs
- DataGridViewCellParsingEventArgs.cs
- FlowLayoutPanelDesigner.cs
- EventDescriptor.cs
- SecurityPolicySection.cs
- ColumnCollectionEditor.cs
- Bidi.cs
- HitTestWithPointDrawingContextWalker.cs
- Rfc2898DeriveBytes.cs
- NullableDoubleSumAggregationOperator.cs
- CompoundFileReference.cs
- ControlBuilder.cs
- SharedUtils.cs
- PtsHelper.cs
- DataShape.cs
- PropertyChangingEventArgs.cs
- RowSpanVector.cs
- KeyMatchBuilder.cs
- FrameSecurityDescriptor.cs
- SafeBitVector32.cs
- MexBindingElement.cs
- _OSSOCK.cs
- TypeBuilderInstantiation.cs
- ApplicationSecurityManager.cs
- DeferredReference.cs
- XPathParser.cs
- IUnknownConstantAttribute.cs
- SiteMapHierarchicalDataSourceView.cs
- AsyncCompletedEventArgs.cs
- HMACSHA384.cs
- CodeCatchClause.cs
- CommentEmitter.cs
- Int16AnimationUsingKeyFrames.cs
- DataContractAttribute.cs
- PageThemeCodeDomTreeGenerator.cs
- RuntimeHelpers.cs
- DeobfuscatingStream.cs
- CatalogPart.cs
- BuildResultCache.cs
- ObjectDataSourceSelectingEventArgs.cs
- TlsnegoTokenProvider.cs
- Shared.cs
- SourceFileBuildProvider.cs
- HtmlInputCheckBox.cs
- AnnouncementEventArgs.cs
- WindowsEditBoxRange.cs
- PrefixHandle.cs
- XmlCharacterData.cs
- ZipIOLocalFileHeader.cs
- ScriptReferenceBase.cs
- BlobPersonalizationState.cs
- CounterCreationData.cs
- EncryptedKeyIdentifierClause.cs
- RemoteCryptoSignHashRequest.cs
- Normalization.cs
- NumericUpDownAcceleration.cs
- Geometry3D.cs
- Context.cs
- TypeDelegator.cs
- ResourceIDHelper.cs
- QueryTreeBuilder.cs
- PathSegmentCollection.cs
- Action.cs
- JsonFormatGeneratorStatics.cs
- HttpModule.cs
- UncommonField.cs
- ExpressionWriter.cs
- RightsManagementEncryptedStream.cs
- RequestTimeoutManager.cs
- SystemResourceKey.cs
- SchemaReference.cs
- Label.cs
- BufferModesCollection.cs
- RepeaterItem.cs
- GridItem.cs
- FieldBuilder.cs
- WebServiceMethodData.cs
- XmlJsonWriter.cs
- XmlNodeComparer.cs
- SynchronousChannelMergeEnumerator.cs
- RankException.cs
- ServiceModelConfigurationSectionGroup.cs
- KeyBinding.cs
- EntityViewContainer.cs
- ToolBarPanel.cs
- BitmapEffectOutputConnector.cs