/// <summary> /// Retrieve a console variable by name - not case sensitive /// </summary> /// <param name="name">The name of the CVar to retrieve</param> /// <returns>null if not found, CVar instance if successful</returns> public static CVar Get(string name) { CVar cvar = CVars.FirstOrDefault(var => var.Name.Equals(name)); if (cvar != default(CVar)) { return(cvar); } if (NativeCVarMethods.HasCVar(name)) { CVars.Add(new ExternalCVar(name)); return(CVars.Last()); } return(null); }