User Profile

Collapse

Profile Sidebar

Collapse
Carel
Carel
Last Activity: Dec 8 '09, 06:04 AM
Joined: Nov 28 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Carel
    started a topic linq groupby
    in .NET

    linq groupby

    Hi all,

    If I have set of fields of which I use some for grouping and some for aggregating, how can I have other fields in the final step where the aggregating also takes place?

    Suppose there is also a t.c and a t.d in the input sequence that I want in the select new part, how to do that?
    Code:
    var output = 
    from t in input
    group t
    by new 
    {
    	w = t.a,
    	x = t.b
    }
    into
    ...
    See more | Go to post
    Last edited by Frinavale; Dec 8 '09, 09:26 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

  • Carel
    replied to conditional xml serialization
    in XML
    I am using C# and the XmlSerializer that comes with .Net. The introduction of identifiers replacing references solces the problem of the serializer serializing the instance more than once.
    See more | Go to post

    Leave a comment:


  • Carel
    replied to conditional xml serialization
    in XML
    ... seems I have to flatten and introduce id's for structuring so I can use XmlExclude, still it would be nice to have say a callback from the serializer that gave me structural information like 'parent element' that I could use to enable/disable output of some element, is that possible?
    See more | Go to post

    Leave a comment:


  • Carel
    started a topic conditional xml serialization
    in XML

    conditional xml serialization

    Running into trouble conditioning what gets serialized by the XmlSerializer.

    Case is as follows:

    When a serialized element C is serialized under (as a child of) a specific other element P then I want the serializer to only serialize specific elements of C.

    I know of ...Specified but found no way of achieving the above using it. Is there another way?

    Any help would be greatly appreciated,...
    See more | Go to post
No activity results to display
Show More
Working...