In the ClassToMarkdown method you have this part of code:
if (type.BaseType != typeof(object)) output.AppendLine("*Extends " + type.BaseType.FullName + "*");
When BaseType is null (for example if an object is a type of interface or object class) then unhandled System.NullReferenceException occurs. AND condition with "type.Basetype !=null" missing in above-mentioned if statement.
In the ClassToMarkdown method you have this part of code:
if (type.BaseType != typeof(object)) output.AppendLine("*Extends " + type.BaseType.FullName + "*");When BaseType is null (for example if an object is a type of interface or object class) then unhandled System.NullReferenceException occurs. AND condition with "type.Basetype !=null" missing in above-mentioned if statement.