quick C# question.

Miscellaneous Forums/General Discussion/quick C# question.

	    //EntityColor
	    public void EntityColor(byte r,byte g,byte b, byte layer)
	    {
			col = new Color(255,r,g,b);
			EntityColor(col);
	    } 
	    public void EntityColor(Color col)
	    {
			node.SetMaterialFlag(EmfLighting, true);
			icolor = col;
			node.GetMaterial(layer).DiffuseColor = icolor;
			node.GetMaterial(layer).AmbientColor = icolor;
	    }



Still fairly new to this c# malarky,

In this i am creating a new struct of col to transfer to a ready created, similar instance stored in my functions parent class called icolor.

Do i need to delete "col" after i transfer it to the color function?

No.

Cheers.

This wasnt the real function anyway (the real one uses icolor directly, it was just hypothetical).
Attempting to learn C++ with all the talk of mem leaks has just made me paranoid.

You warned me and i didnt listen :)