Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Find.All.Questions(Where.IsAnswered == true);
- m_Window = window::with()
- .width(l_Width)
- .height(l_Height)
- .title("default window")
- .left(200)
- .top(200)
- .create();
- ::CreateWindow(
- "Window class",
- "Window title",
- dwStyle, X, Y,
- nWidth, nHeight,
- hWndPant, hMenu,
- hInstance, NULL
- );
- public interface NotFluent
- {
- void DoA();
- void DoB();
- void DoC();
- }
- public interface Fluent
- {
- Fluent DoA();
- Fluent DoB();
- Fluent DoC();
- }
- NotFluent foo = new NotFluentImpl();
- foo.DoA();
- foo.DoB();
- foo.DoC();
- Fluent bar = new FluentImpl();
- bar.DoA().DoB().DoC();
- public City GetCity(string zipCode)
- {
- zipCode.Assert("zipCode").IsNotNullOrEmpty().HasLength(5,10).Matches("\d[5]-\d[4]");
- // Continue processing
- }
- Car car = new CarImpl();
- MarketingDescription des = new MarketingDescriptionImpl();
- desc.setType("Box");
- desc.setSubtype("Insulated");
- desc.setAttribute("length", "50.5");
- desc.setAttribute("ladder", "yes");
- desc.setAttribute("lining type", "cork");
- car.setDescription(desc);
- Car car = Car.describedAs()
- .box()
- .length(50.5)
- .type(Type.INSULATED)
- .includes(Equipment.LADDER)
- .lining(Lining.CORK);
Add Comment
Please, Sign In to add comment