Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringAnimationUsingKeyFrames.cs
- UrlAuthorizationModule.cs
- XmlHierarchyData.cs
- RepeatButtonAutomationPeer.cs
- OdbcError.cs
- ObjectQuery.cs
- SkipQueryOptionExpression.cs
- PresentationSource.cs
- ImageMapEventArgs.cs
- AnnotationResource.cs
- HttpCacheVary.cs
- SqlInternalConnection.cs
- SchemaNames.cs
- Margins.cs
- ReceiveActivity.cs
- StylusPlugInCollection.cs
- FixedSOMPageConstructor.cs
- OperationCanceledException.cs
- TextViewBase.cs
- ListViewAutomationPeer.cs
- ColumnCollection.cs
- processwaithandle.cs
- EntityDataSourceChangedEventArgs.cs
- ListBase.cs
- CommonRemoteMemoryBlock.cs
- FileChangesMonitor.cs
- ComponentDispatcherThread.cs
- EmitterCache.cs
- DataGridPagerStyle.cs
- XamlWriter.cs
- StrongNameMembershipCondition.cs
- SystemBrushes.cs
- TypeBuilderInstantiation.cs
- ValidationUtility.cs
- RequestCachingSection.cs
- GcSettings.cs
- ParameterBuilder.cs
- StorageComplexTypeMapping.cs
- XmlTypeMapping.cs
- ProxyElement.cs
- AspNetCacheProfileAttribute.cs
- DoWorkEventArgs.cs
- RegistrySecurity.cs
- FrameDimension.cs
- KeyInstance.cs
- WebPartTransformer.cs
- MailDefinition.cs
- MemoryRecordBuffer.cs
- DataTablePropertyDescriptor.cs
- RadioButton.cs
- DefaultBinder.cs
- DataGridLength.cs
- SystemBrushes.cs
- PlatformCulture.cs
- HttpServerChannel.cs
- NumberSubstitution.cs
- RelOps.cs
- ApplyTemplatesAction.cs
- RelationalExpressions.cs
- DoubleKeyFrameCollection.cs
- KeyFrames.cs
- TemplatePartAttribute.cs
- ConfigXmlElement.cs
- TextFindEngine.cs
- SafeArrayRankMismatchException.cs
- ScrollBarAutomationPeer.cs
- Events.cs
- ComPlusDiagnosticTraceRecords.cs
- AppSettingsExpressionBuilder.cs
- _LoggingObject.cs
- EntryWrittenEventArgs.cs
- Sql8ExpressionRewriter.cs
- assemblycache.cs
- InvalidPrinterException.cs
- EventMap.cs
- ResumeStoryboard.cs
- SoapElementAttribute.cs
- EventToken.cs
- ErrorProvider.cs
- ElementHostPropertyMap.cs
- HtmlForm.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- OwnerDrawPropertyBag.cs
- SqlPersonalizationProvider.cs
- MembershipUser.cs
- CqlErrorHelper.cs
- panel.cs
- DispatcherHooks.cs
- DataGridItemEventArgs.cs
- RuleConditionDialog.Designer.cs
- FacetChecker.cs
- _IPv4Address.cs
- ZipIOLocalFileBlock.cs
- MinMaxParagraphWidth.cs
- CreateUserErrorEventArgs.cs
- DbParameterCollection.cs
- StringAnimationBase.cs
- NotCondition.cs
- DeclaredTypeElement.cs
- ResolveMatchesCD1.cs