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
- PageAsyncTask.cs
- XmlQueryOutput.cs
- ProfessionalColorTable.cs
- SweepDirectionValidation.cs
- EnumerableCollectionView.cs
- FileLoadException.cs
- FtpWebRequest.cs
- SqlCacheDependencyDatabase.cs
- CopyOnWriteList.cs
- EventLog.cs
- DoubleLink.cs
- QueryContinueDragEvent.cs
- configsystem.cs
- PerfCounterSection.cs
- grammarelement.cs
- BridgeDataRecord.cs
- XpsResourcePolicy.cs
- RightNameExpirationInfoPair.cs
- HttpCacheVary.cs
- MetadataFile.cs
- DataRecordInternal.cs
- ChannelBinding.cs
- Section.cs
- WorkflowFileItem.cs
- SQLGuid.cs
- ComAdminInterfaces.cs
- ConnectionProviderAttribute.cs
- CustomErrorsSection.cs
- DictionaryCustomTypeDescriptor.cs
- Win32.cs
- ZoneButton.cs
- OptimalTextSource.cs
- OneToOneMappingSerializer.cs
- CqlBlock.cs
- KeyPressEvent.cs
- Container.cs
- SimpleWorkerRequest.cs
- SerializeAbsoluteContext.cs
- ByteAnimationUsingKeyFrames.cs
- ServiceModelExtensionElement.cs
- TimeStampChecker.cs
- ContextInformation.cs
- ToolStripMenuItem.cs
- ListBindingConverter.cs
- ResourcePermissionBaseEntry.cs
- ParameterElementCollection.cs
- BrushConverter.cs
- ConnectionsZone.cs
- DependencyPropertyHelper.cs
- SHA1Cng.cs
- PlatformCulture.cs
- AuditLog.cs
- ExtendedPropertyInfo.cs
- EdmEntityTypeAttribute.cs
- HostProtectionPermission.cs
- ConfigViewGenerator.cs
- HelpInfo.cs
- InteropDesigner.xaml.cs
- MaskedTextBoxDesigner.cs
- XmlCharCheckingWriter.cs
- Calendar.cs
- AutomationPattern.cs
- SystemInformation.cs
- KeyGestureConverter.cs
- Tablet.cs
- PathGeometry.cs
- WorkflowApplicationUnloadedException.cs
- counter.cs
- Range.cs
- DataGridViewAccessibleObject.cs
- TaskHelper.cs
- _OverlappedAsyncResult.cs
- WindowsListViewGroupSubsetLink.cs
- ToolStripSystemRenderer.cs
- SHA512Managed.cs
- UriTemplateLiteralQueryValue.cs
- OleDbPropertySetGuid.cs
- AudienceUriMode.cs
- EntityDataSourceQueryBuilder.cs
- IndentTextWriter.cs
- PlaceHolder.cs
- JoinCqlBlock.cs
- BinHexEncoder.cs
- OleAutBinder.cs
- Select.cs
- DetailsViewDeletedEventArgs.cs
- CommonXSendMessage.cs
- UndoUnit.cs
- Win32MouseDevice.cs
- ContentElementAutomationPeer.cs
- ToolboxItemAttribute.cs
- GridErrorDlg.cs
- HtmlInputCheckBox.cs
- QualifiedCellIdBoolean.cs
- SourceChangedEventArgs.cs
- AutomationPatternInfo.cs
- SqlBuilder.cs
- TypedDataSourceCodeGenerator.cs
- NoneExcludedImageIndexConverter.cs
- ListParagraph.cs