Solved

Ask a fundamental question about Script Component

Posted on 2011-02-13
3
527 Views
Last Modified: 2012-05-11
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!


0
Comment
Question by:chenyuhao88
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
mkobrin earned 500 total points
ID: 34885704
class is a reserved name in C#, that is why it accepts class2, which is not a reserved name.
0
 

Author Comment

by:chenyuhao88
ID: 34893784
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......


0
 

Author Closing Comment

by:chenyuhao88
ID: 34903619
Thanks a lot!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now