void IExcelCommand.Read(BinaryReader r) { Code = new VbaCode().Read(r); ModuleKind = (VbaModuleKind)r.ReadInt32(); }
/// <summary> /// Initializes a new instance of the <see cref="VbaModule"/> struct. /// </summary> /// <param name="code">The code.</param> /// <param name="actionKind">Kind of the action.</param> /// <exception cref="ArgumentNullException">code</exception> public VbaModule(VbaCode code, VbaModuleKind actionKind = VbaModuleKind.Get) { When = When.Normal; Code = code ?? throw new ArgumentNullException(nameof(code)); ModuleKind = actionKind; }