Beispiel #1
0
        public static IAIMPString CreateString(this IAIMPCore core, string text)
        {
            var str = core.CreateObject <IAIMPString>();

            str.SetData(text).EnsureSuccess();
            return(str);
        }
        public static IAIMPString CreateString(this IAIMPCore core, string text)
        {
            var aimpString = core.CreateObject <IAIMPString>();

            aimpString.SetData(text, text.Length);

            return(aimpString);
        }
Beispiel #3
0
 public static T CreateObject <T>(this IAIMPCore core)
 {
     core.CreateObject(typeof(T).GUID, out var obj).EnsureSuccess();
     return((T)obj);
 }
        public static T CreateObject <T>(this IAIMPCore core)
        {
            var guid = typeof(T).GUID;

            return((T)core.CreateObject(ref guid));
        }