private static string findScope(XmlElement familyElement) { var returnValue = InstanceScope.Transient; familyElement.ForAttributeValue(SCOPE, scope => { returnValue = scope; }); return returnValue; }
private static InstanceScope findScope(XmlElement familyElement) { InstanceScope returnValue = InstanceScope.PerRequest; familyElement.ForAttributeValue(SCOPE, scope => { returnValue = (InstanceScope) Enum.Parse(typeof (InstanceScope), scope); }); return returnValue; }