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
- HMACSHA1.cs
- DragDeltaEventArgs.cs
- IconBitmapDecoder.cs
- Rect3D.cs
- ErrorFormatterPage.cs
- CollectionConverter.cs
- SoapTypeAttribute.cs
- ExternalException.cs
- QfeChecker.cs
- ComponentResourceManager.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DBConcurrencyException.cs
- CustomGrammar.cs
- WebMessageFormatHelper.cs
- OleDbParameterCollection.cs
- IsolatedStorageFile.cs
- Misc.cs
- OutOfProcStateClientManager.cs
- TagPrefixAttribute.cs
- AccessibleObject.cs
- DataGridViewCellStyleChangedEventArgs.cs
- PersonalizationProviderCollection.cs
- DataRowCollection.cs
- ServicesExceptionNotHandledEventArgs.cs
- PolyBezierSegment.cs
- BamlMapTable.cs
- DataGridTextBox.cs
- EnumValAlphaComparer.cs
- AuthenticatingEventArgs.cs
- Label.cs
- ResolveMatchesMessage11.cs
- ListViewInsertedEventArgs.cs
- StaticDataManager.cs
- XmlWriterDelegator.cs
- SmtpLoginAuthenticationModule.cs
- BaseHashHelper.cs
- VisualStyleTypesAndProperties.cs
- MultiPropertyDescriptorGridEntry.cs
- ButtonBaseAutomationPeer.cs
- ListViewInsertionMark.cs
- Label.cs
- ConfigurationStrings.cs
- EasingKeyFrames.cs
- TypeSystemHelpers.cs
- SqlMethodTransformer.cs
- QuarticEase.cs
- CriticalFinalizerObject.cs
- FieldBuilder.cs
- Point3DValueSerializer.cs
- DataGridViewColumnHeaderCell.cs
- TimelineGroup.cs
- CultureData.cs
- ChangeProcessor.cs
- ReaderContextStackData.cs
- ValueTypeIndexerReference.cs
- DataGridCellsPresenter.cs
- NotifyCollectionChangedEventArgs.cs
- SinglePhaseEnlistment.cs
- ReturnType.cs
- ImportCatalogPart.cs
- CommandPlan.cs
- CharacterMetricsDictionary.cs
- dbdatarecord.cs
- TypeConverterHelper.cs
- SamlSecurityTokenAuthenticator.cs
- MediaTimeline.cs
- SemanticAnalyzer.cs
- WebPartDisplayMode.cs
- CodeDomSerializerBase.cs
- SystemSounds.cs
- LambdaCompiler.ControlFlow.cs
- CustomLineCap.cs
- _NTAuthentication.cs
- DocumentXPathNavigator.cs
- brushes.cs
- RegexRunner.cs
- LinqDataSourceView.cs
- NameGenerator.cs
- ToolStripPanelRenderEventArgs.cs
- CollectionViewSource.cs
- StringUtil.cs
- TimeoutException.cs
- CurrentChangedEventManager.cs
- AdRotator.cs
- StatusBar.cs
- IxmlLineInfo.cs
- NamespaceQuery.cs
- InternalsVisibleToAttribute.cs
- GridViewCancelEditEventArgs.cs
- XmlTextReaderImpl.cs
- Bitmap.cs
- SafeMarshalContext.cs
- BamlLocalizableResourceKey.cs
- TextDecoration.cs
- DerivedKeySecurityToken.cs
- SqlReorderer.cs
- SemaphoreSecurity.cs
- TableLayout.cs
- LifetimeMonitor.cs
- TemplateContent.cs