Link to home
Start Free TrialLog in
Avatar of chenyuhao88
chenyuhao88

asked on

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:


bufferwrapper.cs
componentwrapper.cs
main.cs


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
    {
        get
        {
            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!


ASKER CERTIFIED SOLUTION
Avatar of mkobrin
mkobrin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chenyuhao88
chenyuhao88

ASKER

mkobrin,

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......


Thanks a lot!