Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / RandomNumberGenerator.cs / 1305376 / RandomNumberGenerator.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // RandomNumberGenerator.cs // namespace System.Security.Cryptography { #if !FEATURE_CORECLR && !SILVERLIGHT [System.Runtime.InteropServices.ComVisible(true)] #endif // !FEATURE_CORECLR && !SILVERLIGHT public abstract class RandomNumberGenerator // On Orcas RandomNumberGenerator 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 { protected RandomNumberGenerator() { } // // public methods // #if !FEATURE_CORECLR && !SILVERLIGHT && !CORIOLIS [System.Security.SecuritySafeCritical] // auto-generated static public RandomNumberGenerator Create() { return Create("System.Security.Cryptography.RandomNumberGenerator"); } [System.Security.SecuritySafeCritical] // auto-generated static public RandomNumberGenerator Create(String rngName) { return (RandomNumberGenerator) CryptoConfig.CreateFromName(rngName); } #endif // !FEATURE_CORECLR && !SILVERLIGHT && !CORIOLIS public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { return; } public abstract void GetBytes(byte[] data); #if !FEATURE_CORECLR && !SILVERLIGHT public abstract void GetNonZeroBytes(byte[] data); #endif // !FEATURE_CORECLR && !SILVERLIGHT } } // 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
- XmlSchemaSearchPattern.cs
- MessageSecurityVersion.cs
- regiisutil.cs
- NamespaceQuery.cs
- UniqueID.cs
- CodeCatchClauseCollection.cs
- ItemsControlAutomationPeer.cs
- TextTreeTextElementNode.cs
- securitycriticaldataformultiplegetandset.cs
- ObjectDataProvider.cs
- XPathAxisIterator.cs
- DataGridViewRowConverter.cs
- XmlDomTextWriter.cs
- WasEndpointConfigContainer.cs
- UnsafeNativeMethods.cs
- ItemPager.cs
- ValueTypePropertyReference.cs
- OneOf.cs
- XmlUtil.cs
- SqlStream.cs
- MouseGestureValueSerializer.cs
- ErrorView.xaml.cs
- AnchoredBlock.cs
- Merger.cs
- CachedResourceDictionaryExtension.cs
- FormsAuthenticationUser.cs
- VideoDrawing.cs
- _SpnDictionary.cs
- SettingsContext.cs
- Expander.cs
- TokenCreationParameter.cs
- MsmqIntegrationInputChannel.cs
- HMACMD5.cs
- CLSCompliantAttribute.cs
- DbInsertCommandTree.cs
- XmlLangPropertyAttribute.cs
- CodeIdentifier.cs
- WebUtil.cs
- DataGridViewCellPaintingEventArgs.cs
- BitmapDecoder.cs
- SqlUDTStorage.cs
- SecurityState.cs
- Dump.cs
- ReflectionHelper.cs
- DesignerActionList.cs
- Parser.cs
- FragmentQueryKB.cs
- HtmlControl.cs
- KeyGesture.cs
- DateTimeOffset.cs
- DirectoryObjectSecurity.cs
- TypeConverterHelper.cs
- ProxyWebPartManager.cs
- ProxyHelper.cs
- EditingCommands.cs
- FontWeight.cs
- HtmlInputReset.cs
- Enlistment.cs
- TreeNodeBindingCollection.cs
- ParagraphResult.cs
- EventSetter.cs
- Formatter.cs
- TypefaceMap.cs
- StringFunctions.cs
- EditingCoordinator.cs
- Html32TextWriter.cs
- HtmlTextViewAdapter.cs
- thaishape.cs
- ApplyImportsAction.cs
- XmlSerializationWriter.cs
- UserControl.cs
- ActiveXHost.cs
- SizeAnimationBase.cs
- PropertyRecord.cs
- SamlAuthenticationStatement.cs
- SqlRetyper.cs
- DBSchemaRow.cs
- TreeView.cs
- JpegBitmapEncoder.cs
- DataGridViewColumnHeaderCell.cs
- XslNumber.cs
- CreatingCookieEventArgs.cs
- Bezier.cs
- BitmapCodecInfo.cs
- precedingquery.cs
- TrackingValidationObjectDictionary.cs
- CompilerInfo.cs
- ToolStripItemImageRenderEventArgs.cs
- ReadOnlyDataSource.cs
- GridViewHeaderRowPresenter.cs
- Module.cs
- Descriptor.cs
- GridPatternIdentifiers.cs
- AdvancedBindingPropertyDescriptor.cs
- BuilderInfo.cs
- Point.cs
- InvokeProviderWrapper.cs
- TextEditorParagraphs.cs
- RelationshipDetailsRow.cs
- Region.cs