Microsoft.VisualStudio.Project.SingleFileGeneratorNodeExtenderProvider.CanExtend C# (CSharp) Method

CanExtend() public method

public CanExtend ( string ExtenderCATID, string ExtenderName, object ExtendeeObject ) : bool
ExtenderCATID string
ExtenderName string
ExtendeeObject object
return bool
        public virtual bool CanExtend(string ExtenderCATID, string ExtenderName, object ExtendeeObject)
        {
            if (ExtenderName != Name)
                return false;

            FileNodeProperties fileNodeProperties = ExtendeeObject as FileNodeProperties;
            if (fileNodeProperties == null)
                return false;

            FileNode fileNode = fileNodeProperties.Node as FileNode;
            if (fileNode == null)
                return false;

            if (fileNode.CreateSingleFileGenerator() == null)
                return false;

            return true;
        }
SingleFileGeneratorNodeExtenderProvider