本文整理汇总了C#中MonoDevelop.GetString方法的典型用法代码示例。如果您正苦于以下问题:C# MonoDevelop.GetString方法的具体用法?C# MonoDevelop.GetString怎么用?C# MonoDevelop.GetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoDevelop
的用法示例。
在下文中一共展示了MonoDevelop.GetString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetArrayType
public IType GetArrayType (IReturnType elementType, MonoDevelop.Projects.Dom.Output.Ambience ambience)
{
// Create a fake class which sublcasses System.Array and implements IList<T>
DomType t = new DomType (ambience.GetString (elementType, MonoDevelop.Projects.Dom.Output.OutputFlags.UseFullName) + "[]");
// set the compilation unit of the array type to that of the element type - it's required for jumping to the declaration of the type.
IType eType = GetType (elementType);
if (eType != null)
t.CompilationUnit = eType.CompilationUnit;
t.Resolved = true;
t.BaseType = new DomReturnType ("System.Array");
t.ClassType = ClassType.Class;
t.Modifiers = Modifiers.Public;
t.SourceProjectDom = this;
DomProperty indexer = new DomProperty ();
indexer.Name = "Item";
indexer.SetterModifier = indexer.GetterModifier = Modifiers.Public;
indexer.PropertyModifier |= PropertyModifier.IsIndexer;
indexer.Add (new DomParameter(indexer, "index", DomReturnType.Int32));
indexer.ReturnType = elementType;
t.Add (indexer);
DomReturnType listType = new DomReturnType ("System.Collections.Generic.IList", false, new IReturnType [] { elementType });
t.AddInterfaceImplementation (listType);
return t;
}