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
- IisTraceWebEventProvider.cs
- XamlFigureLengthSerializer.cs
- FixedSOMLineRanges.cs
- Imaging.cs
- ComboBoxRenderer.cs
- RequestQueue.cs
- PtsHost.cs
- DesignerForm.cs
- RSACryptoServiceProvider.cs
- FormsAuthenticationCredentials.cs
- MemoryStream.cs
- ClipboardData.cs
- Link.cs
- RegexReplacement.cs
- GeneratedView.cs
- UserControl.cs
- WsatTransactionHeader.cs
- CryptoHelper.cs
- MarkupExtensionReturnTypeAttribute.cs
- KeyValueConfigurationElement.cs
- OneWayChannelFactory.cs
- DataGridViewTextBoxEditingControl.cs
- BinaryReader.cs
- BufferedStream.cs
- Interop.cs
- TableRowsCollectionEditor.cs
- ResXResourceWriter.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- UInt64.cs
- NotSupportedException.cs
- SessionParameter.cs
- DrawingServices.cs
- ContentOperations.cs
- DataControlFieldCollection.cs
- OpCodes.cs
- CatalogZone.cs
- DocumentXPathNavigator.cs
- _PooledStream.cs
- MergeFilterQuery.cs
- EdmComplexTypeAttribute.cs
- OutputCacheProfileCollection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Localizer.cs
- EventProviderWriter.cs
- DesignerProperties.cs
- DayRenderEvent.cs
- ApplicationServicesHostFactory.cs
- DataObject.cs
- PermissionSetTriple.cs
- TextFormattingConverter.cs
- WindowsFormsHost.cs
- RevocationPoint.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- AdornerLayer.cs
- SvcFileManager.cs
- RegexGroupCollection.cs
- ControlBuilderAttribute.cs
- InteropAutomationProvider.cs
- Guid.cs
- PlainXmlSerializer.cs
- HwndMouseInputProvider.cs
- ResourcePart.cs
- LogReservationCollection.cs
- ErrorFormatter.cs
- NativeMethods.cs
- JournalEntryStack.cs
- AggregateNode.cs
- SubMenuStyleCollection.cs
- FakeModelPropertyImpl.cs
- ZipIORawDataFileBlock.cs
- SelectorAutomationPeer.cs
- XmlSchemaType.cs
- DataSourceDescriptorCollection.cs
- RectangleConverter.cs
- ApplicationServiceHelper.cs
- FormViewUpdateEventArgs.cs
- Base64Decoder.cs
- ExpressionBindings.cs
- GPPOINT.cs
- SourceCollection.cs
- InputBindingCollection.cs
- ListParaClient.cs
- MethodRental.cs
- RemotingServices.cs
- TreeBuilderBamlTranslator.cs
- DbConnectionHelper.cs
- CommandManager.cs
- EventWaitHandle.cs
- MaskDescriptors.cs
- _NegotiateClient.cs
- DataServiceRequestException.cs
- SqlServer2KCompatibilityAnnotation.cs
- DataGridItemAttachedStorage.cs
- BrushMappingModeValidation.cs
- XmlSchemaSubstitutionGroup.cs
- LowerCaseStringConverter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- WrapperEqualityComparer.cs
- ListBoxItemWrapperAutomationPeer.cs
- DataDocumentXPathNavigator.cs