Thinktecture.Tools.Web.Services.CodeGeneration.R2DMessage.SetupRelations C# (CSharp) Method

SetupRelations() public method

public SetupRelations ( ElementStore store, Rpc2DocumentLiteralTranslator trans ) : void
store ElementStore
trans Rpc2DocumentLiteralTranslator
return void
        public void SetupRelations(ElementStore store, Rpc2DocumentLiteralTranslator trans)
        {
            foreach (XmlElement op in elem)
            {
                if (op.LocalName == "part")
                {
                    string typeNameAttributeName = "type";
                    if (op.Attributes["element"] != null)
                    {
                        typeNameAttributeName = "element";
                    }
                    parameters.Add(store.Types[op.ParentNode.Attributes["name"].Value + "/" + op.Attributes[typeNameAttributeName].Value]);
                }
            }
        }