Eventuali duplicati:
What's the use/meaning of the @ character in variable names in C#?
C# prefixing parameter names with @Linq, lambda e @
mi sento come dovrei sapere questo e trovo impossibile google. Qui di seguito è un estratto da un codice Linq mi sono imbattuto:
private static readonly Func<SomeEntities, someThing, List<someThing>> GetReplacement =
(someEntities, thing) => someEntities.someReplacement.Join(someEntities.someThing,
replaces => replaces.new_thing_id,
newThing => newThing.thing_id,
(rep, newThing) => new {rep, newThing}).Where(
@t => @t.rep.thing_id == thing.thing_id).
Select
(
@t => @t.newThing
).ToList().Distinct(new SomeThingComparer()).ToList();
Che cosa significa il prefisso '@' in questo contesto?
Ha! Sapevo che era qualcosa che avrei dovuto conoscere. Grazie! – Niklas
@Jon Skeet: :) .... –