Brackets for functions in CSharp Methods - why so unusual?

Hi, Does anyone have any idea why I need to put curly braces on functions in CSharp methods as follows for methods to work?
Aras.IOM.Innovator innovator = this.getInnovator();
Item controlledItem = this.newItem(this.getAttribute("type"), "labs_GetControlledItemCSharp");
controlledItem.setID(this.getID());
controlledItem = controlledItem.apply();
return exampleFunction(controlledItem);

} // here I need to use a closing bracket!

Item exampleFunction (Item target) {
   return target;
// no closing bracket!
Is this normal CSharp behaviour? Maybe that's something obvious for professional programmers - but I'm not one :-). So I would be glad for any hints. Thank´s in advance!
Parents Reply Children
No Data