本文整理汇总了C#中ActivityParameterDictionary.GetParamValueAsArray方法的典型用法代码示例。如果您正苦于以下问题:C# ActivityParameterDictionary.GetParamValueAsArray方法的具体用法?C# ActivityParameterDictionary.GetParamValueAsArray怎么用?C# ActivityParameterDictionary.GetParamValueAsArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActivityParameterDictionary
的用法示例。
在下文中一共展示了ActivityParameterDictionary.GetParamValueAsArray方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateHelpPhraseComposer
private PhraseComposer CreateHelpPhraseComposer(ActivityParameterDictionary parameters)
{
var composer = new PhraseComposer(_soundManager)
{
TextFormat = parameters.GetParamValue("HelpTextFormat", string.Empty),
Parameters = parameters.GetParamValueAsArray("HelpParameters"),
PhraseFormat = parameters.GetParamValue("HelpPhraseFormat", "{s*}"),
Sounds = parameters.GetParamValueAsArray("HelpSounds", new string[0])
};
return composer;
}
示例2: CreatePhraseComposer
private PhraseComposer CreatePhraseComposer(
ActivityParameterDictionary parameters, bool forComposeTextOnly)
{
var composer = new PhraseComposer(_soundManager)
{
TextFormat = parameters.GetParamValue("TextFormat", string.Empty),
Parameters = parameters.GetParamValueAsArray("Parameters")
};
if (!forComposeTextOnly)
{
composer.PhraseFormat = parameters.GetParamValue("PhraseFormat", "{s*}");
composer.Sounds = parameters.GetParamValueAsArray<string>("Sounds");
}
return composer;
}
示例3: GetWaitedEvents
private static WaitHandle[] GetWaitedEvents(ActivityParameterDictionary parameters)
{
return parameters.GetParamValueAsArray<WaitHandle>("WaitedEvents");
}