Solved

Ask a fundamental question about Script Component

Posted on 2011-02-13
3
549 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

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