TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Fiona
NA
8
0
empty attributes in C#?
Aug 6 2007 11:50 AM
hi there,
I'm trying to call a third-party DLL, written in VB, from an app written in C#.
One of the methods I need to call is in the format:
records.populate(ref clientID, ref datefrom, ref dateto, ref status)
(where clientID and status are both integers and the other two are datetimes)
In the documentation for the library, it states that all the attributes are optional, giving the example:
records.populate(123,,,)
How can I emulate this code in C#?
I've tried the same syntax (won't compile with empty arguments); tried using null for each one (well, I can't do this because DateTime is non-nullable); tried using new int()/DateTime(), but this didn't return any data when it should have.
So how do I do it?
I have no idea how the populate() method is handling the arguments, since it's third-party.
Thanks for your help.
Reply
Answers (
3
)
.NET RunTime 2.0 Error
save and open your own file.. please help