唔好比T巴誤導
佢由頭到尾想證實static同singleton有關係
static 公廁,server層面全世界都用得 會出錯value
public static bool operation (List<String> c) {
return c == null;
}
第二個class
bool result = StaticClass.operation(myList.ToList());
The scope of a service is the area in the application where that service can be shared with other components that consume it. For example, in your application you may have a global static singleton - the “scope” of that global object instance would be the whole application. On the other hand, you might create a local variable in a for loop that makes use of the global singleton - the local variable has a much smaller scope than the global.