RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Cannot implicitly convert type 'string' to 'int'

SevenEleven

Sorceror
Cannot implicitly convert type 'string' to 'int'

Ok, so i am going throuhg this, and i do the normal edits and such.

But, it wont let me use 'string' ? why not? heres the script

Code:
using System;
using Server;
using Server.Multis;
using Server.Targeting;
using Server.Items;
using Server.Prompts;
using System.Collections;
using Server.ContextMenus;

namespace Server.Items
{
    public class ItemItemIDTarget : Target // Create our targeting class (which we derive from the base target class)
    {
        private ItemItemIDDeed m_Deed;
        private BaseArmor m_speaktargs;
        private BaseJewel m_speaktargss;
        private BaseClothing m_speaktargsss;

        public ItemItemIDTarget(ItemItemIDDeed deed): base(1, false, TargetFlags.None)
        {
            m_Deed = deed;
        }
        protected override void OnTarget(Mobile from, object targeted) // Override the protected OnTarget() for our feature
        {
            if (targeted is BaseArmor)
            {
                BaseArmor item = (BaseArmor)targeted;

                m_speaktargs = item;

                if (!from.InRange(m_Deed.GetWorldLocation(), 2) || !from.InRange(item.GetWorldLocation(), 2))
                    from.SendLocalizedMessage(500446); // That is too far away.
                else
                {
                    if (item.RootParent != from) // Make sure its in their pack or they are wearing it
                    {
                        from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                    }
                    else
                    {
                        from.Prompt = new ItemIDArmorPrompt(m_speaktargs);
                        from.SendMessage("What item would you like to ItemID ?");
                        from.SendMessage("You use your ItemID deed.");

                        m_Deed.Delete(); // Delete the bless deed
                    }
                }
            }
            else if (targeted is BaseJewel)
            {
                BaseJewel item = (BaseJewel)targeted;

                m_speaktargss = item;

                if (!from.InRange(m_Deed.GetWorldLocation(), 2) || !from.InRange(item.GetWorldLocation(), 2))
                    from.SendLocalizedMessage(500446); // That is too far away.
                else
                {
                    if (item.RootParent != from) // Make sure its in their pack or they are wearing it
                    {
                        from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                    }
                    else
                    {
                        from.Prompt = new ItemIDJewelPrompt(m_speaktargss);
                        from.SendMessage("What item would you like to ItemID ?");
                        from.SendMessage("You use your ItemID deed.");

                        m_Deed.Delete(); // Delete the bless deed
                    }
                }
            }
            else if (targeted is BaseClothing)
            {
                BaseClothing item = (BaseClothing)targeted;

                m_speaktargsss = item;

                if (!from.InRange(m_Deed.GetWorldLocation(), 2) || !from.InRange(item.GetWorldLocation(), 2))
                    from.SendLocalizedMessage(500446); // That is too far away.
                else
                {
                    if (item.RootParent != from) // Make sure its in their pack or they are wearing it
                    {
                        from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                    }
                    else
                    {
                        from.Prompt = new ItemIDClothingPrompt(m_speaktargsss);
                        from.SendMessage("What item would you like to ItemID ?");
                        from.SendMessage("You use your ItemID deed.");

                        m_Deed.Delete(); // Delete the bless deed
                    }
                }
            }
            else
                from.SendMessage("You cannot ItemID that.");

        }
    }
    public class ItemItemIDDeed : Item // Create the item class which is derived from the base item class
    {
        [Constructable]
        public ItemItemIDDeed() : base(0x0FBF)
        {
            Name = "Item ItemID Deed";
            Weight = 1.0;
            Hue = 1979;
            ItemID = 0x14F0;
            LootType = LootType.Blessed;
        }
        public ItemItemIDDeed(Serial serial) : base(serial)
        {
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }

        public override void OnDoubleClick(Mobile from)
        {

            if (!IsChildOf(from.Backpack)) // Make sure its in their pack
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
            }
            else
            {
                from.SendMessage("Target the item you wish to ItemID.");
                from.Target = new ItemItemIDTarget(this);
            }
        }
    }
}
namespace Server.Prompts
{
    public class ItemIDArmorPrompt : Prompt
    {
        private BaseArmor m_speaktargs;

        public ItemIDArmorPrompt(BaseArmor marmor)
        {
            m_speaktargs = marmor;
        }
        public override void OnResponse[COLOR="Red"](Mobile from, string text)[/COLOR]
        {
            m_speaktargs.ItemID = text;
            from.SendMessage("You have changed ItemID of the item.");
        }
    }
    public class ItemIDJewelPrompt : Prompt
    {
        private BaseJewel m_speaktargss;

        public ItemIDJewelPrompt(BaseJewel mjewel)
        {
            m_speaktargss = mjewel;
        }
        public override void OnResponse[COLOR="Red"](Mobile from, string text)[/COLOR]
        {
            m_speaktargss.ItemID = text;
            from.SendMessage("You have ItemIDd the item.");
        }
    }
    public class ItemIDClothingPrompt : Prompt
    {
        private BaseClothing m_speaktargsss;

        public ItemIDClothingPrompt(BaseClothing mclothing)
        {
            m_speaktargsss = mclothing;
        }
        public override void OnResponse[COLOR="Red"](Mobile from, string text)[/COLOR]
        {
            m_speaktargsss.ItemID = text;
            from.SendMessage("You have ItemIDd the item.");
        }
    }
}

Error Logs:
Code:
Scripts: Compiling C# scripts...failed (3 errors, 0 warnings)
 - Error: Scripts\ItemIDDeed2.cs: CS0029: (line 157, column 35) Cannot implicitl
y convert type 'string' to 'int'
 - Error: Scripts\ItemIDDeed2.cs: CS0029: (line 171, column 36) Cannot implicitl
y convert type 'string' to 'int'
 - Error: Scripts\ItemIDDeed2.cs: CS0029: (line 185, column 37) Cannot implicitl
y convert type 'string' to 'int'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

You've all helped so much..i just dont know what else to switch this too =[

**Btw this is for 1.0
 
Well... they put in a text... and a text is a string, not a number. :D
What would happen if they put in "abc" as text? ;)

The solution is to use something like
Code:
int yourint = m_speaktargs.ItemID;
int.TryParse( text, out yourint );

Also you can add checks if there are multiple arguments in the text like "12 34" (else it will just return nothing).

And of course you also have to check if the ItemID is in a valid range if the parsing succeeded. :)

Well, ok... i looked in Utility.cs (its in the core and does exactly the above, just that it supports hexadecimal number like 0x12ab).
You can use: int x = Utility.ToInt32( text );

But then you have to check if x is not 0, else the ItemID will be 0, which will give strange results, i suppose.
 

SevenEleven

Sorceror
Didnt Work

so i edited it to work with your likings, had to remove a few words, and it accepted it. Problem is, in game, i would enter the itemid, and it would affect the item whatsoever. I dont know why but im still getting errors, please help? =]

The Ingame Working Script - Does not change the actual ItemID
Code:
using System;
using Server;
using Server.Multis;
using Server.Targeting;
using Server.Items;
using Server.Prompts;
using System.Collections;
using Server.ContextMenus;

namespace Server.Items
{
    public class ItemItemIDTarget : Target // Create our targeting class (which we derive from the base target class)
    {
        private ItemItemIDDeed m_Deed;
        private BaseArmor m_speaktargs;
        private BaseJewel m_speaktargss;
        private BaseClothing m_speaktargsss;

        public ItemItemIDTarget(ItemItemIDDeed deed): base(1, false, TargetFlags.None)
        {
            m_Deed = deed;
        }
        protected override void OnTarget(Mobile from, object targeted) // Override the protected OnTarget() for our feature
        {
            if (targeted is BaseArmor)
            {
                BaseArmor item = (BaseArmor)targeted;

                m_speaktargs = item;

                if (!from.InRange(m_Deed.GetWorldLocation(), 2) || !from.InRange(item.GetWorldLocation(), 2))
                    from.SendLocalizedMessage(500446); // That is too far away.
                else
                {
                    if (item.RootParent != from) // Make sure its in their pack or they are wearing it
                    {
                        from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                    }
                    else
                    {
                        from.Prompt = new ItemIDArmorPrompt(m_speaktargs);
                        from.SendMessage("What item would you like to ItemID ?");
                        from.SendMessage("You use your ItemID deed.");

                        m_Deed.Delete(); // Delete the bless deed
                    }
                }
            }
            else if (targeted is BaseJewel)
            {
                BaseJewel item = (BaseJewel)targeted;

                m_speaktargss = item;

                if (!from.InRange(m_Deed.GetWorldLocation(), 2) || !from.InRange(item.GetWorldLocation(), 2))
                    from.SendLocalizedMessage(500446); // That is too far away.
                else
                {
                    if (item.RootParent != from) // Make sure its in their pack or they are wearing it
                    {
                        from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                    }
                    else
                    {
                        from.Prompt = new ItemIDJewelPrompt(m_speaktargss);
                        from.SendMessage("What item would you like to ItemID ?");
                        from.SendMessage("You use your ItemID deed.");

                        m_Deed.Delete(); // Delete the bless deed
                    }
                }
            }
            else if (targeted is BaseClothing)
            {
                BaseClothing item = (BaseClothing)targeted;

                m_speaktargsss = item;

                if (!from.InRange(m_Deed.GetWorldLocation(), 2) || !from.InRange(item.GetWorldLocation(), 2))
                    from.SendLocalizedMessage(500446); // That is too far away.
                else
                {
                    if (item.RootParent != from) // Make sure its in their pack or they are wearing it
                    {
                        from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                    }
                    else
                    {
                        from.Prompt = new ItemIDClothingPrompt(m_speaktargsss);
                        from.SendMessage("What item would you like to ItemID ?");
                        from.SendMessage("You use your ItemID deed.");

                        m_Deed.Delete(); // Delete the bless deed
                    }
                }
            }
            else
                from.SendMessage("You cannot ItemID that.");

        }
    }
    public class ItemItemIDDeed : Item // Create the item class which is derived from the base item class
    {
        [Constructable]
        public ItemItemIDDeed() : base(0x0FBF)
        {
            Name = "Item ItemID Deed";
            Weight = 1.0;
            Hue = 1979;
            ItemID = 0x14F0;
            LootType = LootType.Blessed;
        }
        public ItemItemIDDeed(Serial serial) : base(serial)
        {
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }

        public override void OnDoubleClick(Mobile from)
        {

            if (!IsChildOf(from.Backpack)) // Make sure its in their pack
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
            }
            else
            {
                from.SendMessage("Target the item you wish to ItemID.");
                from.Target = new ItemItemIDTarget(this);
            }
        }
    }
}
namespace Server.Prompts
{
    public class ItemIDArmorPrompt : Prompt
    {
        private BaseArmor m_speaktargs;

        public ItemIDArmorPrompt(BaseArmor marmor)
        {
            m_speaktargs = marmor;
        }
        public override void OnResponse(Mobile from, string text)
        {
int yourint = m_speaktargs.ItemID;
int.Parse( text );
            from.SendMessage("You have changed ItemID of the item.");
        }
    }
    public class ItemIDJewelPrompt : Prompt
    {
        private BaseJewel m_speaktargss;

        public ItemIDJewelPrompt(BaseJewel mjewel)
        {
            m_speaktargss = mjewel;
        }
        public override void OnResponse(Mobile from, string text)
        {
	int yourint = m_speaktargss.ItemID;
	int.Parse( text );
            from.SendMessage("You have ItemIDd the item.");
        }
    }
    public class ItemIDClothingPrompt : Prompt
    {
        private BaseClothing m_speaktargsss;

        public ItemIDClothingPrompt(BaseClothing mclothing)
        {
            m_speaktargsss = mclothing;
        }
        public override void OnResponse(Mobile from, string text)
        {
	int yourint = m_speaktargsss.ItemID;
	int.Parse( text );
            from.SendMessage("You have ItemIDd the item.");
        }
    }
}

Code:
using System;
using Server;
using Server.Multis;
using Server.Targeting;
using Server.Items;
using Server.Prompts;
using System.Collections;
using Server.ContextMenus;

namespace Server.Items
{
    public class ItemItemIDTarget : Target // Create our targeting class (which we derive from the base target class)
    {
        private ItemItemIDDeed m_Deed;
        private BaseArmor m_speaktargs;
        private BaseJewel m_speaktargss;
        private BaseClothing m_speaktargsss;

        public ItemItemIDTarget(ItemItemIDDeed deed): base(1, false, TargetFlags.None)
        {
            m_Deed = deed;
        }
        protected override void OnTarget(Mobile from, object targeted) // Override the protected OnTarget() for our feature
        {
            if (targeted is BaseArmor)
            {
                BaseArmor item = (BaseArmor)targeted;

                m_speaktargs = item;

                if (!from.InRange(m_Deed.GetWorldLocation(), 2) || !from.InRange(item.GetWorldLocation(), 2))
                    from.SendLocalizedMessage(500446); // That is too far away.
                else
                {
                    if (item.RootParent != from) // Make sure its in their pack or they are wearing it
                    {
                        from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                    }
                    else
                    {
                        from.Prompt = new ItemIDArmorPrompt(m_speaktargs);
                        from.SendMessage("What item would you like to ItemID ?");
                        from.SendMessage("You use your ItemID deed.");

                        m_Deed.Delete(); // Delete the bless deed
                    }
                }
            }
            else if (targeted is BaseJewel)
            {
                BaseJewel item = (BaseJewel)targeted;

                m_speaktargss = item;

                if (!from.InRange(m_Deed.GetWorldLocation(), 2) || !from.InRange(item.GetWorldLocation(), 2))
                    from.SendLocalizedMessage(500446); // That is too far away.
                else
                {
                    if (item.RootParent != from) // Make sure its in their pack or they are wearing it
                    {
                        from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                    }
                    else
                    {
                        from.Prompt = new ItemIDJewelPrompt(m_speaktargss);
                        from.SendMessage("What item would you like to ItemID ?");
                        from.SendMessage("You use your ItemID deed.");

                        m_Deed.Delete(); // Delete the bless deed
                    }
                }
            }
            else if (targeted is BaseClothing)
            {
                BaseClothing item = (BaseClothing)targeted;

                m_speaktargsss = item;

                if (!from.InRange(m_Deed.GetWorldLocation(), 2) || !from.InRange(item.GetWorldLocation(), 2))
                    from.SendLocalizedMessage(500446); // That is too far away.
                else
                {
                    if (item.RootParent != from) // Make sure its in their pack or they are wearing it
                    {
                        from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
                    }
                    else
                    {
                        from.Prompt = new ItemIDClothingPrompt(m_speaktargsss);
                        from.SendMessage("What item would you like to ItemID ?");
                        from.SendMessage("You use your ItemID deed.");

                        m_Deed.Delete(); // Delete the bless deed
                    }
                }
            }
            else
                from.SendMessage("You cannot ItemID that.");

        }
    }
    public class ItemItemIDDeed : Item // Create the item class which is derived from the base item class
    {
        [Constructable]
        public ItemItemIDDeed() : base(0x0FBF)
        {
            Name = "Item ItemID Deed";
            Weight = 1.0;
            Hue = 1979;
            ItemID = 0x14F0;
            LootType = LootType.Blessed;
        }
        public ItemItemIDDeed(Serial serial) : base(serial)
        {
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }

        public override void OnDoubleClick(Mobile from)
        {

            if (!IsChildOf(from.Backpack)) // Make sure its in their pack
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
            }
            else
            {
                from.SendMessage("Target the item you wish to ItemID.");
                from.Target = new ItemItemIDTarget(this);
            }
        }
    }
}
namespace Server.Prompts
{
    public class ItemIDArmorPrompt : Prompt
    {
        private BaseArmor m_speaktargs;

        public ItemIDArmorPrompt(BaseArmor marmor)
        {
            m_speaktargs = marmor;
        }
        public override void OnResponse(Mobile from, string text)
        {
int yourint = m_speaktargs.ItemID;
int.Parse( text, out yourint );
            from.SendMessage("You have changed ItemID of the item.");
        }
    }
    public class ItemIDJewelPrompt : Prompt
    {
        private BaseJewel m_speaktargss;

        public ItemIDJewelPrompt(BaseJewel mjewel)
        {
            m_speaktargss = mjewel;
        }
        public override void OnResponse(Mobile from, string text)
        {
	int yourint = m_speaktargss.ItemID;
	int.Parse( text, out yourint );
            from.SendMessage("You have ItemIDd the item.");
        }
    }
    public class ItemIDClothingPrompt : Prompt
    {
        private BaseClothing m_speaktargsss;

        public ItemIDClothingPrompt(BaseClothing mclothing)
        {
            m_speaktargsss = mclothing;
        }
        public override void OnResponse(Mobile from, string text)
        {
	int yourint = m_speaktargsss.ItemID;
	int.Parse( text, out yourint );
            from.SendMessage("You have ItemIDd the item.");
        }
    }
}

Code:
Scripts: Compiling C# scripts...failed (6 errors, 0 warnings)
 - Error: Scripts\ItemIDDeed2.cs: CS1502: (line 158, column 1) The best overload
ed method match for 'int.Parse(string, System.Globalization.NumberStyles)' has s
ome invalid arguments
 - Error: Scripts\ItemIDDeed2.cs: CS1503: (line 158, column 22) Argument '2': ca
nnot convert from 'out int' to 'System.Globalization.NumberStyles'
 - Error: Scripts\ItemIDDeed2.cs: CS1502: (line 173, column 2) The best overload
ed method match for 'int.Parse(string, System.Globalization.NumberStyles)' has s
ome invalid arguments
 - Error: Scripts\ItemIDDeed2.cs: CS1503: (line 173, column 23) Argument '2': ca
nnot convert from 'out int' to 'System.Globalization.NumberStyles'
 - Error: Scripts\ItemIDDeed2.cs: CS1502: (line 188, column 2) The best overload
ed method match for 'int.Parse(string, System.Globalization.NumberStyles)' has s
ome invalid arguments
 - Error: Scripts\ItemIDDeed2.cs: CS1503: (line 188, column 23) Argument '2': ca
nnot convert from 'out int' to 'System.Globalization.NumberStyles'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

If you could implement your edits in to the script, that would be most helpfull, so i can see exactly what your thinking! :D
 

remnant

Wanderer
Since when is an ItemID a string rather than an integer. That's like giving someone an orange when they can only eat apples. Try using Convert.ToInt32( string ).
 

DragonBoy

Wanderer
I can tell you that your using the wrong overload of int.Parse. The correct override you should be using is int.Prase(string s).

Instead of the following:
Code:
int yourint = m_speaktargss.ItemID;
int.Parse(text, out yourint);

The correct code should be:
Code:
int yourint = 0;
yourint = int.Parse(text);
m_speaktargss.ItemID = yourint;

So you understand in the future, the way you set a variable equal to another variable does matter.

int yourint = m_speaktargss.ItemID;

is entirely different from

m_speaktargss.ItemID = yourint;

The second one clearly is what you want, since the way you had it could be setting the new integer variable to the value of the ItemID which doesn't make logical sense. I Strongly suggest you install and use either Visual C# Express or Sharp Developer.

I should add this suggestion only works if the string contains only numerical characters(0-9), and you should add code to prevent non-numerical characters, otherwise your shard will crash.

My suggestion would be a try catch, and if you catch an invalid input just ignore it and send a message, otherwise its valid.

* Hint *
There is a particular exception that can do exactly this, there is only int.TryParse(string s) which is a bool, which could also be used. I will let you figure out what method you want to use, clearly if you want help, all you have to do is ask. Considering I told you whats wrong with it, and how to fix what you have know, the least you can do is attempt to solve how you want to handle invalid input yourself.
 

DragonBoy

Wanderer
remnant;649126 said:
Since when is an ItemID a string rather than an integer. That's like giving someone an orange when they can only eat apples. Try using Convert.ToInt32( string ).

If you look at his code again, he does attempt to convert the string to an integer, but he is using the wrong override of the int.Parse method.

Let alone the fact, he is setting the value of the new integer variable to the ItemID, which makes no sense.
 
I wrote int.TryParse because it will either return nothing or the new parsed value. I set the integer to the current ItemID before this, because else your int would be 0 - and i doubt you want that :D
So when TryParse fails, the integer is still the same ItemID, and basically nothing is changed...
Now tell me again, setting it to the current ItemID makes no sense. ;)

Of course it can be done better, but the whole script could be optimized anyway, so its not a big deal.
 

remnant

Wanderer
You should convert the string to an integer before trying to assign it a variable that is declared as an integer (ItemID).
 

SevenEleven

Sorceror
thank you!

Thank you all very much =] i believe that i have the correct code of numeric digits only, but if you have anything different than what i might have, feel free to post. Im sorry that i have bene doing this over and over again, im not the best scripter but im still learning! Thank you all again! This should be a great script!
 

DragonBoy

Wanderer
Sotho Tal Ker;649144 said:
I wrote int.TryParse because it will either return nothing or the new parsed value. I set the integer to the current ItemID before this, because else your int would be 0 - and i doubt you want that :D
So when TryParse fails, the integer is still the same ItemID, and basically nothing is changed...
Now tell me again, setting it to the current ItemID makes no sense. ;)

Of course it can be done better, but the whole script could be optimized anyway, so its not a big deal.

You used the wrong override, and your incorrect that it would return "nothing" it either fails or it has success. If it fails it throws an exception, which is bad, because it means a crash.

As I wrote this...I realized you suggested the correct method, more or less.

I don't believe TryParse returns a value, since its a bool, which means it would need an out modifer argument which it doesn't. Even if it it did, testing it, then actually doing a Parse on a small string is fine.
 

mordero

Knight
Sotho Tal Ker;648494 said:
The solution is to use something like
Code:
int yourint = m_speaktargs.ItemID;
int.TryParse( text, out yourint );
There would be no need to use TrParse here since ItemID is always an int

DragonBoy;649167 said:
You used the wrong override, and your incorrect that it would return "nothing" it either fails or it has success. If it fails it throws an exception, which is bad, because it means a crash.

Wrong and right. Wring because he did use the right override
Code:
[COLOR=blue]public[/COLOR] [COLOR=blue]static[/COLOR] [COLOR=blue]bool[/COLOR] TryParse (
    [COLOR=blue]string[/COLOR] s,
    out [COLOR=blue]int[/COLOR] result
)
and right, because you are correct it would return either true or false, however, this method itself doesnt throw an exception since it would return false. If you only used int.Parse() and tried to parse a string that isnt an integer, then yes, I believe that would throw an exception. So when parsing a string for an int, always use int.TryParse() since you know it wont throw any exceptions.
 

DragonBoy

Wanderer
Actually if you read my entire post, I realized Sotho Tal Ker suggested the correct method. What I was talking about was just trying to use the Parse, at least in the way SevenEleven used it was incorrect.

Parse would throw an exception returns an integer value. TryParse will not throw an exception returns a bool value but has an out argument. Depends on what your trying to do, if you want to catch an exception which might be a good idea in this case, you would use the Parse method within a try catch block.

TryParse used to only return a bool value, within the .NET Framework 2.0 they added the new override.

I would provide the link where I read that its new, but I lost the link, which sucks to say the least.
 

mordero

Knight
In his example he used an out modifier btw. Anyways, whats your problem? Seriously, you get pissed off about this stuff way too easily. Calm down dude
 

DragonBoy

Wanderer
mordero;649286 said:
In his example he used an out modifier btw. Anyways, whats your problem? Seriously, you get pissed off about this stuff way too easily. Calm down dude

I am not upset in any shape or form.

There was a miss understanding on some level of what I said, I wanted to make myself more clear, thats my only goal. I only want to provide answers, to be honest I am not even sure what your talking about.
 
Top