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

◆ ForAll()

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

Definition at line 136 of file Contract.cs.

137 {
139 {
140 throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive);
141 }
142 if (predicate == null)
143 {
144 throw new ArgumentNullException("predicate");
145 }
146 for (int i = fromInclusive; i < toExclusive; i++)
147 {
148 if (!predicate(i))
149 {
150 return false;
151 }
152 }
153 return true;
154 }

References System.SR.Argument_ToExclusiveLessThanFromExclusive.