当前位置: 首页>>代码示例>>C#>>正文


C# Rhino.GetType方法代码示例

本文整理汇总了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);
 }
开发者ID:mennodeij,项目名称:rhinocommon,代码行数:4,代码来源:rhinosdkplugin.cs

示例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;
		}
开发者ID:hazzik,项目名称:Rhino.Net,代码行数:23,代码来源:Scope.cs

示例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;
 }
开发者ID:gwinsky,项目名称:rhinocommon,代码行数:15,代码来源:rhinosdkuiprofilecontext.cs

示例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));
 }
开发者ID:gwinsky,项目名称:rhinocommon,代码行数:10,代码来源:rhinosdkuiprofilecontext.cs

示例5: PersistentSettingsManager

 PersistentSettingsManager(Rhino.Runtime.Skin skin)
 {
   m_assembly = skin.GetType().Assembly;
   SettingsLocal = new PlugInSettings(m_assembly, new PlugInSettings(m_assembly, null));
 }
开发者ID:austinlaw,项目名称:rhinocommon,代码行数:5,代码来源:rhinosdkuiprofilecontext.cs


注:本文中的Rhino.GetType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。