Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Expandable code snippet

Expandable code snippet

Scheduled Pinned Locked Moved Site Bugs / Suggestions
comlearning
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jani Giannoudis
    wrote on last edited by
    #1

    Something like:

    <pre lang"cs">
    public void MyMethod()
    {
    <sub>
    A();
    B();
    </sub>
    C();
    D();
    <sub>
    E();
    F();
    </sub>
    }

    Results to:

    public void MyMethod()
    {


    • B();

    }

    And after clicking/exapnding both +:

    public void MyMethod()
    {

    A()
    B();
    C();
    D();
    
    • E()
      F();
      }

    Cheers, Jani Giannoudis Meerazo.com - Resource Sharing Made Easy | Co-founder

    L 1 Reply Last reply
    0
    • J Jani Giannoudis

      Something like:

      <pre lang"cs">
      public void MyMethod()
      {
      <sub>
      A();
      B();
      </sub>
      C();
      D();
      <sub>
      E();
      F();
      </sub>
      }

      Results to:

      public void MyMethod()
      {


      • B();

      }

      And after clicking/exapnding both +:

      public void MyMethod()
      {

      A()
      B();
      C();
      D();
      
      • E()
        F();
        }

      Cheers, Jani Giannoudis Meerazo.com - Resource Sharing Made Easy | Co-founder

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Doesn't work for me.

      Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness

      B 1 Reply Last reply
      0
      • L Lost User

        Doesn't work for me.

        Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness

        B Offline
        B Offline
        Brisingr Aerowing
        wrote on last edited by
        #3

        Same here. But that is because CP doesn't support it yet, and the OP is a suggestion to add that functionality (Which, in my opinion, will be rather useful) (Please ignore this if you were joking)

        public class SysAdmin : Employee
        {

         public override void DoWork(IWorkItem workItem)
         {
              if (workItem.User.Type == UserType.NoLearn){
                 throw new NoIWillNotFixYourComputerException(new Luser(workItem.User));
              }else{
                   base.DoWork(workItem);
              }
         }
        

        }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups