c# - What's the difference between a compound type and an anonymous type? -
as question states above, what's difference between compound type , anonymous type?
in this answer, compound typed object defined new {}
statement (below statement).
m => new { member = m, split = m.name.split(',') }
but isn't same when create anonymous typed object? both same thing different names?
those different names, yes. code put above creates anonymous type (that name should use, official one, , common one).
Comments
Post a Comment