The method can accept a reference to the type of value.
public void Normalize(ref YourStruct pParameter) {
A similar operation and exit statement: the only difference is when the use of pParameter cannot be initialized (assigned).
Edit: but this can only be used if you have control over the method, otherwise just assign a value.
source share