Table of Contents

Method ValidateRetrievalMethod

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

ValidateRetrievalMethod(ValuesRetrievalMethod)

Checks that the RetrievalMethod is the expected one.

protected void ValidateRetrievalMethod(ValuesRetrievalMethod expectedMethod)

Parameters

expectedMethod ValuesRetrievalMethod

The expected method.

Remarks

When overriding this class, and you provide properties associated with the retrieval method, you should call this method to ensure that the method is the expected one if that property is accessed.

Exceptions

InvalidOperationException

The RetrievalMethod is not the expected one.