Home > Net >  Different method to create a Datatable can be the same?
Different method to create a Datatable can be the same?

Time:01-24

The same page, two methods, not create the same name, the DATATABLE, the same will cover each other?

CodePudding user response:

DataTable object instance is different, there is no relationship, TableName attribute assignment casually,

CodePudding user response:

Variables defined in a method is the scope is the method body, will not affect the other methods

CodePudding user response:

Variables are has its own scope
  •  Tags:  
  • C#
  • Related