public string TryConvertFrom(string text, ITextClass anotherClass) { if (text == null) { throw new ArgumentNullException(nameof(text)); } if (anotherClass == null) { throw new ArgumentNullException(nameof(anotherClass)); } if (anotherClass.GetType() == this.GetType()) { return(text); } return(this.TryConvertFromImpl(text, anotherClass)); }