public ONInstance GetFacet(string className) { if (string.Compare(className, ClassName, true) == 0) { return(this); } object lInstance = ONContext.GetPropertyWithAttribute(this, typeof(ONFacetAttribute), "<Facet>" + className + "</Facet>"); if (lInstance == null) { return(ONContext.GetComponent_Instance(className, OnContext)); } return(ONContext.GetPropertyWithAttribute(this, typeof(ONFacetAttribute), "<Facet>" + className + "</Facet>") as ONInstance); }