Skip to content

Instantly share code, notes, and snippets.

@stephenkirk
Created January 10, 2019 20:08
Show Gist options
  • Save stephenkirk/9428c4ad5dcaa2573c9a1a44b935dfab to your computer and use it in GitHub Desktop.
Save stephenkirk/9428c4ad5dcaa2573c9a1a44b935dfab to your computer and use it in GitHub Desktop.
private static void CreateEnums(string path)
{
var js = "";
js += Enum<CarStatus>.GetExportableJs();
js += Enum<CarPurchaseType>.GetExportableJs();
js += Enum<UserRoles>.GetExportableJs();
js += Enum<CarValuationStatus>.GetExportableJs();
js += Enum<FacilityType>.GetExportableJs();
js += Enum<CostType>.GetExportableJs();
js += Enum<RimType>.GetExportableJs();
js += Enum<WheelType>.GetExportableJs();
js += Enum<WheelsetStatus>.GetExportableJs();
js += Enum<Banks>.GetExportableJs();
js += Enum<PaymentChannel>.GetExportableJs();
js += Enum<PaymentType>.GetExportableJs();
js += Enum<CarAfterCareActionStatus>.GetExportableJs();
js += Enum<WarrantyRemainingLevel>.GetExportableJs();
js += Enum<CustomerStatus>.GetExportableJs();
var filepath = $"{path}/enums.js";
File.WriteAllText(filepath, js);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment