Showing posts with label visual c#. Show all posts
Showing posts with label visual c#. Show all posts

Use of Stopwatch Class in C#

0 comments

Using the following line a new stopwatch object will be created:
System.Diagnostics.Stopwatch myStopWatch = newSystem.Diagnostics.Stopwatch();
The "Start" method will start the stopwatch:

What are sealed classes and sealed methods

0 comments

Sealed Class

 
Sealed class is used to define the inheritance level of a class.
 
The sealed modifier is used to prevent derivation from a class. An error occurs if a sealed class is specified as the base class of another class.

Generating Random Passwords with ASP. NET and C#

0 comments
Generating random passwords can increase the security of a website by taking the process out of the hands of the user, or simply providing an alternative, and thus reducing the chance of easily-guessable passwords being used. This tutorial shows a simple method of creating a random password.