Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
JSON Array with RootObject and SubObjects
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Foxer" data-source="post: 481326" data-attributes="member: 63422"><p>U can access these properties directly within the methods or properties of the API class.</p><p></p><p>[CODE=csharp]</p><p>public class Api{</p><p> public string source { get; set; }</p><p> public int max_verz { get; set; }</p><p> public int rest_verz { get; set; }</p><p></p><p> // Here we create the constructor</p><p> public Api(string source, int max_verz, int rest_verz){</p><p> this.source = source;</p><p> this.max_verz = max_verz;</p><p> this.rest_verz = rest_verz;</p><p> }</p><p></p><p> // Example</p><p> public void ShowSourceAPI(){</p><p> Console.WriteLine("Source: " + source);</p><p> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Foxer, post: 481326, member: 63422"] U can access these properties directly within the methods or properties of the API class. [CODE=csharp] public class Api{ public string source { get; set; } public int max_verz { get; set; } public int rest_verz { get; set; } // Here we create the constructor public Api(string source, int max_verz, int rest_verz){ this.source = source; this.max_verz = max_verz; this.rest_verz = rest_verz; } // Example public void ShowSourceAPI(){ Console.WriteLine("Source: " + source); } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
JSON Array with RootObject and SubObjects
Top