Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- RectAnimationBase.cs
- WebPartConnectionsEventArgs.cs
- KeyboardNavigation.cs
- NativeMethods.cs
- EdmComplexTypeAttribute.cs
- ClientSettingsSection.cs
- TransformProviderWrapper.cs
- VisualCollection.cs
- FacetChecker.cs
- DescendentsWalker.cs
- LicenseProviderAttribute.cs
- TypeExtensionConverter.cs
- BindingListCollectionView.cs
- HostProtectionPermission.cs
- SoapMessage.cs
- Soap11ServerProtocol.cs
- LingerOption.cs
- DocumentReference.cs
- XmlMapping.cs
- ImageMap.cs
- XamlSerializerUtil.cs
- DirectionalLight.cs
- DataTableCollection.cs
- Size3DConverter.cs
- PasswordRecoveryAutoFormat.cs
- SignatureTargetIdManager.cs
- CroppedBitmap.cs
- TypeSystem.cs
- BaseTreeIterator.cs
- TemplateField.cs
- DescriptionAttribute.cs
- SqlDataReaderSmi.cs
- SqlDataReaderSmi.cs
- DllNotFoundException.cs
- DataBindingValueUIHandler.cs
- TextServicesDisplayAttribute.cs
- COM2ICategorizePropertiesHandler.cs
- FilterException.cs
- SymbolTable.cs
- SQLDecimal.cs
- TextEditorSelection.cs
- RemotingException.cs
- FilteredSchemaElementLookUpTable.cs
- HttpResponse.cs
- SynchronousChannel.cs
- ResourcesBuildProvider.cs
- RC2.cs
- FunctionMappingTranslator.cs
- Pair.cs
- DataServiceEntityAttribute.cs
- CodeTypeDelegate.cs
- WebBrowserDesigner.cs
- ParentQuery.cs
- EndpointPerformanceCounters.cs
- SerializationEventsCache.cs
- BoundColumn.cs
- CodeEventReferenceExpression.cs
- Ref.cs
- ServiceModelConfigurationSectionGroup.cs
- AddInContractAttribute.cs
- StubHelpers.cs
- EntityExpressionVisitor.cs
- recordstatescratchpad.cs
- MissingSatelliteAssemblyException.cs
- WebServiceHandler.cs
- RegexReplacement.cs
- ViewKeyConstraint.cs
- ConfigurationSection.cs
- WebPartDescription.cs
- XamlContextStack.cs
- HttpCacheVary.cs
- SqlClientMetaDataCollectionNames.cs
- smtpconnection.cs
- ConfigPathUtility.cs
- ApplicationSettingsBase.cs
- ChangeInterceptorAttribute.cs
- SchemaTableOptionalColumn.cs
- ToolStripDropDownMenu.cs
- ThumbAutomationPeer.cs
- DateTimePicker.cs
- EntitySet.cs
- StylusCaptureWithinProperty.cs
- Overlapped.cs
- XmlAtomicValue.cs
- XmlSerializerNamespaces.cs
- EpmHelper.cs
- RadioButtonFlatAdapter.cs
- ConstructorBuilder.cs
- BinaryFormatter.cs
- StatusBarDesigner.cs
- DataGridItemCollection.cs
- StaticSiteMapProvider.cs
- BamlLocalizableResource.cs
- FacetValues.cs
- DeploymentSection.cs
- ErrorHandler.cs
- Application.cs
- DataException.cs
- DecimalAnimationUsingKeyFrames.cs
- X509Certificate2Collection.cs