kOS.Safe.Compilation.OpcodePushDelegate.PopulateFromMLFields C# (CSharp) Method

PopulateFromMLFields() public method

public PopulateFromMLFields ( List fields ) : void
fields List
return void
        public override void PopulateFromMLFields(List<object> fields)
        {
            // Expect fields in the same order as the [MLField] properties of this class:
            if (fields == null || fields.Count<2)
                throw new Exception("Saved field in ML file for OpcodePushDelegate seems to be missing.  Version mismatch?");
            EntryPoint = Convert.ToInt32(fields[0]);
            WithClosure = Convert.ToBoolean(fields[1]);
        }