~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/mono-tools/gendarme/rules/Gendarme.Rules.Design/PreferUriOverStringRule.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
                private static bool IsUri (string memberName)
112
112
                {
113
113
                        int index = 0;
114
 
                        while ((index = FindTokenStart (memberName, "ur", index)) != -1) {
115
 
                                if (memberName.Length < index + 2)
 
114
                        while ((index = FindTokenStart(memberName, "ur", index)) != -1){
 
115
                                if (memberName.Length <= index + 2)
116
116
                                        break;
117
 
                                if (url_enders.Contains (Char.ToLower (memberName [index + 2], CultureInfo.InvariantCulture)))
 
117
                                if (url_enders.Contains(Char.ToLower(memberName[index + 2], CultureInfo.InvariantCulture)))
118
118
                                        return true;
119
119
                                index += 2;
120
120
                        }