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
- XPathNodePointer.cs
- DateTime.cs
- DataGridViewAccessibleObject.cs
- SqlBulkCopyColumnMappingCollection.cs
- UrlMappingCollection.cs
- RankException.cs
- ByteAnimationUsingKeyFrames.cs
- SoapElementAttribute.cs
- EmptyEnumerator.cs
- HtmlLinkAdapter.cs
- XmlSchemaProviderAttribute.cs
- LineVisual.cs
- Win32Native.cs
- ToolStripOverflow.cs
- IndentedWriter.cs
- PositiveTimeSpanValidatorAttribute.cs
- RestHandler.cs
- cryptoapiTransform.cs
- Expression.DebuggerProxy.cs
- ipaddressinformationcollection.cs
- DefaultValueConverter.cs
- EventItfInfo.cs
- XmlSchemaRedefine.cs
- MimeTypeMapper.cs
- GetCertificateRequest.cs
- DynamicRenderer.cs
- CodeCastExpression.cs
- ToolBarTray.cs
- PaperSource.cs
- StoreItemCollection.Loader.cs
- XPathDescendantIterator.cs
- PageTextBox.cs
- EntitySqlQueryBuilder.cs
- RegexBoyerMoore.cs
- Membership.cs
- OutputScope.cs
- TextServicesManager.cs
- HorizontalAlignConverter.cs
- MethodBuilder.cs
- NumericUpDownAcceleration.cs
- StrongNameKeyPair.cs
- RawKeyboardInputReport.cs
- KeyGestureValueSerializer.cs
- SrgsElement.cs
- CodePageEncoding.cs
- GridItemCollection.cs
- SmiRequestExecutor.cs
- HttpGetProtocolImporter.cs
- CodeMemberMethod.cs
- ScrollProperties.cs
- NavigatorInput.cs
- NavigationCommands.cs
- SamlAssertion.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XmlAtomicValue.cs
- WebPartZone.cs
- SectionInformation.cs
- _ContextAwareResult.cs
- ConfigurationManagerInternal.cs
- RuntimeArgumentHandle.cs
- GuidelineCollection.cs
- DataTableExtensions.cs
- PageVisual.cs
- TemplateControlBuildProvider.cs
- SizeChangedEventArgs.cs
- CellLabel.cs
- XmlAttributeCollection.cs
- CookieParameter.cs
- XamlInterfaces.cs
- BindingNavigator.cs
- FontFamily.cs
- TextPenaltyModule.cs
- SamlAttribute.cs
- AsyncCompletedEventArgs.cs
- DrawingContextWalker.cs
- ResourceDescriptionAttribute.cs
- CompilerErrorCollection.cs
- HelpEvent.cs
- RepeatBehavior.cs
- safelinkcollection.cs
- TypeCollectionDesigner.xaml.cs
- DefaultValueTypeConverter.cs
- GZipStream.cs
- GetPageCompletedEventArgs.cs
- ViewManager.cs
- BuilderInfo.cs
- PropertyEmitterBase.cs
- WasAdminWrapper.cs
- PlanCompiler.cs
- ProcessInputEventArgs.cs
- ServiceDefaults.cs
- MSAANativeProvider.cs
- WebMessageEncodingElement.cs
- UIPermission.cs
- MultilineStringConverter.cs
- PagerSettings.cs
- DesignerTextWriter.cs
- Buffer.cs
- FormParameter.cs
- SecurityException.cs