R
raulavi
having this attribute (see bottom)
HOW CAN i specify attribute [MyCustomAttr("clssA"),IncludeOnBrowse =
true] for the FileName property....
as it is I get systanx error at compile.
-----------------------------------------------------------------
using system;
public class Class1
{
private string _FileName;
[Size(SizeAttribute.Unlimited)]
[MyCustomAttr("clssA"),IncludeOnBrowse = true]
public string FileName
{
get { return _FileName; }
set
{
_FileName = value;
}
}
}
-----------------------------------------------------------------
-----------------------------------------------------------------
public class MyCustomAttrAttribute : System.Attribute
{
private string name;
public MyCustomAttrAttribute(string n)
{
this.name = n;
}
}
private bool includeOnBrowse;
public bool IncludeOnBrowse
{
get { return this.includeOnBrowse; }
set {this.includeOnBrowse = value;}
}
}
-----------------------
HOW CAN i specify attribute [MyCustomAttr("clssA"),IncludeOnBrowse =
true] for the FileName property....
as it is I get systanx error at compile.
-----------------------------------------------------------------
using system;
public class Class1
{
private string _FileName;
[Size(SizeAttribute.Unlimited)]
[MyCustomAttr("clssA"),IncludeOnBrowse = true]
public string FileName
{
get { return _FileName; }
set
{
_FileName = value;
}
}
}
-----------------------------------------------------------------
-----------------------------------------------------------------
public class MyCustomAttrAttribute : System.Attribute
{
private string name;
public MyCustomAttrAttribute(string n)
{
this.name = n;
}
}
private bool includeOnBrowse;
public bool IncludeOnBrowse
{
get { return this.includeOnBrowse; }
set {this.includeOnBrowse = value;}
}
}
-----------------------