MB Software Solutions,  LLC wrote on 2012-05-08: 
>  On 5/8/2012 10:23 AM, Paul Hill wrote:
>  You can do this in C#:
>  
>  MyClass class1 = new MyClass()
>  {
>>     Field1 = DateTime.Now,
>>     Field2 = 1234,
>>     Field3 = "test",
>>     Field4 = false;
>> };
>> 
>> But personally I'm not keen on this.
> 
> 
>  May I ask "why not?"  That looks like the same as a defined class in VFP:
>  
>  DEFINE CLASS Paul as Custom
>       Field1 = DateTime()
>       Field2 = 1234
>       Field3 = "test"
>       Field4 = .F.
>  ENDDEFINE
>

The C# syntax is the instantiation, the VFP is the declaration. 



Tracy Pearson
PowerChurch Software


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to