示例#1
0
 public virtual bool AssignCompatible(BaseClass otherClass) => MatchCompatible(otherClass);
示例#2
0
 public override bool AssignCompatible(BaseClass otherClass) => otherClass is SomeClass or NoneClass;
示例#3
0
 public override bool MatchCompatible(BaseClass otherClass) => otherClass is IIterator || otherClass is ICollectionClass;
示例#4
0
 public virtual bool MatchCompatible(BaseClass otherClass) => Name == otherClass.Name;
示例#5
0
 public override bool AssignCompatible(BaseClass otherClass) => MatchCompatible(otherClass);
示例#6
0
 public override bool MatchCompatible(BaseClass otherClass) => otherClass.Name is "Some" or "None";
示例#7
0
 public override bool AssignCompatible(BaseClass otherClass)
 {
     return(base.AssignCompatible(otherClass) || otherClass.Name == "MutString");
 }
示例#8
0
 public override bool AssignCompatible(BaseClass otherClass) => true;
示例#9
0
 public override bool AssignCompatible(BaseClass otherClass) => otherClass is SuccessClass or FailureClass;