In this workshop, we'll add a new in expression to C#, with example use cases shown below:
x in 1..10 // x >= 1 && x < 10
'a' in "bar" // "bar".IndexOf('a') >= 0 -or- "bar".Contains('a')
x in xs // xs.Contains(x)| <Project> | |
| <Target Name="InternalsVisibleToTask" BeforeTargets="GenerateAdditionalSources" Condition="@(InternalsVisibleTo) != ''"> | |
| <ItemGroup> | |
| <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | |
| <_Parameter1>%(InternalsVisibleTo.Identity)</_Parameter1> | |
| </AssemblyAttribute> | |
| </ItemGroup> | |
| </Target> |