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
- FastPropertyAccessor.cs
- FormatSettings.cs
- NamedPipeProcessProtocolHandler.cs
- HybridDictionary.cs
- UrlMappingsModule.cs
- ConfigurationSchemaErrors.cs
- Trace.cs
- CompiledIdentityConstraint.cs
- ButtonFlatAdapter.cs
- categoryentry.cs
- ForceCopyBuildProvider.cs
- DataPagerFieldItem.cs
- CorePropertiesFilter.cs
- ClientRolePrincipal.cs
- TeredoHelper.cs
- DependencyPropertyKey.cs
- CompilerCollection.cs
- SimpleType.cs
- SecurityKeyType.cs
- SortedDictionary.cs
- DataTable.cs
- DocumentAutomationPeer.cs
- DataListItemCollection.cs
- DoubleLinkListEnumerator.cs
- ManagedFilter.cs
- TreeViewImageKeyConverter.cs
- CodeNamespace.cs
- AnnotationStore.cs
- EDesignUtil.cs
- TouchEventArgs.cs
- xdrvalidator.cs
- ThicknessConverter.cs
- NamespaceQuery.cs
- SkinBuilder.cs
- GiveFeedbackEvent.cs
- PrimitiveXmlSerializers.cs
- PrinterUnitConvert.cs
- JsonStringDataContract.cs
- MediaCommands.cs
- VirtualPathUtility.cs
- UIElement3D.cs
- ToolStripSystemRenderer.cs
- DataGridViewComboBoxColumn.cs
- SynchronizationValidator.cs
- ParserExtension.cs
- PictureBox.cs
- AccessedThroughPropertyAttribute.cs
- OleDbRowUpdatedEvent.cs
- FieldToken.cs
- Walker.cs
- Dump.cs
- ContainerControl.cs
- NativeMethods.cs
- HitTestWithPointDrawingContextWalker.cs
- StringDictionaryEditor.cs
- IntSecurity.cs
- CombinedGeometry.cs
- QuaternionAnimationUsingKeyFrames.cs
- MouseButtonEventArgs.cs
- ThousandthOfEmRealDoubles.cs
- ReversePositionQuery.cs
- ResourceType.cs
- _LocalDataStore.cs
- SimpleBitVector32.cs
- DataGridViewColumnStateChangedEventArgs.cs
- AmbiguousMatchException.cs
- EmissiveMaterial.cs
- OleAutBinder.cs
- SQlBooleanStorage.cs
- StorageFunctionMapping.cs
- CatalogZoneBase.cs
- PublisherMembershipCondition.cs
- Cursor.cs
- LoadedOrUnloadedOperation.cs
- OdbcConnectionString.cs
- SQLCharsStorage.cs
- RepeaterItemEventArgs.cs
- ImageFormatConverter.cs
- invalidudtexception.cs
- BCLDebug.cs
- MethodImplAttribute.cs
- RuntimeCompatibilityAttribute.cs
- Pair.cs
- GridViewUpdatedEventArgs.cs
- CustomValidator.cs
- CodeExporter.cs
- LinkDescriptor.cs
- EntityConnectionStringBuilder.cs
- ImageMetadata.cs
- DataBinder.cs
- DateTimeConverter.cs
- DispatcherExceptionEventArgs.cs
- PlainXmlDeserializer.cs
- SyndicationCategory.cs
- EncoderExceptionFallback.cs
- ILGen.cs
- HashMembershipCondition.cs
- XmlWrappingReader.cs
- StateManagedCollection.cs
- OdbcCommand.cs