Could you help me understand how to create a C# api by setting the scope of methods, objects, proper
- by highone
The answer to this SO question says that you can create an api by exposing methods, objects and .ect by setting their scope to public.
http://stackoverflow.com/questions/630971/how-to-start-creating-an-application-api-in-net
One of the main things I want to expose is the text of a textbox. Would the best way to do this be to create a public static Text property that is updated by the textbox's textchanged event? Also what would a developer do in order to interact with this text property? Would they add a reference to the program .exe in their program?
Please help, I'm quite clueless here. Also was not sure how to word this question, feel free it edit if it is unclear.