<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>.NET Framework</title><link>https://www.dotnetzone.gr:443/cs/forums/14/ShowForum.aspx</link><description>Θέματα για threading, remoting, reflection, exception handling, security, regex κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Ανάθεση τιμής σε μεταβλητή μέσω Reflection</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15488.aspx</link><pubDate>Fri, 04 Aug 2006 20:05:01 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15488</guid><dc:creator>pontifikas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15488.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=15488</wfw:commentRss><description>Προσκυνώ!!!!&lt;br&gt;Συνέχεια ξεχνάω ότι ζώ σε ένα referenced περιβάλλον!!&lt;br&gt;Ευχαριστώ πολύ.&lt;img src="/cs/emoticons/emotion-1.gif" alt="Smile" /&gt;</description></item><item><title>Απ: Ανάθεση τιμής σε μεταβλητή μέσω Reflection</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15486.aspx</link><pubDate>Fri, 04 Aug 2006 19:50:44 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15486</guid><dc:creator>Νατάσα Μανουσοπούλου</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15486.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=15486</wfw:commentRss><description>Αν το πεδίο σου είναι πίνακας, η τιμή του είναι το reference του πίνακα. Οπότε:&lt;br&gt;
&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;            System.Array myArray &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; fieldInfo.GetValue(&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;null&lt;/span&gt;) &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;as&lt;/span&gt; System.Array;&lt;br /&gt;            myArray.SetValue(newValue, index1, index2, indexN);&lt;/span&gt;&lt;br&gt;</description></item><item><title>Απ: Ανάθεση τιμής σε μεταβλητή μέσω Reflection</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15482.aspx</link><pubDate>Fri, 04 Aug 2006 19:24:56 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15482</guid><dc:creator>pontifikas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15482.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=15482</wfw:commentRss><description>Πυρ, γυνή και θάλασσα (F)(και Fortran)&lt;img src="/cs/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;&lt;br&gt;Να το κάνω πιο δύσκολο όμως,γιατι στο μεταξύ την βρήκα και εγώ την απάντηση&lt;br&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Type myType;&lt;br /&gt;FieldInfo finfo &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; myType.GetField(varName);&lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;//&lt;/span&gt;&lt;br /&gt;finfo.SetValue(myType, varValue);&lt;/span&gt;&lt;br&gt;&lt;br&gt;Αν είναι πίνακας και εγώ θέλω &lt;br&gt;K[0,1,33]=varValue&lt;br&gt;Πώς το κάνω?&lt;br&gt;</description></item><item><title>Απ: Ανάθεση τιμής σε μεταβλητή μέσω Reflection</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15480.aspx</link><pubDate>Fri, 04 Aug 2006 19:13:20 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15480</guid><dc:creator>Νατάσα Μανουσοπούλου</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15480.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=15480</wfw:commentRss><description>&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;System.Reflection.FieldInfo fieldInfo &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;typeof&lt;/span&gt;(MyClass).GetField(&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"myField"&lt;/span&gt;, BindingFlags.Public &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;|&lt;/span&gt; BindingFlags.Static);&lt;br /&gt;fieldInfo.SetValue(&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;null&lt;/span&gt;, newValue);&lt;/span&gt;&lt;/P&gt;</description></item><item><title>Ανάθεση τιμής σε μεταβλητή μέσω Reflection</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/15477.aspx</link><pubDate>Fri, 04 Aug 2006 18:43:49 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:15477</guid><dc:creator>pontifikas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/15477.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=15477</wfw:commentRss><description>Έχω μια public static μεταβλητή της οποίας θέλω κάποια στιγμή,&amp;nbsp; δυναμικά, να μπορώ να της δώσω κάποια τιμή.&lt;br&gt;Μπορώ να κάνω το αντίστροφο(να διαβάσω την τιμή της δηλ, με την invoke) αλλά αυτό πώς το κάνω??&lt;br&gt;&lt;br&gt;</description></item></channel></rss>