Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 5f3abea1b6
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (19 sloc) 0.411 kB
namespace System
{
public static class ObjectExtensions
{
#if HOSTED_MODE
public static string GetTypeName(this object obj) {
var type = obj.GetType();
var name = type.FullName;
if (name.StartsWith("DotWeb.System")) {
name = name.Substring("DotWeb.".Length);
}
return name;
}
#else
[JsMacro("{1}.$typename")]
public static extern string GetTypeName(this object obj);
#endif
}
}
Jump to Line
Something went wrong with that request. Please try again.