本文整理汇总了C#中Rhino.GetType方法的典型用法代码示例。如果您正苦于以下问题:C# Rhino.GetType方法的具体用法?C# Rhino.GetType怎么用?C# Rhino.GetType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Rhino
的用法示例。
在下文中一共展示了Rhino.GetType方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterCommand
protected bool RegisterCommand(Rhino.Commands.Command command)
{
return CreateCommandsHelper(this, this.NonConstPointer(), command.GetType(), command);
}
示例2: SplitScope
/// <summary>
/// Creates a new scope node, moving symbol table information
/// from "scope" to the new node, and making "scope" a nested
/// scope contained by the new node.
/// </summary>
/// <remarks>
/// Creates a new scope node, moving symbol table information
/// from "scope" to the new node, and making "scope" a nested
/// scope contained by the new node.
/// Useful for injecting a new scope in a scope chain.
/// </remarks>
public static Rhino.Ast.Scope SplitScope(Rhino.Ast.Scope scope)
{
Rhino.Ast.Scope result = new Rhino.Ast.Scope(scope.GetType());
result.symbolTable = scope.symbolTable;
scope.symbolTable = null;
result.parent = scope.parent;
result.SetParentScope(scope.GetParentScope());
result.SetParentScope(result);
scope.parent = result;
result.top = scope.top;
return result;
}
示例3: Create
/// <summary>
///
/// </summary>
/// <param name="skin"></param>
/// <returns></returns>
public static PersistentSettingsManager Create(Rhino.Runtime.Skin skin)
{
System.Reflection.Assembly assembly = skin.GetType().Assembly;
for (int i = 0; i < m_all_managers.Count; i++)
if (m_all_managers[i].m_assembly == assembly)
return m_all_managers[i];
var ps = new PersistentSettingsManager(assembly, Guid.Empty);
m_all_managers.Add(ps);
return ps;
}
示例4: PersistentSettingsManager
/// <summary>
/// PersistentSettingsManager constructor.
/// </summary>
/// <param name="skin"></param>
PersistentSettingsManager(Rhino.Runtime.Skin skin)
{
m_plugin_id = Guid.Empty;
System.Reflection.Assembly assembly = skin.GetType().Assembly;
SettingsLocal = new PlugInSettings(assembly, m_plugin_id, new PlugInSettings(assembly, m_plugin_id, null));
}
示例5: PersistentSettingsManager
PersistentSettingsManager(Rhino.Runtime.Skin skin)
{
m_assembly = skin.GetType().Assembly;
SettingsLocal = new PlugInSettings(m_assembly, new PlugInSettings(m_assembly, null));
}