Duplicar posible:
What's the use/meaning of the @ character in variable names in C#?
C# prefixing parameter names with @LINQ, lambda y @
siento que debería saber esto y me parece imposible Google. A continuación es un extracto de un código LINQ me encontré:
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();
¿Qué significa el prefijo '@' en este contexto?
¡Ja! Sabía que era algo que debería haber sabido. ¡Gracias! – Niklas
@Jon Skeet: :) .... –