mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* MetaColumnTest.cs: added test for SortExpression 2009-06-18 Marek Habersack <[email protected]> * DynamicDataContainerColumnProvider.cs: added setting of IsSortable 2009-06-18 Marek Habersack <[email protected]> * Test/DataSource/DynamicDataColumn.cs: added Sortable property. 2009-06-18 Marek Habersack <[email protected]> * TestDataColumn.cs: mark the column as sortable based on value of the DynamicDataSortable attribute. * Baz.cs: added a sortable column. svn path=/trunk/mcs/; revision=136386
20 lines
454 B
C#
20 lines
454 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Web.DynamicData.ModelProviders;
|
|
|
|
namespace MonoTests.ModelProviders
|
|
{
|
|
[AttributeUsage (AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
|
|
class DynamicDataSortableAttribute : Attribute
|
|
{
|
|
public bool Sortable { get; private set; }
|
|
|
|
public DynamicDataSortableAttribute (bool sortable)
|
|
{
|
|
Sortable = sortable;
|
|
}
|
|
}
|
|
}
|