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
- DbConnectionPool.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlSchemaSequence.cs
- UnsafeNativeMethods.cs
- ComplexBindingPropertiesAttribute.cs
- EventLog.cs
- SpecularMaterial.cs
- XmlDataImplementation.cs
- RotateTransform3D.cs
- StickyNoteHelper.cs
- BitHelper.cs
- DataBoundControlAdapter.cs
- DispatcherOperation.cs
- ShellProvider.cs
- AtomServiceDocumentSerializer.cs
- ImportContext.cs
- FontWeightConverter.cs
- FlowLayoutSettings.cs
- StateManagedCollection.cs
- AuthenticationServiceManager.cs
- HTMLTextWriter.cs
- HttpCapabilitiesBase.cs
- RequestChannel.cs
- CommittableTransaction.cs
- WebCodeGenerator.cs
- FileEnumerator.cs
- TextServicesManager.cs
- ServiceBuildProvider.cs
- FormViewUpdateEventArgs.cs
- GradientStop.cs
- BitmapEffectDrawing.cs
- HostingEnvironmentException.cs
- HttpDebugHandler.cs
- HandlerBase.cs
- MouseOverProperty.cs
- Utils.cs
- EnumValAlphaComparer.cs
- CachedTypeface.cs
- controlskin.cs
- ResolveCriteria11.cs
- FreezableOperations.cs
- SplitterPanel.cs
- XsltContext.cs
- SystemInfo.cs
- DataError.cs
- RecordConverter.cs
- WindowsStatusBar.cs
- BoolExpressionVisitors.cs
- ItemList.cs
- ViewEventArgs.cs
- EventDescriptor.cs
- TextContainer.cs
- DataException.cs
- AnimationStorage.cs
- ISFTagAndGuidCache.cs
- Delegate.cs
- DoubleLink.cs
- KeyMatchBuilder.cs
- BigInt.cs
- DecimalFormatter.cs
- TrackBarRenderer.cs
- InputProcessorProfilesLoader.cs
- ContextStaticAttribute.cs
- SamlSerializer.cs
- XmlIncludeAttribute.cs
- SchemaAttDef.cs
- TargetConverter.cs
- NamespaceDisplay.xaml.cs
- AtomPub10ServiceDocumentFormatter.cs
- METAHEADER.cs
- PathFigure.cs
- DynamicUpdateCommand.cs
- SystemUdpStatistics.cs
- DataObjectSettingDataEventArgs.cs
- DataGridViewTextBoxCell.cs
- Automation.cs
- SecurityTokenAuthenticator.cs
- AutomationElementCollection.cs
- HostDesigntimeLicenseContext.cs
- CultureTable.cs
- AssociationTypeEmitter.cs
- TimeSpanConverter.cs
- DataDocumentXPathNavigator.cs
- TagPrefixCollection.cs
- DescriptionAttribute.cs
- PersonalizationDictionary.cs
- CacheDependency.cs
- Vector3dCollection.cs
- TimeoutValidationAttribute.cs
- TCPClient.cs
- Columns.cs
- ObjectSet.cs
- MatrixAnimationUsingPath.cs
- InputLanguage.cs
- SqlErrorCollection.cs
- XmlTextReaderImpl.cs
- TextTreeInsertElementUndoUnit.cs
- Parser.cs
- ContextDataSourceContextData.cs
- TreeIterator.cs