本文整理汇总了C#中HashMap.KeySet方法的典型用法代码示例。如果您正苦于以下问题:C# HashMap.KeySet方法的具体用法?C# HashMap.KeySet怎么用?C# HashMap.KeySet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HashMap
的用法示例。
在下文中一共展示了HashMap.KeySet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MomentUtil
static MomentUtil()
{
MOMENT_TYPES = new HashMap<String, String>(9);
MOMENT_TYPES.Put("AddActivity",
"https://developers.google.com/+/plugins/snippet/examples/thing");
MOMENT_TYPES.Put("BuyActivity",
"https://developers.google.com/+/plugins/snippet/examples/a-book");
MOMENT_TYPES.Put("CheckInActivity",
"https://developers.google.com/+/plugins/snippet/examples/place");
MOMENT_TYPES.Put("CommentActivity",
"https://developers.google.com/+/plugins/snippet/examples/blog-entry");
MOMENT_TYPES.Put("CreateActivity",
"https://developers.google.com/+/plugins/snippet/examples/photo");
MOMENT_TYPES.Put("ListenActivity",
"https://developers.google.com/+/plugins/snippet/examples/song");
MOMENT_TYPES.Put("ReserveActivity",
"https://developers.google.com/+/plugins/snippet/examples/restaurant");
MOMENT_TYPES.Put("ReviewActivity",
"https://developers.google.com/+/plugins/snippet/examples/widget");
MOMENT_LIST = new ArrayList<String>(MomentUtil.MOMENT_TYPES.KeySet());
Collections.Sort(MOMENT_LIST);
VISIBLE_ACTIVITIES = MOMENT_TYPES.KeySet().ToArray(new String[0]);
int count = VISIBLE_ACTIVITIES.Length;
for (int i = 0; i < count; i++)
{
VISIBLE_ACTIVITIES[i] = "http://schemas.google.com/" + VISIBLE_ACTIVITIES[i];
}
}