Error CS0161 returned when deploying .NET target

When you deploy a target to .NET, all possible paths through a function or event script must return a value. If the compiler encounters a path that does not return a value, it generates error CS0161: “not all code paths return a value.” To work around this issue, add a return statement that returns a value to the end of the script. [CR 463688]