Code:
/ FX-1434 / FX-1434 / 1.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
- BitmapImage.cs
- AppSecurityManager.cs
- ReverseInheritProperty.cs
- HttpResponse.cs
- DataGridViewRowConverter.cs
- PlatformCulture.cs
- PropertyGridCommands.cs
- HttpCapabilitiesEvaluator.cs
- HostTimeoutsElement.cs
- CodeDelegateInvokeExpression.cs
- XmlCodeExporter.cs
- Variant.cs
- DescendantQuery.cs
- OutOfProcStateClientManager.cs
- Focus.cs
- VisualTreeUtils.cs
- InternalCache.cs
- SpoolingTask.cs
- SingleAnimation.cs
- SortableBindingList.cs
- SubtreeProcessor.cs
- CompilerScope.Storage.cs
- Registry.cs
- ImpersonationContext.cs
- ClonableStack.cs
- DataGridCaption.cs
- Journal.cs
- SortExpressionBuilder.cs
- DictionaryManager.cs
- SyntaxCheck.cs
- AncestorChangedEventArgs.cs
- followingsibling.cs
- PropertyMetadata.cs
- SqlConnectionManager.cs
- ReferentialConstraint.cs
- DispatcherSynchronizationContext.cs
- SmtpTransport.cs
- MultiplexingDispatchMessageFormatter.cs
- XmlNavigatorFilter.cs
- SrgsDocument.cs
- WebPartsPersonalization.cs
- IRCollection.cs
- InputChannelBinder.cs
- ListItemConverter.cs
- BulletedList.cs
- BooleanAnimationUsingKeyFrames.cs
- CellParaClient.cs
- SecurityTokenException.cs
- GridEntryCollection.cs
- BindingCollection.cs
- DBNull.cs
- ActivationArguments.cs
- CompiledIdentityConstraint.cs
- Formatter.cs
- FixedSOMContainer.cs
- Freezable.cs
- ToolStrip.cs
- AnimationStorage.cs
- HtmlEncodedRawTextWriter.cs
- DataGridRelationshipRow.cs
- DBProviderConfigurationHandler.cs
- SecuritySessionServerSettings.cs
- CacheEntry.cs
- XmlReflectionImporter.cs
- Symbol.cs
- GeneralTransform3DGroup.cs
- FormCollection.cs
- RegexCaptureCollection.cs
- LineVisual.cs
- UserMapPath.cs
- SiteMapProvider.cs
- SortQuery.cs
- KeyBinding.cs
- ReferentialConstraint.cs
- EventLogTraceListener.cs
- HostedElements.cs
- DateTimeFormat.cs
- AccessDataSource.cs
- ObjectDataSourceView.cs
- BitStream.cs
- InputLangChangeEvent.cs
- SerializerProvider.cs
- MDIControlStrip.cs
- NavigationPropertyEmitter.cs
- IsolationInterop.cs
- CaseExpr.cs
- DataSetMappper.cs
- DPTypeDescriptorContext.cs
- SynchronizationContext.cs
- WebPartMovingEventArgs.cs
- SerialStream.cs
- CodeGeneratorOptions.cs
- ComplexBindingPropertiesAttribute.cs
- MethodRental.cs
- FixedTextSelectionProcessor.cs
- OracleInternalConnection.cs
- DatePickerDateValidationErrorEventArgs.cs
- DataSet.cs
- SystemThemeKey.cs
- XmlHierarchicalEnumerable.cs