Ayappan Alagesan

Ayappan Alagesan

  • NA
  • 324
  • 66.4k

c# 6.0 , how to use Auto-property initializer in wpf

Feb 6 2018 10:34 PM
class Emp
{
public string Name { get; set; }="link";
public int Age { get; set; }=25;
public int Salary { get; }=999;
 }
 
 
This is for static  propertites,Mostly we modles are used in dynamic data.
i want to bind the model values to my wpf data grid.
Not only one row i will assign many values in that time how to use this .

Answers (2)