Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OrthographicCamera.cs
- Utils.cs
- InvalidCastException.cs
- ConnectivityStatus.cs
- StrokeCollectionDefaultValueFactory.cs
- TextTreeExtractElementUndoUnit.cs
- DispatcherProcessingDisabled.cs
- ChannelParameterCollection.cs
- RemotingConfigParser.cs
- UshortList2.cs
- Activator.cs
- CodeCompileUnit.cs
- ApplicationContext.cs
- MarkupExtensionReturnTypeAttribute.cs
- RuntimeConfig.cs
- ListBindableAttribute.cs
- OpenFileDialog.cs
- SinglePageViewer.cs
- Tag.cs
- OpacityConverter.cs
- DbgCompiler.cs
- _BasicClient.cs
- ArithmeticException.cs
- SoapElementAttribute.cs
- BaseParagraph.cs
- BoolExpression.cs
- GiveFeedbackEventArgs.cs
- HtmlTitle.cs
- UIElement.cs
- Component.cs
- SingleConverter.cs
- BuiltInExpr.cs
- BStrWrapper.cs
- EventsTab.cs
- HttpHandlerAction.cs
- jithelpers.cs
- SerializationBinder.cs
- InstanceCreationEditor.cs
- DataRow.cs
- ThicknessConverter.cs
- DataControlPagerLinkButton.cs
- CorrelationManager.cs
- IItemProperties.cs
- GenericWebPart.cs
- Parallel.cs
- DesignTimeTemplateParser.cs
- ListViewInsertEventArgs.cs
- sqlpipe.cs
- _NegoState.cs
- WindowsImpersonationContext.cs
- DataBindingHandlerAttribute.cs
- PriorityBinding.cs
- SchemeSettingElementCollection.cs
- Int64AnimationBase.cs
- DataGridViewCellCancelEventArgs.cs
- CompilerInfo.cs
- VScrollBar.cs
- __ComObject.cs
- EnumerableRowCollection.cs
- FtpRequestCacheValidator.cs
- XmlElementCollection.cs
- ProfileModule.cs
- RenderData.cs
- AsyncStreamReader.cs
- FunctionDefinition.cs
- InvokePatternIdentifiers.cs
- TreeBuilderBamlTranslator.cs
- ConnectionsZone.cs
- TextCharacters.cs
- SafeEventLogReadHandle.cs
- NamespaceMapping.cs
- ServiceModelActivity.cs
- DesignerToolboxInfo.cs
- XsdCachingReader.cs
- SimpleHandlerFactory.cs
- CLSCompliantAttribute.cs
- Message.cs
- MobileControlsSectionHelper.cs
- Matrix.cs
- ExitEventArgs.cs
- TextServicesDisplayAttributePropertyRanges.cs
- RecognizedWordUnit.cs
- sqlser.cs
- SqlBulkCopy.cs
- LingerOption.cs
- TemplateControlParser.cs
- ResourceDescriptionAttribute.cs
- EnvelopedPkcs7.cs
- AnnotationHighlightLayer.cs
- TypeTypeConverter.cs
- cookiecontainer.cs
- SecurityPolicySection.cs
- ContentValidator.cs
- TableAutomationPeer.cs
- TagPrefixCollection.cs
- TemplateField.cs
- XamlClipboardData.cs
- StateDesigner.TransitionInfo.cs
- StaticExtension.cs
- XmlSerializer.cs