Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RowSpanVector.cs
- GridViewDeletedEventArgs.cs
- TypeConverterValueSerializer.cs
- Gdiplus.cs
- RuleSettingsCollection.cs
- NoneExcludedImageIndexConverter.cs
- ResourcePermissionBaseEntry.cs
- InputProviderSite.cs
- UncommonField.cs
- ControlValuePropertyAttribute.cs
- ArglessEventHandlerProxy.cs
- XmlEntityReference.cs
- DataGridViewCellValueEventArgs.cs
- FormDocumentDesigner.cs
- PeerCollaborationPermission.cs
- DataServiceClientException.cs
- TreePrinter.cs
- RSAPKCS1SignatureDeformatter.cs
- DataBindEngine.cs
- FixedSOMGroup.cs
- CustomTrackingQuery.cs
- TypedReference.cs
- XsdDateTime.cs
- Point.cs
- StrokeNodeData.cs
- BitmapEffectInput.cs
- SqlXmlStorage.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- AutomationElementCollection.cs
- SmiMetaData.cs
- JournalNavigationScope.cs
- Currency.cs
- DefaultBinder.cs
- HttpCacheVaryByContentEncodings.cs
- CommentEmitter.cs
- COM2PropertyBuilderUITypeEditor.cs
- TcpHostedTransportConfiguration.cs
- CharConverter.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ServiceReference.cs
- NativeMethods.cs
- GuidTagList.cs
- ClassicBorderDecorator.cs
- SwitchElementsCollection.cs
- FrameworkContentElement.cs
- PagedDataSource.cs
- ImageBrush.cs
- WsdlInspector.cs
- BuildProviderCollection.cs
- SafeNativeMethods.cs
- DesignerCategoryAttribute.cs
- AsyncContentLoadedEventArgs.cs
- ProfessionalColors.cs
- RegexParser.cs
- RestHandler.cs
- StatusBar.cs
- LayoutEngine.cs
- ColumnClickEvent.cs
- ActivityCodeDomReferenceService.cs
- DrawingVisualDrawingContext.cs
- InvalidDataException.cs
- Baml2006ReaderSettings.cs
- TemplateXamlParser.cs
- XmlConvert.cs
- OdbcHandle.cs
- ObjectReaderCompiler.cs
- MobileControlBuilder.cs
- XPathArrayIterator.cs
- PropagatorResult.cs
- AsymmetricKeyExchangeFormatter.cs
- GenericTextProperties.cs
- ToolStripOverflow.cs
- ControlBindingsCollection.cs
- DataContractSerializerServiceBehavior.cs
- CacheHelper.cs
- XNodeValidator.cs
- BitConverter.cs
- RecordBuilder.cs
- SQLInt16.cs
- MergePropertyDescriptor.cs
- DSASignatureFormatter.cs
- ReflectionPermission.cs
- RangeValuePattern.cs
- Int32AnimationBase.cs
- xsdvalidator.cs
- TextUtf8RawTextWriter.cs
- FormViewRow.cs
- DependencyObjectProvider.cs
- XmlSchemaComplexContent.cs
- SizeLimitedCache.cs
- SymbolType.cs
- PassportAuthenticationModule.cs
- ServiceMetadataBehavior.cs
- EmptyControlCollection.cs
- Typography.cs
- regiisutil.cs
- BooleanConverter.cs
- MessageQueuePermissionAttribute.cs
- ValidationHelper.cs
- DotExpr.cs