Exemplo n.º 1
0
        public string GetSignatureDropSender(CodeGenerationOptions opt)
        {
            StringBuilder sb = new StringBuilder();

            foreach (Parameter p in items)
            {
                if (p.IsSender)
                {
                    continue;
                }
                else if (sb.Length > 0)
                {
                    sb.Append(", ");
                }
                sb.Append(opt.GetTypeReferenceName(p));
                sb.Append(" ");
                sb.Append(p.Name);
            }
            return(sb.ToString());
        }
Exemplo n.º 2
0
        public string GetSignature(CodeGenerationOptions opt)
        {
            var sb = new StringBuilder();

            foreach (var p in Parameters)
            {
                if (sb.Length > 0)
                {
                    sb.Append(", ");
                }
                if (p.IsEnumified)
                {
                    sb.Append("[global::Android.Runtime.GeneratedEnum] ");
                }
                if (p.Annotation != null)
                {
                    sb.Append(p.Annotation);
                }
                sb.Append(opt.GetTypeReferenceName(p));
                sb.Append(" ");
                sb.Append(opt.GetSafeIdentifier(p.Name));
            }
            return(sb.ToString());
        }