Question

I would like to create some rules via the ruleset editor. I am loading my DomainObject assembly, in which my objects and in addition some enums are declared.

Here is the ValidationState enum:

   public enum ValidationState
   {
      None,
      Passed,
      Failed
   }

... and my Person object:

   public sealed partial class Person : BaseObject
   {
      ...
   }

   public abstract class BaseObject
   {
      public ValidationState ValidationState { get; set; }

      ...
   }

I would like to compare the ValidationState of the Object Person with ValidationState.Failed. But Intellisense is not showing those values.

Ruleset editor

Does anyone know what I am doing wrong?

Was it helpful?

Solution

CodeCasters comment is the correct answer. As a workaround for not writing the whole namespace (which is not user-friendly) just rename the variables.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top