isPropertySetter

Checks if given type is a setter function type

Members

Manifest constants

isPropertySetter
enum isPropertySetter;
Undocumented in source.
isPropertySetter
enum isPropertySetter;
Undocumented in source.

Return Value

true if argument is a setter

Examples

interface Test
{
	@property int getter();
	@property void setter(int);
	int simple();
}

static assert(isPropertySetter!(typeof(&Test.setter)));
static assert(!isPropertySetter!(typeof(&Test.getter)));
static assert(!isPropertySetter!(typeof(&Test.simple)));
static assert(!isPropertySetter!int);

Meta