Default property

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I set a default property in C#? In VB we use the default keyword
before the property.
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
How do I set a default property in C#? In VB we use the default keyword
before the property.

[DefaultProperty("Text")]
class test
{
public string Text;
}

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFK7TAw/7X1afViQoRAtGKAJ9vcHyv4DkC8nfvZRevTPUDFxkjjQCfZMSR
I0yW1nKb/K444wvpIMDH964=
=MfhQ
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top