/*The "this Thread t" is probably the most important part of this bit, you want your [i]first[/i] argument to be "this CLASSTYPE qualifier"*/
public static Thread StartThread(this Thread t) {
t.Start();
return t;
}
var thread = new Thread(_ => {
Console.WriteLine("This is from another Thread!");
}).StartThread();
public static string[] Split(this string s, string delimiter) {
return s.Split(new string[] { delimiter }, StringSplitOptions.None);
}
string splat = "1~_~2".Split("~_~")[0];
/*The "this Thread t" is probably the most important part of this bit, you want your [i]first[/i] argument to be "this CLASSTYPE qualifier"*/
public static Thread StartThread(this Thread t) {
t.Start();
return t;
}
var thread = new Thread(_ => {
Console.WriteLine("This is from another Thread!");
}).StartThread();
public static string[] Split(this string s, string delimiter) {
return s.Split(new string[] { delimiter }, StringSplitOptions.None);
}
string splat = "1~_~2".Split("~_~")[0];
public static void RandomColor(this Label L)
{
R = Rand.Next(0, 200);
G = Rand.Next(0, 220);
B = Rand.Next(0, 200);
A = Rand.Next(200, 255);
L.ForeColor = Color.FromArgb(A, R, G, B);
}
public static void RandomColor(this Label L)
{
R = Rand.Next(0, 200);
G = Rand.Next(0, 220);
B = Rand.Next(0, 200);
A = Rand.Next(200, 255);
L.ForeColor = Color.FromArgb(A, R, G, B);
}
L.ForeColor = Color.FromArgb(new Random().Next(255), new Random().Next(255), new Random().Next(255), new Random().Next(255));
L.ForeColor = Color.FromArgb(new Random().Next(255), new Random().Next(255), new Random().Next(255), new Random().Next(255));
Copyright © 2024, NextGenUpdate.
All Rights Reserved.