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
- PolicyValidationException.cs
- GeneralTransform3DGroup.cs
- WindowsListViewGroupSubsetLink.cs
- Component.cs
- LocalsItemDescription.cs
- ActivityCollectionMarkupSerializer.cs
- HtmlDocument.cs
- DataGridTemplateColumn.cs
- AutomationProperties.cs
- PasswordBox.cs
- BinaryFormatter.cs
- Int32Rect.cs
- ToolStripItemImageRenderEventArgs.cs
- TerminatorSinks.cs
- ExtendedPropertyCollection.cs
- InkCanvasInnerCanvas.cs
- IntegerFacetDescriptionElement.cs
- Control.cs
- HtmlTableCell.cs
- NotifyCollectionChangedEventArgs.cs
- DbParameterCollection.cs
- HtmlPhoneCallAdapter.cs
- SQLSingle.cs
- WebPartCatalogCloseVerb.cs
- EntityDataSourceWrapper.cs
- ParentQuery.cs
- ButtonAutomationPeer.cs
- BoundConstants.cs
- DataReceivedEventArgs.cs
- TrackingMemoryStream.cs
- DockPatternIdentifiers.cs
- DataShape.cs
- Semaphore.cs
- HttpStreamMessageEncoderFactory.cs
- CellTreeNodeVisitors.cs
- DetailsViewUpdateEventArgs.cs
- StyleXamlTreeBuilder.cs
- IgnoreFileBuildProvider.cs
- XmlSchemaSubstitutionGroup.cs
- EventWaitHandleSecurity.cs
- StylusLogic.cs
- TTSVoice.cs
- FixedPageProcessor.cs
- TextRunCache.cs
- DoubleCollectionConverter.cs
- Enlistment.cs
- ObjectDataSourceDisposingEventArgs.cs
- OdbcCommand.cs
- CodeIdentifiers.cs
- RunClient.cs
- ThreadPool.cs
- TextOutput.cs
- FormViewModeEventArgs.cs
- MenuItemBindingCollection.cs
- SiteMembershipCondition.cs
- PerformanceCounterManager.cs
- HtmlForm.cs
- EncryptedPackageFilter.cs
- PropertySet.cs
- SecurityContext.cs
- ValidationHelpers.cs
- SizeAnimationBase.cs
- ContainerFilterService.cs
- CodeExpressionStatement.cs
- SqlStream.cs
- OdbcEnvironment.cs
- NavigationCommands.cs
- SharedConnectionInfo.cs
- CatalogPartDesigner.cs
- SoapAttributes.cs
- _NtlmClient.cs
- DocComment.cs
- AutoGeneratedField.cs
- CommandValueSerializer.cs
- XmlSchemaAttribute.cs
- TypeUsageBuilder.cs
- MonthChangedEventArgs.cs
- TextCollapsingProperties.cs
- CurrentTimeZone.cs
- ListViewSortEventArgs.cs
- SoapObjectWriter.cs
- RenderTargetBitmap.cs
- EntityClassGenerator.cs
- StructureChangedEventArgs.cs
- TextBoxView.cs
- DataGridViewDataErrorEventArgs.cs
- ObjectListCommandCollection.cs
- _ConnectionGroup.cs
- autovalidator.cs
- ColorInterpolationModeValidation.cs
- WebUtil.cs
- XmlSigningNodeWriter.cs
- XmlChildEnumerator.cs
- ProbeDuplexCD1AsyncResult.cs
- Errors.cs
- CloudCollection.cs
- SerialPinChanges.cs
- CounterCreationDataCollection.cs
- RadioButton.cs
- EventDescriptor.cs