public void SetUserProfile(uint userId, Profile profile) { if (profile == null) { throw new NullReferenceException(); } byte[] bytes = profile.GetBytes(); errorHandler(EdkDll.EE_SetUserProfile(userId, bytes, (uint)bytes.Length)); }