This line does not work in c#

This line woks in my js file. I am converting my files to c#. Anyone know what is wrong with this code? Here I am referencing a child. WorldFlagTexturizer is a c# script and flagCode is a string

 transform.Find("Flag_quad").GetComponent("WorldFlagTexturizer").flagCode = "skull";

the error msg in unty is…
UnityEngine.Component’ does not contain a definition for flagCode' and no extension method flagCode’ of type `UnityEngine.Component’ could be found (are you missing a using directive or an assembly reference?)

GetComponent(). Don’t use quotes in GetComponent, unless you have no choice (namely, if the type doesn’t exist because of mixing JS/C# scripts).

–Eric

thanks man, its working now