Пример #1
0
 private AvroConfiguration ToAvroConfiguration()
 {
     HashSet<ConfigurationEntry> b = new HashSet<ConfigurationEntry>();
     ConfigurationEntry e1 = new ConfigurationEntry();
     e1.key = "a";
     e1.value = "a1";
     ConfigurationEntry e2 = new ConfigurationEntry();
     e2.key = "b";
     e2.value = "b1=b2";
     b.Add(e1);
     b.Add(e2);
     var a = new AvroConfiguration(AvroConfigurationSerializer.Cs, b);
     return a;
 }
Пример #2
0
 private AvroConfiguration ToAvroConfiguration()
 {
     HashSet<ConfigurationEntry> b = new HashSet<ConfigurationEntry>();
     ConfigurationEntry e1 = new ConfigurationEntry();
     e1.key = "a";
     e1.value = "a1";
     ConfigurationEntry e2 = new ConfigurationEntry();
     e2.key = "b";
     e2.value = "b1=b2";
     b.Add(e1);
     b.Add(e2);
     var a = new AvroConfiguration(Language.Cs.ToString(), b);
     return a;
 }
Пример #3
0
 protected bool Equals(ConfigurationEntry that)
 {
     return this.key == that.key && this.value == that.value;
 }
Пример #4
0
 protected bool Equals(ConfigurationEntry that)
 {
     return(this.key == that.key && this.value == that.value);
 }