Download a file in the background!





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

5
Date Submitted Tue. May. 29th, 2007 5:57 PM
Revision 1
Beginner ashraf_eme
Tags "ASP.NET 2.0" | "CSharp" | Fibonacci
Comments 0 comments
That is, after two starting values, each number is the sum of the two preceding numbers. The first Fibonacci numbers , also denoted as Fn, for n = 0, 1, … , are:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811…
this is One line function to get the sequance.
5
Date Submitted Fri. Jan. 26th, 2007 1:54 AM
Revision 1
Scripter i_kenneth
Tags "CSharp" | "impersonation" | "security"
Comments 0 comments
With this simple class you can run som code with others user accounts.
How to use:

// ...some code
using(Impersonator user = new Impersonator("domain", "user", "pswd"))
{
// This run with new credentials.
}
// ... more code