Open sandboxFocus

Method MustNotBeRef

MustNotBeRef(IEligibilityBuilder<IFieldOrPropertyOrIndexer>)

Forbids the field, property or indexer from being ref or ref readonly.

Declaration
public static void MustNotBeRef(this IEligibilityBuilder<IFieldOrPropertyOrIndexer> eligibilityBuilder)
Parameters
Type Name Description
IEligibilityBuilder<IFieldOrPropertyOrIndexer> eligibilityBuilder

MustNotBeRef(IEligibilityBuilder<INamedType>)

Forbids the type from being ref struct.

Declaration
public static void MustNotBeRef(this IEligibilityBuilder<INamedType> eligibilityBuilder)
Parameters
Type Name Description
IEligibilityBuilder<INamedType> eligibilityBuilder

MustNotBeRef(IEligibilityBuilder<IMethod>)

Forbids the method from returning a ref.

Declaration
public static void MustNotBeRef(this IEligibilityBuilder<IMethod> eligibilityBuilder)
Parameters
Type Name Description
IEligibilityBuilder<IMethod> eligibilityBuilder