Is a C# static method's variable initialised every time the method is called?

ساخت وبلاگ

Vote count: 0

In the example below, will a new StringBuilder(255) be created every time the static Flog.Log() function is called, or will it only be created the first time the method is called?

public class Flog { public static void Log(FlogType flogType, string msg, params System.Object[] p) { StringBuilder sb = new StringBuilder(255); sb.Length = 0; sb.AppendFormat(msg, p); Log(flogType, sb.ToString()); }
}
asked 41 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : is a cucumber a fruit,is a coconut a fruit,is a coconut a nut,is a cold sore herpes,is a circle a polygon,is a cashew a nut,is a cherry a berry,is a cold contagious,is a chicken a bird,is a cold a virus, نویسنده : استخدام کار backsoft بازدید : 262 تاريخ : شنبه 27 شهريور 1395 ساعت: 6:38