Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool Yo(object o){
- if(o is string)
- return o.Contains("Bella fica gu!"); // Non ti serve creare una variabile con un cast, e nemmeno crearti una variabile con as prima dell'if
- if(o is Point)
- return o.X < 5;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement