本文整理汇总了C#中Field.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# Field.GetValue方法的具体用法?C# Field.GetValue怎么用?C# Field.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Field
的用法示例。
在下文中一共展示了Field.GetValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetInitialFieldValue
private string GetInitialFieldValue(Field field)
{
return field.GetValue(true, true);
}
示例2: CreateDefenseRowView
private void CreateDefenseRowView(Field field)
{
var value = field.GetValue(D3Context.Instance.EditingItem.AttributesRaw);
if (value == null || value.IsZero())
{
return;
}
layoutDefense.AddView(CreateRowView(defenseLabels, DefenseFields, field, value), layoutDefense.ChildCount - 1);
}
示例3: CreateSkillBonusRowView
private void CreateSkillBonusRowView(Field field)
{
var value = field.GetValue(D3Context.Instance.EditingItem.AttributesRaw);
if (value == null || value.IsZero())
{
return;
}
layoutSkillBonus.AddView(CreateRowView(skillBonusLabels, SkillBonusFields, field, value), layoutSkillBonus.ChildCount - 1);
}
示例4: FixContainsStandardValue
/// <summary>
/// Fixes the contains standard value bug #368493.
/// </summary>
/// <see cref="https://support.sitecore.net/helpdesk/defects/ViewDefect.aspx?DefectId=368493"/>
/// <param name="field">The field.</param>
private static void FixContainsStandardValue(Field field)
{
// disable fallback and get the value again to fix the bug
using (new FieldFallback.Data.FallbackDisabler())
{
// just call GetValue... we can disregard the result
field.GetValue(true, false);
}
}