My Apologies,

Although Tristan is correct in correct in regarding what I asked, Troy is
correct in understating what I meant.

I should have been more exact

Thank you every one

Regards

Arjang

On 23 August 2012 15:43, Tristan Reeves <tree...@gmail.com> wrote:

> Oh? I'm afraid that is not at all clear.
>
> The question was not "has anyone implemented their own structs for
> business apps", but rather "has anyone used structs anywhere for any
> reason".
>
>
> On Thu, Aug 23, 2012 at 2:23 PM, Troy Schuetrumpf 
> <t...@taskretail.com.au>wrote:
>
>>  I believe everyone in this thread is talking about programmer
>> implemented structs not ones provided by the .Net framework. ****
>>
>> ** **
>>
>> *From:* ozdotnet-boun...@ozdotnet.com [mailto:
>> ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Tristan Reeves
>> *Sent:* Thursday, 23 August 2012 2:13 PM
>> *To:* ozDotNet
>> *Subject:* Re: Anyone using structs in C# Business Applications?****
>>
>> ** **
>>
>> http://msdn.microsoft.com/en-us/library/system.int32.aspx ****
>>
>> On Wed, Aug 22, 2012 at 7:35 PM, Les Hughes <l...@datarev.com.au> wrote:**
>> **
>>
>>  ** **
>>
>> On Fri, Aug 17, 2012 at 10:53 AM, Arjang Assadi 
>> <arjang.ass...@gmail.com<mailto:
>> arjang.ass...@gmail.com>> wrote:
>> Hello
>>
>> I have found myself not needing to use structs for any reason in the
>> vanilla business apps ( DB to front end WindosForms,WPF,ASP.net etc) for
>> past 7 years or so.
>> All BO's are classes, and I can't think of anything more fine grind than
>> that.
>>
>> Unless I have been missing something, my question is to Business App
>> writers, do you use structs any where for any reasons?
>>
>> In all the usuall VS demos I have not seen structs being used ( graphics
>> demos do not count!)
>>
>> Regards
>>
>> Arjang****
>>
>>   Tristan Reeves wrote:****
>>
>> Hi,
>> To answer your specific question, int, double, bool, DateTime are all
>> structs.
>> I can't see any (even vanilla) business application getting by without
>> them, can you?
>>
>> Regard,
>> Tristan.****
>>
>> ** **
>>
>> Int is a struct?
>>
>> And yes, I use structs a fair bit for small things. Sure a struct is
>> pretty much an class without methods/functions/whatevertheterminology, and
>> maybe a class would be neater/better suited/etc but when I am returning a
>> few small things, sometimes I'll hack together something like
>>
>> struct sResult {
>>    public bool valid,
>>    public string[] errors,
>>    public string[] warnings
>> }
>>
>> Just so I can have certain bits and pieces come back nicely to the UI.
>>
>> Any reason why this is a bad idea?
>> --
>> Les Hughes
>> l...@datarev.com.au****
>>
>>  ** **
>>
>
>

Reply via email to