[mono-android] System.Attribute for Activity class methods
Sellec
echelonww at gmail.com
Wed Jun 20 11:12:00 UTC 2012
Hi all. Is System.Attribute and custom attributes work in Mono for android? I
create class LayoutTestAttribute like this:
[System.AttributeUsage(AttributeTargets.All)]
public class LayoutTestAttribute : System.Attribute
{
public LayoutTestAttribute()
{
//this.
}
}
and try to use it like this:
[Activity(Label = "TestMono", MainLauncher = true, Icon =
"@drawable/icon")]
public class Activity1 : Activity
{
...
[Core.Android.LayoutTest()]
private void TestMethod(object sender)
{
}
...
}
and when i add a breakpoint in constructor LayoutTestAttribute i dont see
anything. Looks like problem is not in breakpoints - they are works well.
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/System-Attribute-for-Activity-class-methods-tp5710454.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list