S
shapper
Hello,
I have been creating a few classes that extend some C# classes
functionality. For example:
// StringHelper
public class StringHelper {
public static String ParseHtml(String html) {
// Method Code
}
}
I defining my methods as static so I can use:
String parsed = StringHelper.ParseHtml(myHtml);
Is this a good way to extend C# classes?
Or would you advice me other methods?
Basically, I use this for all classes: DateTimeHelper, StringHelper,
FileHelper, UriHelper, etc
Thank You,
Miguel
I have been creating a few classes that extend some C# classes
functionality. For example:
// StringHelper
public class StringHelper {
public static String ParseHtml(String html) {
// Method Code
}
}
I defining my methods as static so I can use:
String parsed = StringHelper.ParseHtml(myHtml);
Is this a good way to extend C# classes?
Or would you advice me other methods?
Basically, I use this for all classes: DateTimeHelper, StringHelper,
FileHelper, UriHelper, etc
Thank You,
Miguel