I would like to know the differences between these two ways of declaring variables.
Type 1
private string procedure_add = "";
private string procedure_update = "";
private string procedure_delete = "";
Type 2
private string procedure_add = "", procedure_update = "", procedure_delete = "";
Does this give the same effect?. Is the memory consumption the same?
There is no any difference. it’s all about the accessibility. the way how the code looks.
suppose if you have 10000+ line of code, while editing you may get stumped by identifying the “,” in declaration .
this method which i prefer to use.