Error in EnemyPoliceGuy script

Hi i am trying to convert EnemyPoliceGuy.js to c#. I’m getting this error

"Assets/Scripts/C# Scripts/EnemyPoliceGuy.cs(37,49): error CS0236: A field initializer cannot reference the nonstatic field, method, or property `UnityEngine.Component.GetComponent(System.Type)’ "

my C# code:

private CharacterController characterController=GetComponent();

I think what it’s saying is you can’t initialize it that way. You would probably have to give the value in the start function:
private CharacterController characterController;

void Start(){
characterController = GetComponent…;
}