Powiel możliwe:
What's the use/meaning of the @ character in variable names in C#?
C# prefixing parameter names with @LINQ, lambda i @
czuję się jak mam wiedzieć to i uważam, że to niemożliwe, aby google. Poniżej znajduje się wyciąg z jakiegoś kodu Linq natknąłem:
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();
Co oznacza „@” prefiks oznacza w tym kontekście?
Ha! Wiedziałem, że to coś, co powinienem był wiedzieć. Dzięki! – Niklas
@ Jon Skeet: :) .... –