コード例 #1
0
		ICompletionData ICompletionDataFactory.CreateTypeCompletionData(IType type, bool showFullName, bool isInAttributeContext, bool addForTypeCreation)
		{
			var data = new TypeCompletionData(type);
			if (showFullName) {
				string text = builder.ConvertType(type).ToString();
				data.CompletionText = text;
				data.DisplayText = text;
			}
			if (isInAttributeContext) {
				data.CompletionText = StripAttributeSuffix(data.CompletionText);
				data.DisplayText = StripAttributeSuffix(data.DisplayText);
			}
			return data;
		}
コード例 #2
0
        ICompletionData ICompletionDataFactory.CreateTypeCompletionData(IType type, bool showFullName, bool isInAttributeContext, bool addForTypeCreation)
        {
            var data = new TypeCompletionData(type);

            if (showFullName)
            {
                string text = builder.ConvertType(type).ToString();
                data.CompletionText = text;
                data.DisplayText    = text;
            }
            if (isInAttributeContext)
            {
                data.CompletionText = StripAttributeSuffix(data.CompletionText);
                data.DisplayText    = StripAttributeSuffix(data.DisplayText);
            }
            return(data);
        }