示例#1
0
 protected WebSharpObject(object obj) : base()
 {
     InstanceType = GetType();
     if (cachedPropertyInfo == null)
     {
         cachedPropertyInfo = CachedPropertyInfo;
     }
 }
示例#2
0
 public WebSharpObject()
 {
     InstanceType = GetType();
     if (cachedPropertyInfo == null)
     {
         cachedPropertyInfo = CachedPropertyInfo;
     }
 }
示例#3
0
        protected WebSharpObject(object obj) : base()
        {
            InstanceType = GetType();
            if (cachedPropertyInfo == null)
            {
                cachedPropertyInfo = CachedPropertyInfo;
            }

            var dict = obj as IDictionary <string, object>;

            // The key `websharp_id` represents a wrapped proxy object
            if (dict != null && dict.ContainsKey("websharp_id"))
            {
                JavaScriptProxy = obj;
            }
        }