我有一个拥有继承的抽象类。在父方法中,我检查一些条件,如果它们发生,Child方法应该停止运行。但return后,孩子继续它的代码!这些方法应该是无效的。 另外我试过throw new Exception();但没有工作。 public abstract class ParentClass
{
public virtual void Method()
{
if (
我正在开发一个UWP应用程序。我有一个拥有经理和服务的PCL。我的经理与我的服务互动并提供输出。在我的服务中,我使用异步等待调用与我的API交互。我创建了一个虚拟解决方案。代码如下: 我的虚拟管理器: public class AccountManager
{
public string uniqueId { get; set; }
public int GetAccou