Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Exists()

static bool System.Diagnostics.Contracts.Contract.Exists ( int fromInclusive,
int toExclusive,
Predicate< int > predicate )
inlinestatic

Definition at line 176 of file Contract.cs.

177 {
179 {
180 throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive);
181 }
182 if (predicate == null)
183 {
184 throw new ArgumentNullException("predicate");
185 }
186 for (int i = fromInclusive; i < toExclusive; i++)
187 {
188 if (predicate(i))
189 {
190 return true;
191 }
192 }
193 return false;
194 }

References System.SR.Argument_ToExclusiveLessThanFromExclusive.