<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[מה הבעיה בקוד הבא?]]></title><description><![CDATA[<p dir="auto">אני כותב מחלקה של מתפללים, ובמתודה Tostring אני מנסה להחזיר עצם מסוג תאריך שמסמל את יום ההולדת של המתפלל, ומשום מה הוא מסמל לי שיש שגיאה ואין לי מושג מה היא?? (כמובן שאני משתמש בשם העצם.ToString():</p>
<pre><code>DateTime birthday;//תאריך לידה
public override string ToString()
        {
            return base.ToString();
            string str = "Birthday:" + Birthday.ToString();
            return str;
        }
</code></pre>
<p dir="auto">כמובן שהפעולה הבונה של המחלקה מציבה ערך למשתנה הזה..<br />
(יכול להיות שהשגיאה שמסומנת לי בקו ירוק מתחת היא רק בגלל שכרגע בקוד עדיין לא אתחלנו את המשתנה??</p>
<p dir="auto">אשמח לעזרה!<br />
תודה רבה מראש.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב14/05/2015 23:39 (+03:00)</em></p>
]]></description><link>https://tchumim.com/topic/670/מה-הבעיה-בקוד-הבא</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 02:25:26 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/670.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Jan 2018 11:00:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:06 GMT]]></title><description><![CDATA[<p dir="auto">אני מתנצל מראש אם זה נשמע אישי, אני לא מפקפק לרגע במקצועיותו של הכותב/ת, אני פשוט סבור אחרת, יכול להיות שאני טועה.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%93%D7%95%D7%93">@<bdi>דוד</bdi></a> ל.ט.</p>
<blockquote>
<p dir="auto">@Pesia<br />
איזה התקפה...</p>
<p dir="auto">לא ראיתי התקפה, הוא רק אמר את דעתו.</p>
</blockquote>
<p dir="auto">אתה יכול לייצג אותי מול הלקוחות? אתה עושה עבודה מצוינת . . .<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%93%D7%95%D7%93">@<bdi>דוד</bdi></a> ל.ט.</p>
<blockquote>
<p dir="auto">והוא מתכנת מקצועי לפי מה שנראה בפורום.</p>
</blockquote>
<p dir="auto">אני עובד על זה, אולי בקרוב . . .<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%93%D7%95%D7%93">@<bdi>דוד</bdi></a> ל.ט.</p>
<blockquote>
<p dir="auto">ואני חושב שבישקול הוא קריאות. אם זה מסובך בהתבוננות ראשונה, לפרק. אם לא, זה עניין של טעם.</p>
</blockquote>
<p dir="auto">I couldn't agree more</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב20/05/2015 01:59 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4264</link><guid isPermaLink="true">https://tchumim.com/post/4264</guid><dc:creator><![CDATA[softs]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:06 GMT</pubDate></item><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:05 GMT]]></title><description><![CDATA[<p dir="auto">@Pesia</p>
<blockquote>
<p dir="auto">איזה התקפה...</p>
</blockquote>
<p dir="auto">לא ראיתי התקפה, הוא רק אמר את דעתו.<br />
והוא מתכנת מקצועי לפי מה שנראה בפורום.</p>
<p dir="auto">ואני חושב שבישקול הוא קריאות. אם זה מסובך בהתבוננות ראשונה, לפרק. אם לא, זה עניין של טעם.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב19/05/2015 19:32 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4263</link><guid isPermaLink="true">https://tchumim.com/post/4263</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:05 GMT</pubDate></item><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:05 GMT]]></title><description><![CDATA[<p dir="auto">איזה התקפה...<br />
המעלה לפרק את זה לשורות, זה כדי שיהיה נח לדיבוג.<br />
אבל כל מתכנת מקצועי עם ניסיון שתשאל אותו, יגיד שיותר יפה שורה אחת.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב19/05/2015 19:22 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4262</link><guid isPermaLink="true">https://tchumim.com/post/4262</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:05 GMT</pubDate></item><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:05 GMT]]></title><description><![CDATA[<p dir="auto">@Pesia</p>
<blockquote>
<p dir="auto">אגב, יותר יפה להכניס לשורת קוד אחת, וכדאי להתרגל לזה, זה נראה יותר מקצועי:</p>
<pre><code>return  base.ToString() + "Birthday:" + birthday.ToString();
</code></pre>
</blockquote>
<p dir="auto">אני חולק על דעתך המלומדת, יופי הוא בעיני המתבונן, לענין המקצועיות, זה לא יותר מקצועי כך או כך זה סתם ענין של הרגל ויש מעלות לכאן ולכאן.</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב19/05/2015 18:56 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4261</link><guid isPermaLink="true">https://tchumim.com/post/4261</guid><dc:creator><![CDATA[softs]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:05 GMT</pubDate></item><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:04 GMT]]></title><description><![CDATA[<p dir="auto">תודה על ההארה!</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב18/05/2015 21:38 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4260</link><guid isPermaLink="true">https://tchumim.com/post/4260</guid><dc:creator><![CDATA[avr416]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:04 GMT</pubDate></item><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:04 GMT]]></title><description><![CDATA[<p dir="auto">אגב, יותר יפה להכניס לשורת קוד אחת, וכדאי להתרגל לזה, זה נראה יותר מקצועי:</p>
<pre><code>return  base.ToString() + "Birthday:" + birthday.ToString();
</code></pre>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב18/05/2015 17:23 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4259</link><guid isPermaLink="true">https://tchumim.com/post/4259</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:04 GMT</pubDate></item><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:03 GMT]]></title><description><![CDATA[<p dir="auto">צודק!!<br />
תודה רבה רבה!</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב17/05/2015 19:04 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4258</link><guid isPermaLink="true">https://tchumim.com/post/4258</guid><dc:creator><![CDATA[avr416]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:03 GMT</pubDate></item><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:03 GMT]]></title><description><![CDATA[<p dir="auto">אני חושב שהתכונת לזה.</p>
<pre><code>string str = base.ToString() + "Birthday:" + birthday.ToString();
return str;
</code></pre>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב17/05/2015 14:32 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4257</link><guid isPermaLink="true">https://tchumim.com/post/4257</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:03 GMT</pubDate></item><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%A9%D7%9E%D7%95%D7%90%D7%9C">@<bdi>שמואל</bdi></a></p>
<blockquote>
<p dir="auto">יתכן שהתכוונת לקוד כזה</p>
<pre><code>DateTime birthday;//תאריך לידה
public override string ToString()
        {
            return  "Birthday:" + Birthday.ToString();
        }
</code></pre>
<p dir="auto">בהצלחה</p>
</blockquote>
<p dir="auto">צודק! הבעיה הייתה הreturn..<br />
התכוונתי לקוד כזה:</p>
<pre><code>base.ToString();
           ()string str = "Birthday:" + birthday.ToString
                          return str;
</code></pre>
<p dir="auto">הוא יורש את המתודה הנ"ל ומוסיף לה נתון.<br />
תודה רבה!</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב15/05/2015 11:30 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4256</link><guid isPermaLink="true">https://tchumim.com/post/4256</guid><dc:creator><![CDATA[avr416]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:03 GMT</pubDate></item><item><title><![CDATA[Reply to מה הבעיה בקוד הבא? on Mon, 29 Jan 2018 11:00:02 GMT]]></title><description><![CDATA[<p dir="auto">לא חושב שהקוד הזה אמור לעבוד<br />
ה-  return הוציא אותך מהפונקציה, מכאן והלאה שום דבר לא יתבצע<br />
יתכן שהתכוונת לקוד כזה</p>
<pre><code>DateTime birthday;//תאריך לידה
public override string ToString()
        {
            return  "Birthday:" + Birthday.ToString();
        }
</code></pre>
<p dir="auto">בהצלחה</p>
<p dir="auto"><em>פורסם במקור בפורום CODE613 ב15/05/2015 00:35 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/4255</link><guid isPermaLink="true">https://tchumim.com/post/4255</guid><dc:creator><![CDATA[שמואל]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:00:02 GMT</pubDate></item></channel></rss>