A personal "why" for that is a validation module of mandatory fields on a
form/view/activity. The server can send to device which fields are mandatory
and a validation method can search ID names sent from server to do an
automatic validation. So if 2 clients has different rules, server will say
what fields must be validated. No need to be super performatic but really
useful to be dynamic with a GetFieldFromID() or as I like, getElementById().

Karl

From:  Jonathan Pryor <j...@xamarin.com>
Reply-To:  "monodroid@lists.ximian.com" <monodroid@lists.ximian.com>
Date:  Wed, 10 Aug 2011 21:15:43 -0400
To:  "monodroid@lists.ximian.com" <monodroid@lists.ximian.com>
Subject:  Re: [mono-android] How to use Resources.GetIdentifier()?

Why do you need to do this?

> I found this method that seems to be what I need(it says I should not use
> this method if possible but not sure what other method I could use then).

The recommended approach would be to directly use the integer constants,
which you appear to be loathe to do. The reason is probably performance, as
using an integral constant ~directly is likely to be far faster than loading
up whatever metadata mechanism Resources.GetIdentifier() is using.


_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to