विजुअल स्टूडियो 2010 को कैसे सेट अप करें ताकि बहु-पंक्ति लैम्ब्डा-फ़ंक्शंस बाईं ओर की खाली जगह के साथ बदसूरत न लगे?विजुअल स्टूडियो 2010 में ऑटो-फॉर्मेटिंग लैम्ब्डा-फ़ंक्शंस
dataView.CellFormatting += (s, e) =>
{
if ((e.ColumnIndex == 1)&&((dataView.SelectedCells.Count == 1)))
{
var scope = Scope.Instance;
var row = dataView.Rows[e.RowIndex];
var variable = row.DataBoundItem as Variable;
if (scope.Variables.Contains(variable))
{
dataView[e.ColumnIndex, e.RowIndex].Style.BackColor =
scope.GetGraph(variable).Color;
}
else
{
dataView[e.ColumnIndex, e.RowIndex].Style.BackColor = Color.White;
}
}
};
मैं तुम्हें क्या कहना है हो सकता है कि एक उदाहरण के स्निपेट (पहले और बाद में) में मदद मिलेगी कोशिश कर रहे हैं कल्पना नहीं कर सकते – BoltClock
मैं संपादित वापसी मारा।। मेरा सवाल। मेरा मतलब यही है। – Peter17
आर #? http://stackoverflow.com/questions/2176429/is-there-a-way-t o-mark-up-code-to-tell-resharper-not-to-format- – steamer25