Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Trustee.cs
- ResXDataNode.cs
- DataSourceXmlSubItemAttribute.cs
- Logging.cs
- XmlObjectSerializerWriteContextComplex.cs
- IntSecurity.cs
- EntityDataSourceContextCreatingEventArgs.cs
- WeakReference.cs
- Metadata.cs
- ItemChangedEventArgs.cs
- QuaternionConverter.cs
- InterleavedZipPartStream.cs
- Function.cs
- BidOverLoads.cs
- StringToken.cs
- PermissionSetEnumerator.cs
- XmlUtil.cs
- ComponentManagerBroker.cs
- GridViewSelectEventArgs.cs
- DrawingAttributeSerializer.cs
- WindowsToolbar.cs
- ActivitySurrogate.cs
- DbConnectionPool.cs
- PerformanceCounterCategory.cs
- CollectionViewGroup.cs
- DoubleCollectionConverter.cs
- UserPreferenceChangingEventArgs.cs
- ElementUtil.cs
- WebPartConnectionsCancelEventArgs.cs
- _emptywebproxy.cs
- MembershipUser.cs
- DSASignatureFormatter.cs
- SqlDelegatedTransaction.cs
- AggregateNode.cs
- DoubleAnimationClockResource.cs
- CounterSampleCalculator.cs
- DataContext.cs
- TypeNameConverter.cs
- List.cs
- UiaCoreProviderApi.cs
- BasicViewGenerator.cs
- XmlCodeExporter.cs
- DataGridViewHitTestInfo.cs
- DataTableNewRowEvent.cs
- TextLineBreak.cs
- CompoundFileIOPermission.cs
- TypeConverterHelper.cs
- ReadOnlyTernaryTree.cs
- NonPrimarySelectionGlyph.cs
- RadioButtonList.cs
- MethodSignatureGenerator.cs
- DriveInfo.cs
- Stroke.cs
- CompressedStack.cs
- TranslateTransform.cs
- Utils.cs
- XamlSerializerUtil.cs
- FileSystemWatcher.cs
- WebPartConnectionsCancelVerb.cs
- ToolZone.cs
- GridEntry.cs
- Enum.cs
- ActivityDesignerAccessibleObject.cs
- XmlPropertyBag.cs
- QilPatternFactory.cs
- MD5.cs
- NamespaceMapping.cs
- ProjectionPlan.cs
- LinkClickEvent.cs
- UnsafeNativeMethods.cs
- EditCommandColumn.cs
- SpAudioStreamWrapper.cs
- MetafileHeader.cs
- XmlTextReaderImpl.cs
- MediaTimeline.cs
- ContentValidator.cs
- ListControl.cs
- ContractComponent.cs
- CriticalHandle.cs
- SecureConversationDriver.cs
- ScrollViewerAutomationPeer.cs
- ParserContext.cs
- ChangeToolStripParentVerb.cs
- EditBehavior.cs
- ClientUrlResolverWrapper.cs
- CurrentTimeZone.cs
- SpeechEvent.cs
- XmlDataDocument.cs
- ByteKeyFrameCollection.cs
- SafeRightsManagementPubHandle.cs
- ListViewItemEventArgs.cs
- HttpFileCollection.cs
- TrustSection.cs
- DataGridViewUtilities.cs
- ColorBlend.cs
- FileIOPermission.cs
- TableRowCollection.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ToolStripButton.cs
- DiagnosticsElement.cs