本文整理汇总了C#中Boolean.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Boolean.ToString方法的具体用法?C# Boolean.ToString怎么用?C# Boolean.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Boolean
的用法示例。
在下文中一共展示了Boolean.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetForums
public ForumCollection<Forum> GetForums(Boolean active)
{
ForumCollection<Forum> _coll = new ForumCollection<Forum>(this.ConnectionString);
ArgumentsList _arg = new ArgumentsList(new ArgumentsListItem("Active", active.ToString()));
_coll.LitePopulate(_arg, false, null);
return _coll;
}
示例2: GetSitesByBox
public SiteInfoResponseType GetSitesByBox(box queryBox, Boolean includeSeries)
{
IEnumerable<SiteInfoType> sites = ODSiteInfo.GetSitesByBox(queryBox);
SiteInfoResponseType result = CreateSitesResponse(sites, includeSeries);
// result.queryInfo = CreateQueryInfo(new string[] { queryBox.ToString() });
result.queryInfo = CuahsiBuilder.CreateQueryInfoType("GetSitesByBox");
CuahsiBuilder.AddQueryInfoParameter(result.queryInfo, "north", queryBox.North.ToString());
CuahsiBuilder.AddQueryInfoParameter(result.queryInfo,"south", queryBox.South.ToString());
CuahsiBuilder.AddQueryInfoParameter(result.queryInfo,"east", queryBox.East.ToString());
CuahsiBuilder.AddQueryInfoParameter(result.queryInfo,"west", queryBox.West.ToString());
CuahsiBuilder.AddQueryInfoParameter(result.queryInfo,"includeSeries", includeSeries.ToString());
return result;
}