c# - DLL Property no settable -
why not set property? dll imported , methods reachable url property wont show , seems not exists http://prntscr.com/6y2az8
dll code:
namespace steap { public class steapapi { public static string url { get; set; } public static xmlreader r = xmlreader.create(""); public int getsteamid64() { int id = 0; r.readtofollowing("steamid64"); id = r.readcontentasint(); return id; } public string getsteamid() { string id = string.empty; r.readtofollowing("steamid"); id = r.readcontentasstring(); return id; } public string getname() { return getsteamid(); } } }
i used string intead of string , need static later statement
in image added trying access this:
steapapi sapi = new steapapi); sapi.url = // ...
your property static, should call class , not instance:
steapapi.url = // ...
Comments
Post a Comment