ToObject() public method

public ToObject ( ) : object>.Dictionary
return object>.Dictionary
示例#1
0
文件: Image.cs 项目: defrex/moxie
        private Dictionary <string, object> _getAsBlob(string type = "image/jpeg", int quality = 90)
        {
            MemoryStream stream = getAsEncodedStream(type, quality);
            File         blob   = new File(new List <object> {
                stream
            }, new Dictionary <string, string> {
                { "name", this.name },
                { "type", type }
            });

            Moxie.compFactory.add(blob.uid, blob);
            return(blob.ToObject());
        }
示例#2
0
        public Dictionary <string, object> getResponseAsBlob()
        {
            if (_response == null)
            {
                return(null);
            }

            File blob = new File(new List <object> {
                _response
            }, new Dictionary <string, string> {
                { "name", _url.LocalPath }
            });

            Moxie.compFactory.add(blob.uid, blob);
            return(blob.ToObject());
        }
示例#3
0
        public Dictionary<string, object> getResponseAsBlob()
        {
            if (_response == null) {
                return null;
            }

            File blob = new File(new List<object>{_response}, new Dictionary<string, string>{{"name", _url.LocalPath }});
            Moxie.compFactory.add(blob.uid, blob);
            return blob.ToObject();
        }
示例#4
0
文件: Image.cs 项目: 6eee/moxie
 private Dictionary<string, object> _getAsBlob(string type = "image/jpeg", int quality = 90)
 {
     MemoryStream stream = getAsEncodedStream(type, quality);
     File blob = new File(new List<object>{stream}, new Dictionary<string,string>{
         { "name", this.name },
         { "type", type }
     });
     Moxie.compFactory.add(blob.uid, blob);
     return blob.ToObject();
 }