本文整理汇总了C#中IronRuby.SetBuiltinConstant方法的典型用法代码示例。如果您正苦于以下问题:C# IronRuby.SetBuiltinConstant方法的具体用法?C# IronRuby.SetBuiltinConstant怎么用?C# IronRuby.SetBuiltinConstant使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IronRuby
的用法示例。
在下文中一共展示了IronRuby.SetBuiltinConstant方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadFile_Constants
private static void LoadFile_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
module.SetBuiltinConstant("ALT_SEPARATOR", IronRuby.Builtins.RubyFileOps.ALT_SEPARATOR);
module.SetBuiltinConstant("PATH_SEPARATOR", IronRuby.Builtins.RubyFileOps.PATH_SEPARATOR);
module.SetBuiltinConstant("Separator", IronRuby.Builtins.RubyFileOps.Separator);
module.SetBuiltinConstant("SEPARATOR", IronRuby.Builtins.RubyFileOps.SEPARATOR);
}
示例2: LoadStruct_Constants
private static void LoadStruct_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
#if !SILVERLIGHT
module.SetBuiltinConstant("Tms", IronRuby.Builtins.RubyStructOps.CreateTmsClass(module));
#endif
}
示例3: LoadThreadGroup_Constants
private static void LoadThreadGroup_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
module.SetBuiltinConstant("Default", IronRuby.Builtins.ThreadGroup.Default);
}
示例4: LoadObject_Constants
private static void LoadObject_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
module.SetBuiltinConstant("FALSE", IronRuby.Builtins.ObjectOps.FALSE);
module.SetBuiltinConstant("NIL", IronRuby.Builtins.ObjectOps.NIL);
module.SetBuiltinConstant("TRUE", IronRuby.Builtins.ObjectOps.TRUE);
}
示例5: LoadRegexp_Constants
private static void LoadRegexp_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
module.SetBuiltinConstant("EXTENDED", IronRuby.Builtins.RegexpOps.EXTENDED);
module.SetBuiltinConstant("IGNORECASE", IronRuby.Builtins.RegexpOps.IGNORECASE);
module.SetBuiltinConstant("MULTILINE", IronRuby.Builtins.RegexpOps.MULTILINE);
}
示例6: LoadMath_Constants
private static void LoadMath_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
module.SetBuiltinConstant("E", IronRuby.Builtins.RubyMath.E);
module.SetBuiltinConstant("PI", IronRuby.Builtins.RubyMath.PI);
}
示例7: LoadMarshal_Constants
private static void LoadMarshal_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
module.SetBuiltinConstant("MAJOR_VERSION", IronRuby.Builtins.RubyMarshal.MAJOR_VERSION);
module.SetBuiltinConstant("MINOR_VERSION", IronRuby.Builtins.RubyMarshal.MINOR_VERSION);
}
示例8: LoadIO_Constants
private static void LoadIO_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
module.SetBuiltinConstant("SEEK_CUR", IronRuby.Builtins.RubyIOOps.SEEK_CUR);
module.SetBuiltinConstant("SEEK_END", IronRuby.Builtins.RubyIOOps.SEEK_END);
module.SetBuiltinConstant("SEEK_SET", IronRuby.Builtins.RubyIOOps.SEEK_SET);
}
示例9: LoadFloat_Constants
private static void LoadFloat_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
module.SetBuiltinConstant("DIG", IronRuby.Builtins.FloatOps.DIG);
module.SetBuiltinConstant("EPSILON", IronRuby.Builtins.FloatOps.EPSILON);
module.SetBuiltinConstant("MANT_DIG", IronRuby.Builtins.FloatOps.MANT_DIG);
module.SetBuiltinConstant("MAX", IronRuby.Builtins.FloatOps.MAX);
module.SetBuiltinConstant("MAX_10_EXP", IronRuby.Builtins.FloatOps.MAX_10_EXP);
module.SetBuiltinConstant("MAX_EXP", IronRuby.Builtins.FloatOps.MAX_EXP);
module.SetBuiltinConstant("MIN", IronRuby.Builtins.FloatOps.MIN);
module.SetBuiltinConstant("MIN_10_EXP", IronRuby.Builtins.FloatOps.MIN_10_EXP);
module.SetBuiltinConstant("MIN_EXP", IronRuby.Builtins.FloatOps.MIN_EXP);
module.SetBuiltinConstant("RADIX", IronRuby.Builtins.FloatOps.RADIX);
module.SetBuiltinConstant("ROUNDS", IronRuby.Builtins.FloatOps.ROUNDS);
}
示例10: LoadFile__Constants_Constants
private static void LoadFile__Constants_Constants(IronRuby.Builtins.RubyModule/*!*/ module) {
module.SetBuiltinConstant("APPEND", IronRuby.Builtins.RubyFileOps.Constants.APPEND);
module.SetBuiltinConstant("BINARY", IronRuby.Builtins.RubyFileOps.Constants.BINARY);
module.SetBuiltinConstant("CREAT", IronRuby.Builtins.RubyFileOps.Constants.CREAT);
module.SetBuiltinConstant("EXCL", IronRuby.Builtins.RubyFileOps.Constants.EXCL);
module.SetBuiltinConstant("FNM_CASEFOLD", IronRuby.Builtins.RubyFileOps.Constants.FNM_CASEFOLD);
module.SetBuiltinConstant("FNM_DOTMATCH", IronRuby.Builtins.RubyFileOps.Constants.FNM_DOTMATCH);
module.SetBuiltinConstant("FNM_NOESCAPE", IronRuby.Builtins.RubyFileOps.Constants.FNM_NOESCAPE);
module.SetBuiltinConstant("FNM_PATHNAME", IronRuby.Builtins.RubyFileOps.Constants.FNM_PATHNAME);
module.SetBuiltinConstant("FNM_SYSCASE", IronRuby.Builtins.RubyFileOps.Constants.FNM_SYSCASE);
module.SetBuiltinConstant("LOCK_EX", IronRuby.Builtins.RubyFileOps.Constants.LOCK_EX);
module.SetBuiltinConstant("LOCK_NB", IronRuby.Builtins.RubyFileOps.Constants.LOCK_NB);
module.SetBuiltinConstant("LOCK_SH", IronRuby.Builtins.RubyFileOps.Constants.LOCK_SH);
module.SetBuiltinConstant("LOCK_UN", IronRuby.Builtins.RubyFileOps.Constants.LOCK_UN);
module.SetBuiltinConstant("NONBLOCK", IronRuby.Builtins.RubyFileOps.Constants.NONBLOCK);
module.SetBuiltinConstant("RDONLY", IronRuby.Builtins.RubyFileOps.Constants.RDONLY);
module.SetBuiltinConstant("RDWR", IronRuby.Builtins.RubyFileOps.Constants.RDWR);
module.SetBuiltinConstant("TRUNC", IronRuby.Builtins.RubyFileOps.Constants.TRUNC);
module.SetBuiltinConstant("WRONLY", IronRuby.Builtins.RubyFileOps.Constants.WRONLY);
}