multiply structs c#

80

multiply structs c# -

//Example struct
struct Example{
  	//You can use any binary operator(+, -, *, /) after operator
	public static Example operator*(Example left, Example right){
    	return new Example();
    }
}

Comments

Submit
0 Comments