• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# io.IoState类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中io.IoState的典型用法代码示例。如果您正苦于以下问题:C# IoState类的具体用法?C# IoState怎么用?C# IoState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IoState类属于io命名空间,在下文中一共展示了IoState类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: createObject

 public static IoString createObject(IoState state, string symbol)
 {
     IoString str = new IoString();
     str = str.clone(state) as IoString;
     str.value = symbol;
     return str;
 }
开发者ID:ChadSki,项目名称:research-io,代码行数:7,代码来源:IoSeq.cs


示例2: newWithDouble

        public static IoNumber newWithDouble(IoState state, double n)
        {
            IoNumber fab = new IoNumber();
            IoNumber num = state.protoWithInitFunc(fab.name) as IoNumber;
            num = num.clone(state) as IoNumber;
            num.isInteger = false;
            num.doubleValue = n;

            if (Double.Equals(n, 0) ||
                (!Double.IsInfinity(n) && !Double.IsNaN(n) &&
                !n.ToString(CultureInfo.InvariantCulture).Contains(".") &&
                !n.ToString(CultureInfo.InvariantCulture).Contains("E") &&
                !n.ToString(CultureInfo.InvariantCulture).Contains("e")
                )
            )
            {
                try
                {
                    num.longValue = Convert.ToInt32(n);
                    num.isInteger = true;
                }
                catch (OverflowException oe)
                {

                }
            }
            return num;
        }
开发者ID:devaspot,项目名称:io,代码行数:28,代码来源:IoNumber.cs


示例3: createObject

 public static IoSeq createObject(IoState state, string symbol)
 {
     IoSeq seq = new IoSeq();
     seq = seq.clone(state) as IoSeq;
     seq.value = symbol;
     return seq;
 }
开发者ID:devaspot,项目名称:io,代码行数:7,代码来源:IoSeq.cs


示例4: IoCLR

 public IoCLR(IoState state, string name)
 {
     isActivatable = true;
     this.state = state;
     createSlots();
     createProtos();
     uniqueId = 0;
 }
开发者ID:ChadSki,项目名称:research-io,代码行数:8,代码来源:IoCLR.cs


示例5: IoCFunction

 public IoCFunction(IoState state, string name, IoMethodFunc func)
 {
     isActivatable = true;
     this.state = state;
     createSlots();
     createProtos();
     uniqueId = 0;
     funcName = name;
     this.func = func;
 }
开发者ID:devaspot,项目名称:io,代码行数:10,代码来源:IoCFunction.cs


示例6: clone

 public override IoObject clone(IoState state)
 {
     IoCLRObject proto = state.protoWithInitFunc(name) as IoCLRObject;
     IoCLRObject result = new IoCLRObject();
     result.isActivatable = true;
     uniqueIdCounter++;
     result.uniqueId = uniqueIdCounter;
     result.state = state;
     result.createProtos();
     result.createSlots();
     result.protos.Add(proto);
     return result;
 }
开发者ID:devaspot,项目名称:io,代码行数:13,代码来源:IoCLRObject.cs


示例7: proto

        public override IoObject proto(IoState state)
        {
            IoCLRAssembly pro = new IoCLRAssembly();
            pro.state = state;
            pro.uniqueId = 0;
            pro.createSlots();
            pro.createProtos();
            pro.isActivatable = true;
            state.registerProtoWithFunc(pro.name, new IoStateProto(pro.name, pro, new IoStateProtoFunc(pro.proto)));
            //pro.protos.Add(state.protoWithInitFunc("Object"));

            IoCFunction[] methodTable = new IoCFunction[] {
                new IoCFunction("namespaces", new IoMethodFunc(IoCLRAssembly.slotNamespaces)),
            };

            pro.addTaglessMethodTable(state, methodTable);
            return pro;
        }
开发者ID:stangelandcl,项目名称:io-clr,代码行数:18,代码来源:IoCLRAssembly.cs


示例8: Main

 static void Main()
 {
     IoState state = new IoState();
     state.prompt(state);
 }
开发者ID:stangelandcl,项目名称:io-clr,代码行数:5,代码来源:Program.cs


示例9: createProto

 public static new IoCLRAssembly createProto(IoState state)
 {
     IoCLRAssembly cf = new IoCLRAssembly();
     return cf.proto(state) as IoCLRAssembly;
 }
开发者ID:stangelandcl,项目名称:io-clr,代码行数:5,代码来源:IoCLRAssembly.cs


示例10: createObject

 public static new IoCLRAssembly createObject(IoState state)
 {
     IoCLRAssembly cf = new IoCLRAssembly();
     return cf.proto(state).clone(state) as IoCLRAssembly;
 }
开发者ID:stangelandcl,项目名称:io-clr,代码行数:5,代码来源:IoCLRAssembly.cs


示例11: IoSeqObjectHashtable

 public IoSeqObjectHashtable(IoState s)
 {
     state = s;
 }
开发者ID:devaspot,项目名称:io,代码行数:4,代码来源:IoObject.cs


示例12: createObject

 public static new IoBlock createObject(IoState state)
 {
     IoBlock number = new IoBlock();
     return number.clone(state) as IoBlock;
 }
开发者ID:stangelandcl,项目名称:io-clr,代码行数:5,代码来源:IoBlock.cs


示例13: proto

        public override IoObject proto(IoState state)
        {
            IoMap pro = new IoMap();
            pro.state = state;
            pro.createSlots();
            pro.createProtos();
            pro.map = new Hashtable();
            state.registerProtoWithFunc(pro.name, new IoStateProto(pro.name, pro, new IoStateProtoFunc(pro.proto)));
            pro.protos.Add(state.protoWithInitFunc("Object"));

            IoCFunction[] methodTable = new IoCFunction[] {
                new IoCFunction("at", new IoMethodFunc(IoMap.slotAt)),
                new IoCFunction("atPut", new IoMethodFunc(IoMap.slotAtPut)),
                new IoCFunction("atIfAbsentPut", new IoMethodFunc(IoMap.slotAtIfAbsentPut)),
                new IoCFunction("empty", new IoMethodFunc(IoMap.slotEmpty)),
                new IoCFunction("size", new IoMethodFunc(IoMap.slotSize)),
                new IoCFunction("removeAt", new IoMethodFunc(IoMap.slotRemoveAt)),
                new IoCFunction("hasKey", new IoMethodFunc(IoMap.slotHasKey)),
                new IoCFunction("hasValue", new IoMethodFunc(IoMap.slotHasValue)),
            };

            pro.addTaglessMethodTable(state, methodTable);
            return pro;
        }
开发者ID:ChadSki,项目名称:research-io,代码行数:24,代码来源:IoMap.cs


示例14: proto

        public override IoObject proto(IoState state)
        {
            IoString pro = new IoString();
            pro.state = state;
            //    pro.tag.cloneFunc = new IoTagCloneFunc(this.clone);
            //    pro.tag.compareFunc = new IoTagCompareFunc(this.compare);
            pro.createSlots();
            pro.createProtos();
            state.registerProtoWithFunc(name, new IoStateProto(name, pro, new IoStateProtoFunc(this.proto)));
            pro.protos.Add(state.protoWithInitFunc("Object"));

            IoCFunction[] methodTable = new IoCFunction[] {
                new IoCFunction("appendStr", new IoMethodFunc(IoString.slotAppendStr)),
                new IoCFunction("at", new IoMethodFunc(IoString.slotAt)),
                new IoCFunction("reverse", new IoMethodFunc(IoString.slotReverse)),
            };

            pro.addTaglessMethodTable(state, methodTable);
            return pro;
        }
开发者ID:ChadSki,项目名称:research-io,代码行数:20,代码来源:IoSeq.cs


示例15: clone

 public override IoObject clone(IoState state)
 {
     IoString proto = state.protoWithInitFunc(name) as IoString;
     IoString result = new IoString();
     result.state = state;
     result.value = proto.value;
     result.createProtos();
     result.createSlots();
     result.protos.Add(proto);
     return result;
 }
开发者ID:ChadSki,项目名称:research-io,代码行数:11,代码来源:IoSeq.cs


示例16: createProto

 public static new IoCLRFunction createProto(IoState state)
 {
     IoCLRFunction cf = new IoCLRFunction();
     return cf.proto(state) as IoCLRFunction;
 }
开发者ID:devaspot,项目名称:io,代码行数:5,代码来源:IoCLRFunction.cs


示例17: createObject

 public static new IoCLRFunction createObject(IoState state)
 {
     IoCLRFunction cf = new IoCLRFunction();
     return cf.proto(state).clone(state) as IoCLRFunction;
 }
开发者ID:devaspot,项目名称:io,代码行数:5,代码来源:IoCLRFunction.cs


示例18: createProto

 // Prototypes and Clone
 public static new IoBlock createProto(IoState state)
 {
     IoBlock number = new IoBlock();
     return number.proto(state) as IoBlock;
 }
开发者ID:stangelandcl,项目名称:io-clr,代码行数:6,代码来源:IoBlock.cs


示例19: createProto

 public static new IoCLRObject createProto(IoState state)
 {
     IoCLRObject cf = new IoCLRObject();
     return cf.proto(state) as IoCLRObject;
 }
开发者ID:devaspot,项目名称:io,代码行数:5,代码来源:IoCLRObject.cs


示例20: getType

 // Public methos
 public IoObject getType(IoState state, string typeName)
 {
     Type t = null;
     foreach (string s in this.usingNamespaces.Keys)
     {
         IoCLRAssembly asm = this.usingNamespaces[s] as IoCLRAssembly;
         t = asm.assembly.GetType(s + "." + typeName);
         if (t != null)
         {
             IoCLRObject obj = IoCLRObject.createObject(state) as IoCLRObject;
             obj.clrType = t;
             obj.clrInstance = null;
             return obj;
         }
     }
     if (t == null)
     {
         foreach (string s in this.loadedAssemblies.Keys)
         {
             IoCLRAssembly asm = this.loadedAssemblies[s] as IoCLRAssembly;
             t = asm.assembly.GetType(typeName);
             if (t != null)
             {
                 IoCLRObject obj = IoCLRObject.createObject(state) as IoCLRObject;
                 obj.clrType = t;
                 obj.clrInstance = null;
                 return obj;
             }
         }
     }
     return null;
 }
开发者ID:ChadSki,项目名称:research-io,代码行数:33,代码来源:IoCLR.cs



注:本文中的io.IoState类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# jQueryApi.jQueryEvent类代码示例发布时间:2022-05-26
下一篇:
C# io.IoObject类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap