Home

linqpad 7 not able to load external c# file

I want to share .cs files between linqpad and VS projects. Here is a sample test.
http://share.linqpad.net/8x579q.linq

the code gives me a CS0246 The type or namespace name 'parent' could not be found (press F4 to add an assembly reference or import a namespace) error. How can i fix it?

as you can see from screenshot, the file exists at the #load location

C:\>type "C:\Users\murth\Documents\NinjaTrader 8\bin\Custom\AddOns\testaddonlinqpad.cs"
´
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


    public class parent
    {
        int v;

        public parent(double d, bool b, string text)
        {
            this.parent1 = d;
            this.child1 = b;
            this.text1 = text;
        }

        public double parent1 { get; set; }

        public bool child1 { get; set; }
        public string text1 { get; set; }



    }

Comments

Sign In or Register to comment.