home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Schedules Direct US/Canadian/Mexico EPG Plugin (Updated August 2010)
Contact us
RSS
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="sjeffrey" data-source="post: 422081" data-attributes="member: 81884"><p>Learn how to program for the last 15 years <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Just kidding!</p><p>I just changed all variable types to match the strong type versions.</p><p>Which means instead of return a IList of anything, it will return a IList of a specific type. The type is what is between '<' and '>'</p><p>Basically like the snippet I sent back, instead of returning a IList it seems that tvLayer.GetPrograms now returns a IList<TvDatabase.Channel> so the variable that caught it, pgList, needed to be of type IList<TvDatabase.Channel> instead of plain IList.</p><p></p><p>Using Resharper made it a whole lot easier since there's a dropdown for each compilation error to change the variable type to the correct type. 2 keystrokes per error and I was done <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="sjeffrey, post: 422081, member: 81884"] Learn how to program for the last 15 years :) Just kidding! I just changed all variable types to match the strong type versions. Which means instead of return a IList of anything, it will return a IList of a specific type. The type is what is between '<' and '>' Basically like the snippet I sent back, instead of returning a IList it seems that tvLayer.GetPrograms now returns a IList<TvDatabase.Channel> so the variable that caught it, pgList, needed to be of type IList<TvDatabase.Channel> instead of plain IList. Using Resharper made it a whole lot easier since there's a dropdown for each compilation error to change the variable type to the correct type. 2 keystrokes per error and I was done :D [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Schedules Direct US/Canadian/Mexico EPG Plugin (Updated August 2010)
Contact us
RSS
Top
Bottom