Figuring out some programming problems in C# (homework) : <pre><code>{

class AutoPolicy
{
    public int AccountNumber { get; set; }
    public string MakeAndModel { get; set; }
    private string state;
    public string State
    {
        get { return state; }
        set {
            if (State.Equals("MA" || "CT" || "ME" || "NH" || "NJ" || "NY" || "PA" || "VT")
            {
                State = state;
            }
            else
            {
                Console.WriteLine("The state code is wrong.");
            }
        }
    }


    public AutoPolicy(int accountNumber, string makeAndModel, string state)
    {
        AccountNumber = accountNumber;
        MakeAndModel = makeAndModel;
        State = state;
    }

    public bool IsNoFaultState
    {
        get
        {
            bool noFaultState;
            switch (State)
            {
                case "MA":
                case "NJ":
                case "NY":
                case "PA":
                    noFaultState = true;
                    break;
                default:
                    noFaultState = false;
                    break;
            }
            return noFaultState;
        }
    }



    class AutoPolicyTest
    {
        static void Main()
        {
            AutoPolicy policy1 = new AutoPolicy(11111111, "Toyota Camry", "NJ");
            AutoPolicy policy2 = new AutoPolicy(22222222, "Ford Fusion", "ME");

            PolicyInNoFaultState(policy1);
            PolicyInNoFaultState(policy2);
        }
        public static void PolicyInNoFaultState(AutoPolicy policy)
        {
            Console.WriteLine("The auto policy:");
            Console.Write($"Account #: {policy.AccountNumber};");
            Console.WriteLine($"Car: {policy.MakeAndModel};");
            Console.Write($"State {policy.State};");
            Console.Write($"{(policy.IsNoFaultState ? "is" : "is not")}");
            Console.WriteLine(" a no-fault state\n");
        }
    }
}
}
</code></pre>

<p>This is my code for an homework assignment I have to modify a program in the book (Which I'd much rather make my own program), but the instructions say: Modify the program to validate the two letter state codes for the northeast states. It then lists the different states and the corresponding codes, all of which are in my code. Then it says: In the State property's set accessor, use the logical OR (||) operator to create a compound condition in an if...else statement that compares the method's argument with each two-letter code.</p>

<p>I apologize for the huge block of code but I'm not sure what's causing the problem (I'm kind of new to c#), but the error I'm getting: is operator '||' cannot be applied to operands of type 'string' and 'string'. Any help would be appreciated, as this makes little sense to me, as being new to language. Thanks!</p>
