public string Disables(IInteractionContext ic) { if (!ic.TypeEquals(InteractionType.ObjectPersist)) { return null; } INakedObjectAdapter target = ic.Target; return DisabledReason(target); }
public string Disables(IInteractionContext ic) { if (!ic.TypeEquals(InteractionType.ObjectPersist)) { return(null); } INakedObjectAdapter target = ic.Target; return(DisabledReason(target)); }
public string Disables(IInteractionContext ic) => ic.TypeEquals(InteractionType.ObjectPersist) ? DisabledReason(ic.Target) : null;