コード例 #1
0
ファイル: Misc.cs プロジェクト: youngjava/ts-activex-gen
        public static void Add(this Dictionary <string, TSAliasDescription> dict, string key, TSSimpleType type, IEnumerable <KeyValuePair <string, string> > jsDoc = null)
        {
            var alias = new TSAliasDescription {
                TargetType = type
            };

            jsDoc?.AddRangeTo(alias.JsDoc);
            dict[key] = alias;
        }
コード例 #2
0
 public void AddParameter(string name, TSSimpleType type) => AddParameter(name, (ITSType)type);