コード例 #1
0
ファイル: lan.gen.cs プロジェクト: rysavy-ondrej/Distance
        public override bool Equals(object obj)
        {
            GatewayCandidate that = obj as GatewayCandidate;

            return(((that != null) &&
                    object.Equals(this.IpAddr, that.IpAddr)) &&
                   object.Equals(this.EthAddr, that.EthAddr));
        }
コード例 #2
0
ファイル: lan.rules.cs プロジェクト: rysavy-ondrej/Distance
 private void EmitAndInfo(IContext ctx, GatewayCandidate gw)
 {
     ctx.Info($"gateway: ip.addr={gw.IpAddr} eth.addr={gw.EthAddr}");
     ctx.TryInsert(gw);
 }