Show / Hide Table of Contents

Method Register

| Improve this Doc View Source

Register<T, TColumn>(Expression<Func<T, TColumn>>, Mounter<TColumn>)

Registers a column from existing column mounter.

Declaration
protected static void Register<T, TColumn>(Expression<Func<T, TColumn>> getter, Mounter<TColumn> fromMounter)

    where T : Projection where TColumn : Column, new()
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<T, TColumn>> getter

The lambda expression of the column getter.

Mounter<TColumn> fromMounter

The existing column mounter.

Type Parameters
Name Description
T

The type of projection which the column is registered on.

TColumn

The type of the column.

Exceptions
Type Condition
System.ArgumentNullException

getter is null.

System.ArgumentException

getter expression is not an valid getter.

System.ArgumentNullException

fromMounter is null.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest