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


C# ImmutableArray.ToCompletionKind方法代码示例

本文整理汇总了C#中ImmutableArray.ToCompletionKind方法的典型用法代码示例。如果您正苦于以下问题:C# ImmutableArray.ToCompletionKind方法的具体用法?C# ImmutableArray.ToCompletionKind怎么用?C# ImmutableArray.ToCompletionKind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ImmutableArray的用法示例。


在下文中一共展示了ImmutableArray.ToCompletionKind方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetImageReference

		public static ImageReference? GetImageReference(ImmutableArray<string> tags) {
			switch (tags.ToCompletionKind()) {
			case CompletionKind.Unknown:				return null;
			case CompletionKind.ClassProtected:			return DsImages.ClassProtected;
			case CompletionKind.ClassInternal:			return DsImages.ClassInternal;
			case CompletionKind.ClassPrivate:			return DsImages.ClassPrivate;
			case CompletionKind.Class:					return DsImages.ClassPublic;
			case CompletionKind.ConstantProtected:		return DsImages.ConstantProtected;
			case CompletionKind.ConstantInternal:		return DsImages.ConstantInternal;
			case CompletionKind.ConstantPrivate:		return DsImages.ConstantPrivate;
			case CompletionKind.Constant:				return DsImages.ConstantPublic;
			case CompletionKind.DelegateProtected:		return DsImages.DelegateProtected;
			case CompletionKind.DelegateInternal:		return DsImages.DelegateInternal;
			case CompletionKind.DelegatePrivate:		return DsImages.DelegatePrivate;
			case CompletionKind.Delegate:				return DsImages.DelegatePublic;
			case CompletionKind.EnumProtected:			return DsImages.EnumerationProtected;
			case CompletionKind.EnumInternal:			return DsImages.EnumerationInternal;
			case CompletionKind.EnumPrivate:			return DsImages.EnumerationPrivate;
			case CompletionKind.Enum:					return DsImages.EnumerationPublic;
			case CompletionKind.EventProtected:			return DsImages.EventProtected;
			case CompletionKind.EventInternal:			return DsImages.EventInternal;
			case CompletionKind.EventPrivate:			return DsImages.EventPrivate;
			case CompletionKind.Event:					return DsImages.EventPublic;
			case CompletionKind.ExtensionMethodProtected:return DsImages.ExtensionMethod;
			case CompletionKind.ExtensionMethodInternal:return DsImages.ExtensionMethod;
			case CompletionKind.ExtensionMethodPrivate: return DsImages.ExtensionMethod;
			case CompletionKind.ExtensionMethod:		return DsImages.ExtensionMethod;
			case CompletionKind.FieldProtected:			return DsImages.FieldProtected;
			case CompletionKind.FieldInternal:			return DsImages.FieldInternal;
			case CompletionKind.FieldPrivate:			return DsImages.FieldPrivate;
			case CompletionKind.Field:					return DsImages.FieldPublic;
			case CompletionKind.InterfaceProtected:		return DsImages.InterfaceProtected;
			case CompletionKind.InterfaceInternal:		return DsImages.InterfaceInternal;
			case CompletionKind.InterfacePrivate:		return DsImages.InterfacePrivate;
			case CompletionKind.Interface:				return DsImages.InterfacePublic;
			case CompletionKind.MethodProtected:		return DsImages.MethodProtected;
			case CompletionKind.MethodInternal:			return DsImages.MethodInternal;
			case CompletionKind.MethodPrivate:			return DsImages.MethodPrivate;
			case CompletionKind.Method:					return DsImages.MethodPublic;
			case CompletionKind.ModuleProtected:		return DsImages.ModuleProtected;
			case CompletionKind.ModuleInternal:			return DsImages.ModuleInternal;
			case CompletionKind.ModulePrivate:			return DsImages.ModulePrivate;
			case CompletionKind.Module:					return DsImages.ModulePublic;
			case CompletionKind.OperatorProtected:		return DsImages.OperatorProtected;
			case CompletionKind.OperatorInternal:		return DsImages.OperatorInternal;
			case CompletionKind.OperatorPrivate:		return DsImages.OperatorPrivate;
			case CompletionKind.Operator:				return DsImages.OperatorPublic;
			case CompletionKind.PropertyProtected:		return DsImages.PropertyProtected;
			case CompletionKind.PropertyInternal:		return DsImages.PropertyInternal;
			case CompletionKind.PropertyPrivate:		return DsImages.PropertyPrivate;
			case CompletionKind.Property:				return DsImages.Property;
			case CompletionKind.StructureProtected:		return DsImages.StructureProtected;
			case CompletionKind.StructureInternal:		return DsImages.StructureInternal;
			case CompletionKind.StructurePrivate:		return DsImages.StructurePrivate;
			case CompletionKind.Structure:				return DsImages.StructurePublic;
			case CompletionKind.FileCSharp:				return DsImages.CSFileNode;
			case CompletionKind.FileVisualBasic:		return DsImages.VBFileNode;
			case CompletionKind.ProjectCSharp:			return DsImages.CSProjectNode;
			case CompletionKind.ProjectVisualBasic:		return DsImages.VBProjectNode;
			case CompletionKind.EnumMember:				return DsImages.EnumerationItemPublic;
			case CompletionKind.Assembly:				return DsImages.Assembly;
			case CompletionKind.RangeVariable:			return DsImages.LocalVariable;
			case CompletionKind.Local:					return DsImages.LocalVariable;
			case CompletionKind.Parameter:				return DsImages.LocalVariable;// Same image as Local, just like what VS does
			case CompletionKind.Intrinsic:				return DsImages.Type;
			case CompletionKind.Keyword:				return DsImages.IntellisenseKeyword;
			case CompletionKind.Label:					return DsImages.Label;
			case CompletionKind.Namespace:				return DsImages.Namespace;
			case CompletionKind.Folder:					return DsImages.FolderOpened;
			case CompletionKind.Reference:				return DsImages.Reference;
			case CompletionKind.TypeParameter:			return DsImages.Type;
			case CompletionKind.Snippet:				return DsImages.Snippet;
			case CompletionKind.StatusError:			return DsImages.StatusError;
			case CompletionKind.StatusWarning:			return DsImages.StatusWarning;
			case CompletionKind.StatusInformation:		return DsImages.StatusInformation;
			default: return null;
			}
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:78,代码来源:CompletionImageHelper.cs


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