private void AddInvokeKindToPropertyNode(XmlNode propertyNode, TLI.MemberInfo propertyInfo)
        {
            InvokeKinds kinds = propertyInfo.InvokeKind;

            string kindExists = propertyNode.Attributes["InvokeKind"].InnerText;

            switch (kinds)
            {
            case InvokeKinds.INVOKE_PROPERTYGET:
                if ((kindExists != "INVOKE_PROPERTYPUT") && (kindExists != "INVOKE_PROPERTYPUTREF"))
                {
                    propertyNode.Attributes["InvokeKind"].InnerText = kinds.ToString();
                }
                break;

            case InvokeKinds.INVOKE_PROPERTYPUT:
            case InvokeKinds.INVOKE_PROPERTYPUTREF:
                propertyNode.Attributes["InvokeKind"].InnerText = kinds.ToString();
                break;
            }
        }
Esempio n. 2
0
        private void AddInvokeKindToPropertyNode(XmlNode methodNode, InvokeKinds kinds)
        {
            string kindString = kinds.ToString();

            methodNode.Attributes[kindString].InnerText = "true";
        }