Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Configuration / Assemblies / AssemblyHash.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationManager.cs
- BitStack.cs
- ETagAttribute.cs
- AdornerLayer.cs
- ConnectionPointCookie.cs
- XmlNamespaceMappingCollection.cs
- ApplicationBuildProvider.cs
- FunctionImportMapping.cs
- PropertyToken.cs
- ProfileSettingsCollection.cs
- PrinterResolution.cs
- FolderLevelBuildProvider.cs
- Message.cs
- ReliabilityContractAttribute.cs
- MaskedTextBox.cs
- CodeGenerator.cs
- DrawItemEvent.cs
- ParameterToken.cs
- CheckBox.cs
- GenericTypeParameterConverter.cs
- MemberHolder.cs
- DataGridViewRowsRemovedEventArgs.cs
- TextTreeUndo.cs
- TextDpi.cs
- Dictionary.cs
- ToolboxService.cs
- SqlInternalConnectionTds.cs
- SafeBitVector32.cs
- HorizontalAlignConverter.cs
- SafeArrayTypeMismatchException.cs
- FeatureSupport.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- Bind.cs
- EnumUnknown.cs
- HiddenField.cs
- OneOfConst.cs
- MsmqReceiveHelper.cs
- activationcontext.cs
- SqlDataSourceRefreshSchemaForm.cs
- FormsAuthenticationEventArgs.cs
- WriterOutput.cs
- ComPlusTraceRecord.cs
- IDataContractSurrogate.cs
- UrlMapping.cs
- SqlConnectionFactory.cs
- ResolveResponseInfo.cs
- ExceptQueryOperator.cs
- DataGridBoolColumn.cs
- FactoryId.cs
- Mouse.cs
- SecurityContext.cs
- Brush.cs
- DataGridViewAccessibleObject.cs
- XPathScanner.cs
- ProfileService.cs
- RadialGradientBrush.cs
- ByteStream.cs
- FileDialog_Vista.cs
- HttpApplication.cs
- CharConverter.cs
- LOSFormatter.cs
- SignedInfo.cs
- ETagAttribute.cs
- DataBoundLiteralControl.cs
- CacheEntry.cs
- ProviderBase.cs
- ObjectViewFactory.cs
- XmlFormatExtensionPointAttribute.cs
- DataServiceQueryException.cs
- ButtonBase.cs
- ExecutionEngineException.cs
- RecordsAffectedEventArgs.cs
- TdsRecordBufferSetter.cs
- SamlDoNotCacheCondition.cs
- WebReferenceOptions.cs
- XmlDictionaryReader.cs
- SystemParameters.cs
- CharacterBufferReference.cs
- SqlNotificationEventArgs.cs
- PathSegment.cs
- CodeArgumentReferenceExpression.cs
- CalendarDesigner.cs
- ReachDocumentReferenceSerializer.cs
- FragmentQueryProcessor.cs
- FileInfo.cs
- BamlVersionHeader.cs
- InvalidCastException.cs
- XmlCodeExporter.cs
- EditorPartChrome.cs
- FormatException.cs
- GACIdentityPermission.cs
- RowUpdatingEventArgs.cs
- HtmlEncodedRawTextWriter.cs
- dbenumerator.cs
- EarlyBoundInfo.cs
- PtsPage.cs
- XmlWellformedWriterHelpers.cs
- DefaultParameterValueAttribute.cs
- RewritingProcessor.cs
- diagnosticsswitches.cs