public static bool HasProperty(AttributedDomainElement domainClass, string name, SerializationRepresentationType rep) { if (domainClass == null) return false; AttributedDomainElement d = domainClass; while (d != null) { foreach (DomainProperty p in d.Properties) if (p.Name == name) { if (p.SerializationRepresentationType == rep) return true; else return false; } d = d.BaseElement; } return false; }
public static bool HasProperty(AttributedDomainElement domainClass, string name, SerializationRepresentationType rep) { if (domainClass == null) { return(false); } AttributedDomainElement d = domainClass; while (d != null) { foreach (DomainProperty p in d.Properties) { if (p.Name == name) { if (p.SerializationRepresentationType == rep) { return(true); } else { return(false); } } } d = d.BaseElement; } return(false); }