drunkcod / Cone

8 stars 1 forks source link

Crazy idea: Extendable RowAttributes #18

Closed neochrome closed 12 years ago

neochrome commented 12 years ago

Yes there is the RowBuilder for this, but what about making it possible to write something like this?

class MyRowAttribute : RowAttribute
{
  public int first;
  public int second;
}

[MyRow(first = 123, second = 456)]
public test(int first, int second)
{
}
drunkcod commented 12 years ago

What's the use case for this? How would it improve upon

[Row(123, 456)]
public test(int first, int second) { }
drunkcod commented 12 years ago

You can also create your own RowAttribute by implementing the "IRowData" interface.