拡張メソッドと静的メソッドの違いは何ですか?
私はこのような2つのクラスを持っています:
public static class AClass {
public static int AMethod(string ....)
{
}
}
と
public static class BClass {
public static int BMethod(this string ....)
{
}
}
これらを次のように使用できます
AClass.AMethod('...');
また
'...'.BMethod();
どれが提案されていますか?