Answer the question
In order to leave comments, you need to log in
Is String a class or an object class?
Hello! There is a string variable:
stringComplex = String.Format(testFormatter, "{0:TEST1}", complex);
public static String Format(IFormatProvider provider, String format, params object[] args);
Answer the question
In order to leave comments, you need to log in
Static methods are those that can be called by the class name. Class.AnyStaticMethod(). They can only use static fields. Of course, terminologically this is not true, but you caught the meaning correctly, in this case the class itself acts as an object.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question