Advertisement
bero_0401

Extension Methods

Sep 29th, 2024
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | Source Code | 0 0
  1.  
  2. namespace revision
  3. {
  4.     public static class NumberExtensions
  5.     {
  6.         public static bool IsBetween(this int value , int min , int max)
  7.         {
  8.             if(value < min || value > max)
  9.                 return false;
  10.             return true;
  11.         }
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement