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
- ArrayConverter.cs
- DoubleAnimationUsingKeyFrames.cs
- XmlFormatReaderGenerator.cs
- HttpSessionStateWrapper.cs
- PreservationFileReader.cs
- AttributeEmitter.cs
- TextSpanModifier.cs
- __Filters.cs
- TextWriterTraceListener.cs
- AppLevelCompilationSectionCache.cs
- PerfCounters.cs
- ProxySimple.cs
- FaultHandlingFilter.cs
- WebPartMenuStyle.cs
- SpecularMaterial.cs
- TableStyle.cs
- MethodRental.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- EncoderParameter.cs
- Helper.cs
- ModifierKeysValueSerializer.cs
- _AuthenticationState.cs
- PropertiesTab.cs
- CryptoHelper.cs
- StartFileNameEditor.cs
- ErrorRuntimeConfig.cs
- SqlCachedBuffer.cs
- RuleRefElement.cs
- DefaultObjectMappingItemCollection.cs
- ReferencedAssembly.cs
- ControlPaint.cs
- ConnectorEditor.cs
- WithParamAction.cs
- CLRBindingWorker.cs
- EntityDesignerUtils.cs
- DragStartedEventArgs.cs
- MemberProjectedSlot.cs
- StatusBarAutomationPeer.cs
- PropertyKey.cs
- WebMessageEncoderFactory.cs
- CodeVariableDeclarationStatement.cs
- ConnectivityStatus.cs
- Stylesheet.cs
- SchemaImporter.cs
- BitArray.cs
- TextModifierScope.cs
- StorageEntitySetMapping.cs
- ServiceDurableInstanceContextProvider.cs
- GeometryHitTestResult.cs
- BooleanFacetDescriptionElement.cs
- NavigatorOutput.cs
- RenderContext.cs
- DependsOnAttribute.cs
- DataGridItemAutomationPeer.cs
- CodeAttributeDeclaration.cs
- XmlSequenceWriter.cs
- Button.cs
- QilStrConcatenator.cs
- TextDecoration.cs
- ReferentialConstraint.cs
- NumericUpDownAccelerationCollection.cs
- MarkupCompilePass1.cs
- WorkflowServiceNamespace.cs
- CultureInfo.cs
- DescendentsWalker.cs
- CharUnicodeInfo.cs
- CodeDelegateCreateExpression.cs
- SuppressMergeCheckAttribute.cs
- WinHttpWebProxyFinder.cs
- KeyBinding.cs
- Parser.cs
- GenericTypeParameterBuilder.cs
- FontNamesConverter.cs
- Membership.cs
- embossbitmapeffect.cs
- CompoundFileIOPermission.cs
- PreProcessInputEventArgs.cs
- TypeDescriptionProvider.cs
- OpCellTreeNode.cs
- CaseExpr.cs
- Int32Animation.cs
- Validator.cs
- UndoUnit.cs
- XmlNodeComparer.cs
- SessionParameter.cs
- Section.cs
- PrefixQName.cs
- CursorConverter.cs
- MemberPath.cs
- ByteAnimationBase.cs
- DetailsViewInsertedEventArgs.cs
- IdnElement.cs
- PersonalizationStateInfo.cs
- StreamSecurityUpgradeInitiatorBase.cs
- CodeIterationStatement.cs
- SqlXml.cs
- Cursor.cs
- WorkflowOperationInvoker.cs
- PersianCalendar.cs
- WebPartMenuStyle.cs