Same guards for c sharp