#if COPYRIGHT
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
#endif
Object.__typeName = 'Object';
Object.__class = true;
Object.getType = function(instance) {
/// The object for which the type must be returned.
/// The type of the object.
var ctor = instance.constructor;
if (!ctor || (typeof(ctor) !== "function") || !ctor.__typeName || (ctor.__typeName === 'Object')) {
return Object;
}
return ctor;
}
Object.getTypeName = function(instance) {
/// The object for which the type name must be returned.
/// The name of the type of the object.
return Object.getType(instance).getName();
}