public static Guid ToGuid(this DocumentType type) { if (type == DocumentType.Text) return type_text; return new Guid (); }