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
- remotingproxy.cs
- RTLAwareMessageBox.cs
- EmbossBitmapEffect.cs
- BuildResultCache.cs
- GridViewSortEventArgs.cs
- MissingMethodException.cs
- MobileContainerDesigner.cs
- ComponentGlyph.cs
- Parser.cs
- DateTimeValueSerializerContext.cs
- ResourceCategoryAttribute.cs
- FixedTextView.cs
- StyleCollection.cs
- wgx_exports.cs
- RowParagraph.cs
- SQLInt64.cs
- NativeMethodsOther.cs
- ApplicationSettingsBase.cs
- HttpProtocolImporter.cs
- UriTemplateVariablePathSegment.cs
- CompilerState.cs
- ToolStripDropDownClosedEventArgs.cs
- SpinLock.cs
- DES.cs
- ManualResetEvent.cs
- Compress.cs
- Int64AnimationUsingKeyFrames.cs
- FreeIndexList.cs
- ToolBar.cs
- HostingEnvironmentException.cs
- MdImport.cs
- EdmMember.cs
- FontFamily.cs
- BitmapEffect.cs
- FamilyTypeface.cs
- CodeDirectionExpression.cs
- ComPlusThreadInitializer.cs
- DmlSqlGenerator.cs
- ClientUrlResolverWrapper.cs
- _ListenerAsyncResult.cs
- StylusPointProperties.cs
- ThousandthOfEmRealDoubles.cs
- WriteFileContext.cs
- UdpTransportBindingElement.cs
- ToolStripSystemRenderer.cs
- FileDetails.cs
- SqlMethodAttribute.cs
- WebPartConnectionsDisconnectVerb.cs
- ButtonBase.cs
- NumericUpDownAccelerationCollection.cs
- GeometryDrawing.cs
- ConfigurationElementCollection.cs
- SqlDataSourceQueryEditor.cs
- recordstate.cs
- Font.cs
- DesignConnectionCollection.cs
- ClipboardProcessor.cs
- IteratorFilter.cs
- basemetadatamappingvisitor.cs
- RegexReplacement.cs
- ValidationError.cs
- QueryInterceptorAttribute.cs
- _SslStream.cs
- httpapplicationstate.cs
- RegistryConfigurationProvider.cs
- HttpRuntime.cs
- TextPointerBase.cs
- DependencySource.cs
- SqlCacheDependencySection.cs
- Size3DValueSerializer.cs
- EncodingInfo.cs
- CodeDesigner.cs
- assertwrapper.cs
- ScriptResourceMapping.cs
- Span.cs
- CustomError.cs
- Pen.cs
- Transaction.cs
- VirtualPathUtility.cs
- DataBoundControlAdapter.cs
- HMACMD5.cs
- SelectionProviderWrapper.cs
- EntityDataSourceDataSelection.cs
- TextWriterTraceListener.cs
- Configuration.cs
- ellipse.cs
- EntityConnection.cs
- Encoder.cs
- RawStylusSystemGestureInputReport.cs
- EnlistmentState.cs
- ConsoleEntryPoint.cs
- LocationReferenceValue.cs
- TextBoxBaseDesigner.cs
- AssemblyAttributes.cs
- OleDbException.cs
- ContractComponent.cs
- RoutedEventHandlerInfo.cs
- SHA384Managed.cs
- BrowserDefinitionCollection.cs
- SecUtil.cs