Exemplo n.º 1
0
        /// <summary>
        /// See <see cref="System.Attribute.Equals"/>.
        /// </summary>
        public override bool Equals(object obj)
        {
            FromIdlNameAttribute other = obj as FromIdlNameAttribute;

            if (other == null)
            {
                return(false);
            }
            return(m_idlName != null ? m_idlName == other.m_idlName : other.m_idlName == null);
        }
Exemplo n.º 2
0
        /// <summary>gets the request method name for attribute, if possible.</summary>
        private static string GetRequestMethodNameFromAttr(MethodInfo info)
        {
            AttributeExtCollection methodAttributes =
                ReflectionHelper.GetCustomAttriutesForMethod(info, true);

            if (methodAttributes.IsInCollection(ReflectionHelper.FromIdlNameAttributeType))
            {
                FromIdlNameAttribute idlNameAttr =
                    (FromIdlNameAttribute)methodAttributes.GetAttributeForType(ReflectionHelper.FromIdlNameAttributeType);
                return(idlNameAttr.IdlName);
            }
            else
            {
                return(null);
            }
        }