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
P

Peter Turtle

@Peter Turtle
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Fluent Api in Pascal, nothing earth-shattering ...
    P Peter Turtle

    Ermmm, no, because that is like saying 2 + 2 = 3, because 3 is nearly 4

    The Lounge csharp delphi regex json

  • Fluent Api in Pascal, nothing earth-shattering ...
    P Peter Turtle

    That Pascal code isn't anything fluent at all, it's just a series of method calls. The direct equivalent of the C# code would be (removing the use of WITH as an anti-pattern):

    var myFluentThing := TFluentThing.Create
    .DoThis(x)
    .DoThat(y)
    .DoAnother(z);

    This is only possible, as is true for C#, if the DoThis and DoThat functions return an instance of the TFluentThing class.

    The Lounge csharp delphi regex json
  • Login

  • Don't have an account? Register

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