private static object[] GetMessageArgs(ObjectType objectType, string objectName, string propertyName, params string[] arguments) { object[] array = new object[3 + ((arguments != null) ? arguments.Length : 0)]; array[0] = ErrorContext.GetLocalizedObjectTypeString(objectType); array[1] = ErrorContext.GetLocalizedObjectNameString(objectType, objectName); array[2] = ErrorContext.GetLocalizedPropertyNameString(propertyName); if (arguments != null) { for (int i = 0; i < arguments.Length; i++) { array[3 + i] = arguments[i]; } } return(array); }