How to generate a Random number using RNGCryptoServiceProvid
using System.Security.Cryptography;
write a simple function "GetUniqueKey"
private string GetUniqueKey()
{
int maxSize = 8;
int minSize = 5;
char[] chars = new char[62];
string a;
using System.Security.Cryptography;
write a simple function "GetUniqueKey"
private string GetUniqueKey()
{
int maxSize = 8;
int minSize = 5;
char[] chars = new char[62];
string a;
using System.Text.RegularExpressions;
public class IPAddressTextBox: RegExTextBox
{
public IPAddressTextBox()
{
InitializeComponent();
this.ValidationExpression = @"^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$";
Definition:
“When an unusual, irregular, abnormal or nonstandard condition arises in a sequence of code at run time this phenomenon is referred as Exception handling”
An exception is a runtime error.
In Object Oriented, an exception is an object that is used to describes an exceptional condition that has occurred in a piece of code.
Using System.net;
Definition:
In java programming language, an interface is an abstract, conceptual or concrete type that is used to specify an interface.
How to use an interface:
It means that, using interface, we can specify what a class must do, but not how it does it.
Inheritance is a process which allows inheriting the methods and properties of parent or super class.
OR
Deriving an object from an existing class (super class)