本文整理汇总了C#中MObjc.NSObject.description方法的典型用法代码示例。如果您正苦于以下问题:C# NSObject.description方法的具体用法?C# NSObject.description怎么用?C# NSObject.description使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MObjc.NSObject
的用法示例。
在下文中一共展示了NSObject.description方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: tableView_setObjectValue_forTableColumn_row
public void tableView_setObjectValue_forTableColumn_row(NSTableView table, NSObject value, NSTableColumn col, int row)
{
Contract.Requires(row >= 0, "row is negative");
Contract.Requires(row < m_globs.Count, "row is too big");
switch (col.identifier().description())
{
case "1":
m_globs[row] = Tuple.Create(value.description(), m_globs[row].Item2);
break;
case "2":
m_globs[row] = Tuple.Create(m_globs[row].Item1, value.Call("intValue").To<int>());
break;
default:
Contract.Assert(false, "bad col: " + col.identifier());
break;
}
DoSyncPref();
}
示例2: outlineView_setObjectValue_forTableColumn_byItem
public void outlineView_setObjectValue_forTableColumn_byItem(NSTableView table, NSObject value, NSTableColumn col, TableItem item)
{
string newName = value.description();
DoRename(item, newName);
}
示例3: tableView_setObjectValue_forTableColumn_row
// Developers aren't always nice enough to name threads so we'll let people
// do it in the debugger.
public void tableView_setObjectValue_forTableColumn_row(NSTableView table, NSObject value, NSTableColumn col, int row)
{
ThreadMirror thread = m_threads[row];
m_names[thread.Id] = value.description();
}
示例4: outlineView_setObjectValue_forTableColumn_byItem
public void outlineView_setObjectValue_forTableColumn_byItem(NSTableView table, NSObject value, NSTableColumn col, VariableItem item)
{
try
{
string text = value.description();
Value newValue = ParseValue.Invoke(m_frame.Thread, item, item.Value, text);
SetValue.Invoke(m_frame.Thread, item, item.Parent.Value, item.Key, newValue);
item.RefreshValue(m_frame.Thread, newValue); // if we're setting a (non-auto) property we might also want to refresh all fields for that type
}
catch (Exception e)
{
Boss boss = ObjectModel.Create("Application");
var transcript = boss.Get<ITranscript>();
// transcript.Show();
// transcript.WriteLine(Output.Error, "{0}", e);
transcript.WriteLine(Output.Error, "{0}", e.Message);
if (e.InnerException != null)
transcript.WriteLine(Output.Error, " {0}", e.InnerException.Message);
}
}