public void SetCustomAttributes(CustomAttribute[] cas) { if (cas == null) customAttributes = null; else customAttributes = new ArrayList(cas); }