本文整理汇总了C#中Core.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Core.ToString方法的具体用法?C# Core.ToString怎么用?C# Core.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core
的用法示例。
在下文中一共展示了Core.ToString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Prepare
static string Prepare(ref Dictionary<string, string> parameters, bool requireVerified, Core.ResponseFormat format)
{
if (parameters == null)
{
parameters = new Dictionary<string, string>();
}
if (requireVerified)
{
if (Manager.Instance.CurrentUser == null || !Manager.Instance.CurrentUser.IsAuthenticated)
{
return "Missing Authenticated User.";
}
parameters.Add("username", Manager.Instance.CurrentUser.Name.ToLower());
parameters.Add("user_token", Manager.Instance.CurrentUser.Token.ToLower());
}
parameters.Add("format", format.ToString().ToLower());
return null;
}
示例2: New
public static TreeNodeBuilder New(
Core.Document document,
Core.IEntry entry,
TreeNodeCollection nodes
)
{
string name = MakeNodeName( entry.ID );
string text = entry.ToString();
string icon = "entry.png";
TreeNode node = nodes.Add( name, text, icon, icon );
node.Tag = new TreeNodeBuilder( document, entry, node );
return (TreeNodeBuilder)node.Tag;
}
示例3: Lookup
public Lookup(Core.Lookup arena)
{
ID = arena.LookupID;
Value = arena.ToString();
}
示例4: CreateScalarExecutor
/// <summary>
/// Factory method invoked to create an executor to execute the given scalar command.
/// </summary>
/// <param name="command">The command to execute.</param>
/// <returns>An executor able to execute de command.</returns>
public IScalarExecutor CreateScalarExecutor(Core.IScalarCommand command)
{
if (command == null) throw new ArgumentNullException("command", "Command cannot be null.");
if (command.IsDisposed) throw new ObjectDisposedException(command.ToString());
if (!object.ReferenceEquals(this, command.Link))
throw new InvalidOperationException(
"This link '{0}' is not the same as the link of command '{1}'."
.FormatWith(this, command));
return new ScalarExecutor(command);
}
示例5: SetMessage
public void SetMessage(Core.CString message)
{
this.WriteText(message.ToString());
}