473,385 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

sample code gone bad

hey all,
the following syntax is a method declaration i found in an article:

protected override void PerformDataBinding(IEnumerable data)

well, i'm getting an error message saying the following:

Using the generic type 'System.Collections.Generic.IEnumerable<T>' requires
'1' type arguments

can someone please help me? i'm new to generics so i'm not sure what this
error message means.

thanks,
rodchar
Nov 20 '07 #1
1 913
You need to specify System.Collections.IEnumerable - the non-generic
counterpart of what the compiler thinks you mean.

http://msdn2.microsoft.com/en-us/lib...numerable.aspx

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"rodchar" wrote:
hey all,
the following syntax is a method declaration i found in an article:

protected override void PerformDataBinding(IEnumerable data)

well, i'm getting an error message saying the following:

Using the generic type 'System.Collections.Generic.IEnumerable<T>' requires
'1' type arguments

can someone please help me? i'm new to generics so i'm not sure what this
error message means.

thanks,
rodchar

Nov 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dave W | last post by:
Hi, Im looking for an example of OO. The more basic the better! ;) Cheers, Dave
7
by: Richard Shea | last post by:
Hi - I'd like to try applying internationalisation techniques to get an idea of how much extra work is involved. As a first step I'm looking at the class based gettext. I just wondered if anyone...
4
by: Paul Ganainm | last post by:
Not really a PostgreSQL question, but maybe somebody here knows the answer! I recently purchased Groff and Weinberg's The Complete Reference SQL, and a fine meaty tome it is too! However,...
1
by: Rhino | last post by:
What is the correct way to notify the tech writers that one of the sample programs has errors in it? Unless I am mistaken, there is an error in the DtLob.java program in the V8.1 Java/JDBC...
34
by: Mark Kamoski | last post by:
Hi-- Please help. I need a code sample for bubble sort. Thank you. --Mark
2
by: Leo Muller | last post by:
Hi, I am fiddling around a lot with ASP.NET, but still haven't found the best way of doing things. I was wondering whether anyone can give me a small sample solution, in which there is: -...
2
by: BlueSky | last post by:
Can any one refer me to some good online sample applications in Asp.NET written in C#? I am looking for some huge apps that have lots of features that I can learn from.
2
by: jtbjurstrom | last post by:
I'm new to WCF as well as services and am having trouble running the WCF samples. We've chosen to pursue the WCF model to communicate from a client WinForm GUI to a service running within a LAN. We...
15
by: (PeteCresswell) | last post by:
Some time within the next nine months, there's a pretty good chance I'll have the "opportunity" to port a bond trading system that I wrote - whose front end is currently MS Access - to .NET. ...
0
by: mcsean2163 | last post by:
Hi I'm writing an application in LabVIEW to get the license key for a Sentinel hardware key but can't get it to work. I haven't used C in a while and rather than spend ages trying to write a...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.