Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
GeneralC++ Bit Fields implementation in C# Pin
Vini Deep21-Apr-04 23:33
Vini Deep21-Apr-04 23:33 
GeneralRe: C++ Bit Fields implementation in C# Pin
A.Wegierski22-Apr-04 1:10
A.Wegierski22-Apr-04 1:10 
GeneralRe: C++ Bit Fields implementation in C# Pin
Vini Deep22-Apr-04 1:31
Vini Deep22-Apr-04 1:31 
GeneralRe: C++ Bit Fields implementation in C# Pin
Member 363026618-Dec-08 19:53
Member 363026618-Dec-08 19:53 
GeneralRe: C++ Bit Fields implementation in C# Pin
Tim Kohler22-Apr-04 1:22
Tim Kohler22-Apr-04 1:22 
GeneralRe: C++ Bit Fields implementation in C# Pin
A.Wegierski22-Apr-04 19:57
A.Wegierski22-Apr-04 19:57 
GeneralRe: C++ Bit Fields implementation in C# Pin
leppie22-Apr-04 7:22
leppie22-Apr-04 7:22 
Generalstruct/class .vs. Datasets Pin
BernardYardley21-Apr-04 23:17
BernardYardley21-Apr-04 23:17 
Has anyone experimented with using structs or classes in C# to carry data rather than strongly typed Datasets in a Webservice environment?

VS.NET makes it as difficult as possible to pass classes and strongly-typed ArrayLists of classes in and out of Webservices and as easy as possible to use Datasets with Webservices and with MSSQL.

Nevertheless, profiling a recent project that used strongly typed Datasets showed that there is a massive run-time cost to using them (lot of meta data around and many Events being fired) which led us on to thinking about using good old structs.

We have successfully passed 'property only' classes in and out of Webservices (including classes that include other classes and arrays and ArrayLists of classes) and bound strongly typed ArrayLists to DataGrids and we can use a property by property approach together with stored procedures to get data in and out of an MSSQL database. The code we have produced could be 'templated' (generics will be wonderful) meaning that, in theory, we could stop using strongly-typed datasets.

On the other hand - who wants to reinvent the wheel if MS have done all the work for us in creating Datasets?

Has anyone else agonised over this decision and, if so, what conclusion did you come to?

Thanks

Bernard Yardley
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 3:07
protectorHeath Stewart22-Apr-04 3:07 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 3:20
BernardYardley22-Apr-04 3:20 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 4:05
protectorHeath Stewart22-Apr-04 4:05 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 4:33
BernardYardley22-Apr-04 4:33 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 4:40
protectorHeath Stewart22-Apr-04 4:40 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 4:52
BernardYardley22-Apr-04 4:52 
Generalshowing a bitmap Pin
Amirjalaly21-Apr-04 21:55
Amirjalaly21-Apr-04 21:55 
GeneralRe: showing a bitmap Pin
Mazdak22-Apr-04 0:48
Mazdak22-Apr-04 0:48 
GeneralCreating object instance only known object name Pin
PEDRO_PASAMAR21-Apr-04 21:01
PEDRO_PASAMAR21-Apr-04 21:01 
GeneralRe: Creating object instance only known object name Pin
Bilal Farooq21-Apr-04 22:20
Bilal Farooq21-Apr-04 22:20 
GeneralUsing Images of Satellite Assemblies Pin
Bilal Farooq21-Apr-04 19:54
Bilal Farooq21-Apr-04 19:54 
GeneralRe: Using Images of Satellite Assemblies Pin
Heath Stewart22-Apr-04 3:29
protectorHeath Stewart22-Apr-04 3:29 
GeneralGet currently active window Pin
Bilal Farooq21-Apr-04 19:42
Bilal Farooq21-Apr-04 19:42 
GeneralRe: Get currently active window Pin
A.Wegierski22-Apr-04 0:26
A.Wegierski22-Apr-04 0:26 
GeneralRe: Get currently active window Pin
Bilal Farooq22-Apr-04 3:29
Bilal Farooq22-Apr-04 3:29 
GeneralRe: Get currently active window Pin
Heath Stewart22-Apr-04 3:39
protectorHeath Stewart22-Apr-04 3:39 
Generalauto+indentation feature Pin
kumaru_san21-Apr-04 19:04
kumaru_san21-Apr-04 19:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.