Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / DeriveBytes.cs / 1305376 / DeriveBytes.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// [....]
//
//
// DeriveBytes.cs
//
namespace System.Security.Cryptography {
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class DeriveBytes
// On Orcas DeriveBytes is not disposable, so we cannot add the IDisposable implementation to the
// CoreCLR mscorlib. However, this type does need to be disposable since subtypes can and do hold onto
// native resources. Therefore, on desktop mscorlibs we add an IDisposable implementation.
#if !FEATURE_CORECLR
: IDisposable
#endif // !FEATURE_CORECLR
{
//
// public methods
//
public abstract byte[] GetBytes(int cb);
public abstract void Reset();
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
return;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// [....]
//
//
// DeriveBytes.cs
//
namespace System.Security.Cryptography {
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class DeriveBytes
// On Orcas DeriveBytes is not disposable, so we cannot add the IDisposable implementation to the
// CoreCLR mscorlib. However, this type does need to be disposable since subtypes can and do hold onto
// native resources. Therefore, on desktop mscorlibs we add an IDisposable implementation.
#if !FEATURE_CORECLR
: IDisposable
#endif // !FEATURE_CORECLR
{
//
// public methods
//
public abstract byte[] GetBytes(int cb);
public abstract void Reset();
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
return;
}
}
}
// 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
- WebControlsSection.cs
- SelectorAutomationPeer.cs
- FunctionImportElement.cs
- NaturalLanguageHyphenator.cs
- Visitor.cs
- PointAnimationBase.cs
- ScrollProviderWrapper.cs
- RowUpdatingEventArgs.cs
- SchemaElement.cs
- ElementMarkupObject.cs
- ColorConverter.cs
- GraphicsContainer.cs
- base64Transforms.cs
- TrustExchangeException.cs
- DataServiceEntityAttribute.cs
- DoubleAnimationUsingKeyFrames.cs
- ImportOptions.cs
- TableRow.cs
- InternalPermissions.cs
- BreakRecordTable.cs
- SafeHGlobalHandleCritical.cs
- OperationPickerDialog.designer.cs
- MeasureData.cs
- ControlParameter.cs
- SerialReceived.cs
- ErrorWebPart.cs
- WindowPattern.cs
- CrossAppDomainChannel.cs
- TdsParser.cs
- FilteredReadOnlyMetadataCollection.cs
- IntegerValidatorAttribute.cs
- SuppressIldasmAttribute.cs
- ObjectNotFoundException.cs
- XslNumber.cs
- ControlCommandSet.cs
- MetafileHeader.cs
- DbUpdateCommandTree.cs
- WebBrowserNavigatingEventHandler.cs
- StructuredTypeEmitter.cs
- SmiMetaData.cs
- SqlParameterizer.cs
- TriggerActionCollection.cs
- CodeTypeReferenceCollection.cs
- UidManager.cs
- CodeDomDecompiler.cs
- ScriptReferenceEventArgs.cs
- EventLogReader.cs
- __Filters.cs
- SqlMethods.cs
- NativeMethods.cs
- DbSetClause.cs
- IncomingWebRequestContext.cs
- SafeSerializationManager.cs
- LayoutManager.cs
- AssemblyInfo.cs
- FileUtil.cs
- Avt.cs
- OneToOneMappingSerializer.cs
- DesigntimeLicenseContext.cs
- RegexGroup.cs
- User.cs
- DrawingCollection.cs
- WhitespaceRuleLookup.cs
- ClickablePoint.cs
- ComboBoxRenderer.cs
- UIAgentCrashedException.cs
- BindingExpressionBase.cs
- SpellerError.cs
- DNS.cs
- ClusterSafeNativeMethods.cs
- SHA256CryptoServiceProvider.cs
- ResourceExpression.cs
- SqlMethodCallConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- ConversionContext.cs
- CompositionAdorner.cs
- TextBox.cs
- DesignTimeVisibleAttribute.cs
- ToolboxBitmapAttribute.cs
- Point3DAnimationBase.cs
- TypeUtils.cs
- IdentityManager.cs
- SmiMetaDataProperty.cs
- OLEDB_Util.cs
- DocumentPageViewAutomationPeer.cs
- localization.cs
- Encoding.cs
- LogicalTreeHelper.cs
- PaperSource.cs
- _NativeSSPI.cs
- WebControl.cs
- DetailsView.cs
- StylusPointDescription.cs
- GroupBox.cs
- RegistrationServices.cs
- HandlerBase.cs
- PolyBezierSegment.cs
- Method.cs
- DecoderFallback.cs
- SecurityUtils.cs