本文整理汇总了C#中Java.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# Java.Equals方法的具体用法?C# Java.Equals怎么用?C# Java.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Java
的用法示例。
在下文中一共展示了Java.Equals方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetItemPosition
/// <summary>
/// Called when the host view is attempting to determine if an item's position has changed. We
/// </summary>
/// <param name="objectValue"></param>
/// <returns></returns>
public override int GetItemPosition(Java.Lang.Object objectValue)
{
if (objectValue.Equals(Wizard.PreviousStep))
return PositionUnchanged;
return PositionNone; //Indicates that the item is no longer present in the adapter.. Forces a screen reload.. causing the updated context data to appear
}
示例2: Apply
public Java.Lang.Object Apply(Java.Lang.Object context, Java.Lang.Object groupName) {
// Developers can create a special group layout for any given group name.
if(groupName.Equals("Group 2")) {
EditorGroup group = new EditorGroup((Context)context, groupName.ToString(), Resource.Layout.dataform_custom_group);
// Each group can have a specific layout manager, be it a table layout, a linear layout, a placeholder layout or even something completely custom.
group.LayoutManager = new DataFormPlaceholderLayoutManager((Context)context, Resource.Layout.dataform_group_placeholder_layout);
return group;
}
return null;
}
示例3: SupportsType
protected override bool SupportsType(Java.Lang.Class type)
{
// Defining which types this editor supports is required.
return type.Equals(Java.Lang.Class.FromType(typeof(EmployeeType)));
}