blob: 1d7c124fe8af25ad8336e7e42d30849c4ec03f65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.TextManager.Interop;
using Microsoft.VisualStudio.Package;
namespace Demo
{
public class Methods : Microsoft.VisualStudio.Package.Methods
{
IList<Method> methods;
public Methods(IList<Method> methods)
{
this.methods = methods;
}
public override int GetCount()
{
return methods.Count;
}
public override string GetName(int index)
{
return methods[index].Name;
}
public override string GetDescription(int index)
{
return methods[index].Description;
}
public override string GetType(int index)
{
return methods[index].Type;
}
public override int GetParameterCount(int index)
{
return (methods[index].Parameters == null) ? 0 : methods[index].Parameters.Count;
}
public override void GetParameterInfo(int index, int paramIndex, out string name, out string display, out string description)
{
Parameter parameter = methods[index].Parameters[paramIndex];
name = parameter.Name;
display = parameter.Display;
description = parameter.Description;
}
}
}
|