CreateInstance() 개인적인 정적인 메소드

private static CreateInstance ( IServiceProvider provider ) : FavoritesLink
provider IServiceProvider
리턴 FavoritesLink
        public void AddUrlLink(string url, string comment, FavoritesFolder folder)
        {
            var link =
                FavoritesLink.CreateInstance(_provider, -1, url, comment, folder);

            folder.Links.Add(link);
            InsertFavoritesLink(link);
            SetFavoriteLinksSetDirty();
        }
        public bool AddMessageLink(int messageId, string comment, FavoritesFolder folder)
        {
            if (FindByMessageId(folder.Links, messageId) != null)
            {
                return(false);
            }

            var link =
                FavoritesLink.CreateInstance(_provider, -1, messageId, comment, folder);

            folder.Links.Add(link);
            InsertFavoritesLink(link);
            SetFavoriteLinksSetDirty();
            return(true);
        }