Hi,
I want to override these methods below of Random Class. I know haow can I override a method but there is a problem here! We dont have the codes of virtual methods below in MSDN to change them and make override methods.
methods: DoubleByte, NextByte, Next, ToString
forexample: I want to override NextByte method of Random class. The NextByte method returns an array contain random numbers. now the method that I want to override NextByte method, should be like the NextBytes method with some changes, forexample what? could u help me to write override methods above?
Loading

Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 12, 2011, 3:40 AM EDT
Implement method overloading...
Refer:
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jul 12, 2011, 4:31 AM EDT
Its better to know how to override a method in C#.
to override the NextByte,
define a method like this with virtual keyword in the class you want to use.
public virtual void NextBytes(byte[] buffer) { // your code here }VulpesRank #55 · 29.2K reputationPosted Jul 12, 2011, 5:17 AM EDT