filtering पर टैग किए गए जवाब

2
जहां एक ओर हालत बनाम गार्ड क्लॉस जारी रहता है, वहां से फॉरेस्ट लूप को छानना
मैंने देखा है कुछ प्रोग्रामर इसका उपयोग करते हैं: foreach (var item in items) { if (item.Field != null) continue; if (item.State != ItemStates.Deleted) continue; // code } इसके बजाय जहाँ मैं सामान्य रूप से उपयोग करूँगा: foreach (var item in items.Where(i => i.Field != null && i.State != ItemStates.Deleted)) …
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.