/// <summary> /// Gets a <see cref="IMethodDebugService"/> or null if none exists /// </summary> /// <param name="self">This</param> /// <returns></returns> public static IMethodDebugService TryGetMethodDebugService(this IDocumentViewer self) { if (self == null) { return(null); } return((IMethodDebugService)self.GetContentData(MethodDebugServiceConstants.MethodDebugServiceKey)); }