示例#1
0
 private void SetUpData()
 {
     Store(_frisbee  = new NamedThing("Frisbee"));
     Store(_bee      = new NamedThing("Bee"));
     Store(_friday   = new NamedThing("Friday"));
     Store(_robinson = new NamedThing("Robinson Crusoe"));
     Store(_round    = new NamedThing("Round Robin"));
 }
		void SetUpData()
		{	
			Store(_frisbee = new NamedThing("Frisbee"));
			Store(_bee = new NamedThing("Bee"));
			Store(_friday = new NamedThing("Friday"));
			Store(_robinson = new NamedThing("Robinson Crusoe"));
			Store(_round = new NamedThing("Round Robin"));
		}
		public bool Match(NamedThing thing)
		{
			return thing.Name.Contains(_s);
		}
		public bool Match(NamedThing thing)
		{
			return _s.Equals(thing.Name);
		}
		public bool Match(NamedThing thing)
		{
			return thing.Name.EndsWith(_s);
		}
示例#6
0
 public bool Match(NamedThing thing)
 {
     return(thing.Name.Contains(_s));
 }
示例#7
0
 public bool Match(NamedThing thing)
 {
     return(_s.Equals(thing.Name));
 }
示例#8
0
 public bool Match(NamedThing thing)
 {
     return(thing.Name.EndsWith(_s));
 }