I am currently converting a Java library to C# .Net, please help me to find if there are C# equivalents of the following java specifics:

  • RuntimeException()
  • IllegalStateException()
  • StringBuffer

Any resource on Java to C# conversion will be very helpful. Thanks in advance.

Recommended Answers

Welcome mesbahuk!
I should change StringBuffer into StringBuilder
AS you can derive your own exceptions from the Exception class, look here for a start in C#. Success!

Jump to Post

All 2 Replies

Welcome mesbahuk!
I should change StringBuffer into StringBuilder
AS you can derive your own exceptions from the Exception class, look here for a start in C#. Success!

Thanks ddanbe.

Using StringBuffer solved stringBuffer problem.
I'm still a bit hazy on custom exception handling, can u suggest me some more reading materials? this will be a great help. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.