コード例 #1
0
 public ConditionState(bool peek, PacketDataElement testMember, IReadOnlyList <CaseState> cases)
 {
     Members = new List <PacketDataElement> {
         testMember
     };
     SetMemberAs(MemberProperty.Peek, peek);
     SetMemberAs(MemberProperty.Cases, cases);
 }
コード例 #2
0
        public PacketState WithData(PacketDataElement dataElement)
        {
            var list = new List <PacketDataElement>(Data)
            {
                dataElement
            };

            return(new PacketState(PacketName, BasePacketName, list));
        }