Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiply #structs
ADD COMMENT
Topic
Name
2+5 =