예제 #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;