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
- GridViewRowCollection.cs
- ListDesigner.cs
- PolicyImporterElementCollection.cs
- CanonicalizationDriver.cs
- HScrollBar.cs
- ReflectTypeDescriptionProvider.cs
- RuleSettings.cs
- DataRow.cs
- UserControlAutomationPeer.cs
- SupportsEventValidationAttribute.cs
- FormViewUpdateEventArgs.cs
- HighlightComponent.cs
- RuntimeConfig.cs
- TextRangeSerialization.cs
- MatrixAnimationBase.cs
- InstancePersistence.cs
- SiteMembershipCondition.cs
- TrackingConditionCollection.cs
- CornerRadius.cs
- XmlSchemaSimpleTypeList.cs
- MenuItemAutomationPeer.cs
- Events.cs
- Stroke.cs
- ImageAutomationPeer.cs
- PassportIdentity.cs
- EventlogProvider.cs
- ScrollEventArgs.cs
- DispatcherSynchronizationContext.cs
- AuthStoreRoleProvider.cs
- DoubleUtil.cs
- ReliableChannelListener.cs
- ProxyGenerationError.cs
- SetStoryboardSpeedRatio.cs
- RelativeSource.cs
- StreamAsIStream.cs
- FormsAuthenticationModule.cs
- Connection.cs
- DataStreams.cs
- WebEventTraceProvider.cs
- X509InitiatorCertificateServiceElement.cs
- MonikerProxyAttribute.cs
- Span.cs
- RegexRunnerFactory.cs
- httpstaticobjectscollection.cs
- Method.cs
- TextFormatterImp.cs
- BrowserDefinitionCollection.cs
- CannotUnloadAppDomainException.cs
- TargetException.cs
- QuaternionConverter.cs
- StructuredTypeInfo.cs
- UpdatePanelControlTrigger.cs
- Subtract.cs
- RootBrowserWindowProxy.cs
- DataProtectionSecurityStateEncoder.cs
- SqlInfoMessageEvent.cs
- SqlDataSourceCommandEventArgs.cs
- PropertyGeneratedEventArgs.cs
- DebugInfoGenerator.cs
- ObjectDataSourceStatusEventArgs.cs
- PagedDataSource.cs
- DispatcherExceptionFilterEventArgs.cs
- SyncOperationState.cs
- BufferedStream.cs
- newinstructionaction.cs
- SystemResourceKey.cs
- MiniLockedBorderGlyph.cs
- SQLInt16Storage.cs
- DataColumn.cs
- WindowsClaimSet.cs
- AcceleratedTokenAuthenticator.cs
- SizeConverter.cs
- TextTreeDeleteContentUndoUnit.cs
- InputGestureCollection.cs
- PerformanceCounterLib.cs
- CursorConverter.cs
- SwitchElementsCollection.cs
- LambdaSerializationException.cs
- followingquery.cs
- TypeResolver.cs
- TextChange.cs
- ProcessHostConfigUtils.cs
- NamedPipeProcessProtocolHandler.cs
- FileNotFoundException.cs
- StylusPointProperty.cs
- DataGridViewCellParsingEventArgs.cs
- KeyValuePairs.cs
- XmlDocument.cs
- ElementUtil.cs
- DataServices.cs
- SqlStream.cs
- GeneralTransform3D.cs
- TypeSystem.cs
- SqlInternalConnection.cs
- MembershipPasswordException.cs
- Overlapped.cs
- BrowsableAttribute.cs
- ResourceSet.cs
- QueryAccessibilityHelpEvent.cs
- SchemaManager.cs