Auto.Server.TestBaseClass.ReadStatic C# (CSharp) Method

ReadStatic() public static method

public static ReadStatic ( BinaryReader br ) : TestBaseClass
br System.IO.BinaryReader
return TestBaseClass
        public static TestBaseClass ReadStatic(BinaryReader br)
        {
            byte tp = br.ReadByte();
            if (tp != (byte)SerializeObjectMark.IsNull)
            {
                switch (tp)
                {
                case 2:
                    return (new TestDerived1Class()).ReadImpl(br);
                case 3:
                    return (new TestDerived2Class()).ReadImpl(br);
                case 4:
                    return (new TestDerived11Class()).ReadImpl(br);
                default:
                    return (new TestBaseClass()).ReadImpl(br);
                }
            }
            return null;
        }
        public override string ToString()