Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextBounds.cs
- HttpSysSettings.cs
- ApplicationHost.cs
- ACE.cs
- DbConvert.cs
- HttpsHostedTransportConfiguration.cs
- TextEditorTyping.cs
- SessionPageStateSection.cs
- SplitContainer.cs
- DomainUpDown.cs
- InternalException.cs
- PhysicalAddress.cs
- BitArray.cs
- webeventbuffer.cs
- TileModeValidation.cs
- PenLineCapValidation.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ButtonChrome.cs
- LassoHelper.cs
- WriteTimeStream.cs
- PersianCalendar.cs
- VectorCollectionConverter.cs
- Size.cs
- ObjectDataSource.cs
- HwndAppCommandInputProvider.cs
- bidPrivateBase.cs
- StringValidator.cs
- BreakRecordTable.cs
- CodePrimitiveExpression.cs
- filewebresponse.cs
- InstanceDataCollectionCollection.cs
- RtfToken.cs
- EntityDesignerUtils.cs
- ValidationUtility.cs
- EnumUnknown.cs
- ImageButton.cs
- ReflectPropertyDescriptor.cs
- MachineKeyValidationConverter.cs
- ModuleBuilder.cs
- TypeExtension.cs
- HiddenFieldPageStatePersister.cs
- BulletedList.cs
- SocketElement.cs
- EnumType.cs
- ProxyWebPart.cs
- QilTypeChecker.cs
- EventWaitHandleSecurity.cs
- mongolianshape.cs
- BrowserCapabilitiesCompiler.cs
- DeleteIndexBinder.cs
- Convert.cs
- MarkupCompilePass1.cs
- DiscoveryDocument.cs
- TabItem.cs
- XpsS0ValidatingLoader.cs
- TextElement.cs
- AuthorizationSection.cs
- Form.cs
- _ListenerAsyncResult.cs
- FontFamilyConverter.cs
- OperatingSystem.cs
- ProcessHostConfigUtils.cs
- IdentityModelStringsVersion1.cs
- ScriptMethodAttribute.cs
- RegionInfo.cs
- DataViewManager.cs
- MsmqHostedTransportManager.cs
- DbTypeMap.cs
- StringConcat.cs
- Graph.cs
- AnnotationHighlightLayer.cs
- XmlArrayItemAttribute.cs
- FilteredAttributeCollection.cs
- AccessControlEntry.cs
- SecureConversationVersion.cs
- CompiledAction.cs
- NegotiateStream.cs
- HtmlEmptyTagControlBuilder.cs
- AutomationPropertyInfo.cs
- TypeInitializationException.cs
- TraceFilter.cs
- FrameworkEventSource.cs
- BuildDependencySet.cs
- precedingquery.cs
- VariableAction.cs
- MessageDecoder.cs
- ConfigurationElement.cs
- DocumentOrderQuery.cs
- AtomServiceDocumentSerializer.cs
- TransformDescriptor.cs
- remotingproxy.cs
- RegexRunner.cs
- FillRuleValidation.cs
- TextInfo.cs
- ElementHostAutomationPeer.cs
- Menu.cs
- LongValidator.cs
- hebrewshape.cs
- EntityContainerEntitySetDefiningQuery.cs
- ValueProviderWrapper.cs