Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

confusing code orderby

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    confusing code orderby

    this.classname.OrderBy(o=>o.Time).ToList();

    I can't figure what the o=>o.Time is

    Is the class trying to organize the objects in timeStampOrder and what is ToList()?

    it is almost an sql query but I am not sure what the function is trying to do.

    #2

    Comment


      #3
      o<=o question

      Thanks I looked at the operator for the List but I was wondering o<=o.Time

      I tried other letters from a to z k,l,m,n o ect did the same thing as o<=o.Time

      where I am confused is where o was initialized. I can not find it anywhere in the whole code

      Comment


        #4
        " it is almost an sql query"
        its linq

        Comment


          #5
          thanks

          went through everything. Thank yo for your help

          Comment


            #6
            It's too late to reply but will helpful for others. Refer following resource to learn about it.

            Linq tutorial for beginners and experienced with examples. In linq tutorial we covered a topics like linq lambda expressions, aggregate functions, operators. linq grouping, linq to sql, linq to xml, linq to ado.net, etc.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            81 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            41 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            64 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            66 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            54 views
            0 likes
            Last Post CarlTrading  
            Working...
            X