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
- SettingsAttributeDictionary.cs
- FirewallWrapper.cs
- SystemGatewayIPAddressInformation.cs
- ConfigurationManagerHelper.cs
- RouteItem.cs
- WindowsGrip.cs
- XmlSchemaInfo.cs
- QueryInterceptorAttribute.cs
- GetBrowserTokenRequest.cs
- ExpandCollapseProviderWrapper.cs
- ObjectViewQueryResultData.cs
- ExpressionVisitorHelpers.cs
- BrowserDefinition.cs
- Storyboard.cs
- QueryCacheEntry.cs
- PngBitmapEncoder.cs
- NativeMethods.cs
- StyleBamlRecordReader.cs
- LostFocusEventManager.cs
- SqlVersion.cs
- UnmanagedBitmapWrapper.cs
- jithelpers.cs
- UIElement3D.cs
- Transform3DCollection.cs
- _FtpDataStream.cs
- TreeNodeCollection.cs
- SizeAnimation.cs
- MustUnderstandBehavior.cs
- InternalConfigEventArgs.cs
- PropertyKey.cs
- EntityTemplateFactory.cs
- StateBag.cs
- ReadWriteSpinLock.cs
- BrowserCapabilitiesFactory.cs
- SQLMembershipProvider.cs
- TemplateNodeContextMenu.cs
- StandardCommandToolStripMenuItem.cs
- BooleanFunctions.cs
- Latin1Encoding.cs
- ListGeneralPage.cs
- WindowsContainer.cs
- HtmlButton.cs
- OpCopier.cs
- SecuritySessionSecurityTokenProvider.cs
- SubclassTypeValidator.cs
- BufferedGraphicsContext.cs
- WebExceptionStatus.cs
- ProfileParameter.cs
- RestHandlerFactory.cs
- ProfileParameter.cs
- XMLUtil.cs
- FunctionGenerator.cs
- SQLRoleProvider.cs
- SamlAttributeStatement.cs
- ButtonStandardAdapter.cs
- ObjectPropertyMapping.cs
- AlignmentYValidation.cs
- MSHTMLHost.cs
- DataGridDetailsPresenter.cs
- LinkedList.cs
- PerformanceCounter.cs
- SkinBuilder.cs
- ReadOnlyDictionary.cs
- TextSimpleMarkerProperties.cs
- PeerNodeAddress.cs
- ReverseQueryOperator.cs
- ObjectQueryExecutionPlan.cs
- EnumValidator.cs
- RawStylusInput.cs
- BooleanStorage.cs
- FormViewCommandEventArgs.cs
- ProviderConnectionPointCollection.cs
- ListBindingHelper.cs
- Dump.cs
- TextMarkerSource.cs
- MachineKeyConverter.cs
- ConfigurationStrings.cs
- ChangesetResponse.cs
- DrawingBrush.cs
- ToolStripDropDown.cs
- Validator.cs
- BitmapFrameEncode.cs
- PrintEvent.cs
- HostingPreferredMapPath.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- TransformCollection.cs
- WaitingCursor.cs
- SqlDependencyUtils.cs
- Block.cs
- CqlErrorHelper.cs
- InfoCardProofToken.cs
- GetRecipientRequest.cs
- ICollection.cs
- ButtonBaseAutomationPeer.cs
- HtmlTable.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- XmlSchema.cs
- DataTemplateSelector.cs
- UriTemplateCompoundPathSegment.cs
- BufferModesCollection.cs