bitworks/hwo.bitworks/LogicBase.cs

23 lines
467 B
C#

using System;
using System.Collections.Generic;
namespace hwo.bitworks
{
public class LogicBase
{
protected LogicBase[] sources;
public LogicBase(LogicBase[] sources)
{
this.sources = new LogicBase[sources.Length];
Array.Copy(sources,this.sources,sources.Length);
}
public virtual bool value(){
throw new NotImplementedException(String.Format("Class {0} doesn't implement needed method 'bool value()'",this.GetType().FullName));
}
}
}