Note that there are some explanatory texts on larger screens.

plurals
  1. POShould I create another variable instead of 3 explicit casts?
    primarykey
    data
    text
    <p>This is a question in the matter of speed. I have the following code:</p> <pre><code>if (MyXMLReader.SearchForValue(command, new List&lt;string&gt;() { "/Command/Descriptions/Description/System" }, ((TabDocument)dockManager.ActiveDocument).version)) { txtBox_desc.Text = MyXMLReader.GetValue(command, "/Command/Descriptions/Description[" + MyXMLReader.SearchForValue_Int(command, new List&lt;string&gt;() { "/Command/Descriptions/Description/System" }, ((TabDocument)dockManager.ActiveDocument).version) + "]/Content"); } if (MyXMLReader.SearchForValue(command, new List&lt;string&gt;() { "/Command/Uses/Use/System" }, ((TabDocument)dockManager.ActiveDocument).version)) { txtBox_use.Text = MyXMLReader.GetValue(command, "/Command/Uses/Use[" + MyXMLReader.SearchForValue_Int(command, new List&lt;string&gt;() { "/Command/Uses/Use/System" }, ((TabDocument)dockManager.ActiveDocument).version) + "]/Content"); } if (MyXMLReader.SearchForValue(command, new List&lt;string&gt;() { "/Command/Notes/Note/System" }, ((TabDocument)dockManager.ActiveDocument).version)) { txtBox_notes.Text = MyXMLReader.GetValue(command, "/Command/Notes/Note[" + MyXMLReader.SearchForValue_Int(command, new List&lt;string&gt;() { "/Command/Notes/Note/System" }, ((TabDocument)dockManager.ActiveDocument).version) + "]/Content"); } </code></pre> <p>Should I create a new <code>string</code> variable to hold </p> <pre><code>((TabDocument)dockManager.ActiveDocument).version? </code></pre> <p>Would this benefit with more speed and responsiveness? Will this be bad or good?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload