本文整理汇总了C#中Shelisp.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Shelisp.ToString方法的具体用法?C# Shelisp.ToString怎么用?C# Shelisp.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shelisp
的用法示例。
在下文中一共展示了Shelisp.ToString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Freplace_match
public static Shelisp.Object Freplace_match(L l, Shelisp.Object newtext, [LispOptional] Shelisp.Object fixedcase, Shelisp.Object literal, Shelisp.Object str, Shelisp.Object subexp)
{
if (!L.NILP (str)) {
int start = L.match_data[0];
int end = L.match_data[1];
string str_s = (string)(Shelisp.String)str;
return (Shelisp.String)System.String.Concat (str_s.Substring (0, start), newtext.ToString("princ"), str_s.Substring (end));
}
else {
Console.WriteLine ("replace-match not implemented"); return str;
}
}
示例2: Fread_from_minibuffer
public static Shelisp.Object Fread_from_minibuffer(L l, Shelisp.Object prompt,
[LispOptional] Shelisp.Object initial_contents, Shelisp.Object keymap, Shelisp.Object read, Shelisp.Object hist, Shelisp.Object default_value, Shelisp.Object inherit_input_method)
{
Console.Write (prompt.ToString("princ"));
var input = Console.ReadLine ();
if (L.NILP (read))
return (Shelisp.String)input;
else {
return Reader.ReadFromString (input);
}
}
示例3: Fprint
public static Shelisp.Object Fprint(L l, Shelisp.Object obj, [LispOptional] Shelisp.Object stream)
{
Console.WriteLine (obj.ToString("prin1"));
return obj;
}
示例4: Fcompleting_read
public static Shelisp.Object Fcompleting_read(L l, Shelisp.Object prompt, Shelisp.Object collection, [LispOptional] Shelisp.Object predicate, Shelisp.Object require_match,
Shelisp.Object initial_input, Shelisp.Object hist, Shelisp.Object def, Shelisp.Object inherit_input_method)
{
Console.Write (prompt.ToString("princ"));
return (Shelisp.String)Console.ReadLine ();
}
示例5: Fprin1_to_string
public static Shelisp.Object Fprin1_to_string(L l, Shelisp.Object obj)
{
return (Shelisp.String)obj.ToString("prin1");
}