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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -