Conversion error GetScriptDescriptors

2 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 21 Mar 2012 Link to this post

    I convert as part of a script:

    public IEnumerable<ScriptDescriptor> GetScriptDescriptors()

    To

    Public Function GetScriptDescriptors() As IEnumerable(Of ScriptDescriptor)

    When I run I get error:

    Compiler Error Message: BC30149: Class 'PsdEditor' must implement 'Function GetScriptDescriptors() As Collections.Generic.IEnumerable(Of ScriptDescriptor)' for interface 'System.Web.UI.IScriptControl'.

    Any suggesions?
    I can send complete code if needed.

    Thanks,
    Marc
  2. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 21 Mar 2012 Link to this post

    This line should habeen converted to

    Public Function GetScriptDescriptors() As IEnumerable(Of ScriptDescriptor) Implements IScriptControl.GetScriptDescriptors
Back to Top