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
- CodeAccessPermission.cs
- ToolboxComponentsCreatingEventArgs.cs
- ValidationErrorCollection.cs
- MenuItemCollection.cs
- ComponentResourceKey.cs
- HttpGetProtocolReflector.cs
- DurableEnlistmentState.cs
- DrawingContext.cs
- CookieParameter.cs
- ViewGenResults.cs
- TransactionFilter.cs
- ParserStreamGeometryContext.cs
- SpeakCompletedEventArgs.cs
- Application.cs
- Track.cs
- ArgumentException.cs
- TreeNodeStyle.cs
- OutOfMemoryException.cs
- CriticalFinalizerObject.cs
- DocumentReferenceCollection.cs
- CatchDesigner.xaml.cs
- MediaCommands.cs
- UrlPath.cs
- TextElementEnumerator.cs
- AuthorizationRuleCollection.cs
- ApplicationServiceHelper.cs
- System.Data.OracleClient_BID.cs
- WebPartVerbsEventArgs.cs
- Assembly.cs
- LocalFileSettingsProvider.cs
- XmlArrayItemAttribute.cs
- VectorAnimationUsingKeyFrames.cs
- ConfigXmlElement.cs
- PageBuildProvider.cs
- SmiEventStream.cs
- FileUtil.cs
- SymDocumentType.cs
- Wildcard.cs
- XmlNodeList.cs
- ListItemCollection.cs
- PreApplicationStartMethodAttribute.cs
- SerializationHelper.cs
- MexNamedPipeBindingElement.cs
- StaticResourceExtension.cs
- SqlCommandBuilder.cs
- HtmlTable.cs
- SoapAttributeAttribute.cs
- FileChangesMonitor.cs
- RawKeyboardInputReport.cs
- CollectionDataContractAttribute.cs
- XslTransformFileEditor.cs
- DragEvent.cs
- DeploymentSection.cs
- AddIn.cs
- MsmqUri.cs
- CustomSignedXml.cs
- WorkflowPageSetupDialog.cs
- InputBuffer.cs
- DNS.cs
- ServiceKnownTypeAttribute.cs
- AnimationClock.cs
- EntityDesignerBuildProvider.cs
- CompilationLock.cs
- PartitionResolver.cs
- WebDisplayNameAttribute.cs
- CodeNamespace.cs
- WindowsSysHeader.cs
- PeerName.cs
- webclient.cs
- FixedPage.cs
- BitmapFrameEncode.cs
- OptimizedTemplateContent.cs
- HtmlContainerControl.cs
- DateTimeFormat.cs
- TypeListConverter.cs
- Button.cs
- FileAuthorizationModule.cs
- MimePart.cs
- IDictionary.cs
- OverlappedAsyncResult.cs
- ExpressionBindingCollection.cs
- EmptyImpersonationContext.cs
- RadioButtonAutomationPeer.cs
- Rectangle.cs
- PathGeometry.cs
- SendContent.cs
- AxHost.cs
- OpenTypeLayoutCache.cs
- ConstructorBuilder.cs
- InvalidProgramException.cs
- KeyedHashAlgorithm.cs
- ValidationErrorInfo.cs
- FreezableOperations.cs
- SafeFileMappingHandle.cs
- FacetChecker.cs
- ImageField.cs
- TextOnlyOutput.cs
- MetadataCache.cs
- SystemColors.cs
- ReferencedAssembly.cs