Ask a fundamental question about Script Component

Dear All,

I try to create a very simple script component. When I go to "Script-->Edit Script...", it lauches Visual Studio and automatically creates 1 project with 3 files:


It seems only the last file is for me to modify. But even if I directly build this project, I got compilation error, complaining about errors in "bufferwrapper.cs" class, which is so strange... and error is actually here:

    public String class
            return Buffer.GetString(BufferColumnIndexes[20]);

If I change name from "Class" to "Class2", then it's fine.

Could anyone please help?

Thanks heaps in advance!

Who is Participating?
mkobrinConnect With a Mentor Commented:
class is a reserved name in C#, that is why it accepts class2, which is not a reserved name.
chenyuhao88Author Commented:

You answer could be a perfect. But does that mean it is a flaw in SSIS? As the code is auto-generated by Visual Studio, if it's C# then it should not give me such a name by default......

chenyuhao88Author Commented:
Thanks a lot!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.