using System; using System.Runtime.InteropServices; using WinProps; namespace WindowsFormsAppWPSCS { [Guid(WPSCL.ClassId)] public class WPSCL { // COM用のGUID値 public const string ClassId = "3096DBAE-74E9-4636-B1DE-3E2EF9A0BF1C"; string rvalue; public string GetDisplayNameFromCName(string cName) { PropertyDescription test1 = new PropertyDescription(cName); rvalue = cName + "," + test1.DisplayName; return rvalue; } } }