2
Answers

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

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)