The Phill Dellow Experience

`String.Concat (Method)`

Welcome back to my Blog!

Today I would like to talk about Concating strings.

What is String Concat? I hear you ask - Well is a manner in which two strings can be joined to together as one. Now this isn't any 1 + 1 = 2 mumbo jumbo, no, no real abstraction nesseary here at all. By Contacting two straings together we get what most children believe ypu do when first quizzed on the 1 + 1 =?... that's a bigger thing than you has in the first place.

In this instance 1 + 1 = 11

...not 2, you've been had!

By joining in this way we get "one" plus "one" equals "oneone"

Or "Horse" plus "Donkey" equals "HorseDonkey", not ever a mule.

How do we code this?

Very simply even I would say!

Lets take:

String Alpha="Alpha";

String Beta="Beta";

String D="Delta";

We can Concat by:

Console.WriteLine(Alpha + Beta + Delta);

Which will return:

AlphaBetaDelta

Or even:

Console.WriteLine(Delta + Beta + Delta + Alpha);

Which will return:

DeltaBetaDeltaAlpha

If you would like to Concat unasigned strings, we can slip some spaces in by:

Console.WriteLine(" " + Delta + " " + Beta + " " + Delta + " " + Alpha " ");

Which will return:

Delta Beta Delta Alpha

As Daft Punk was wont to say; "The perfect sound is framed in silence" - which is where I'm heading now.

Blog Index

CSS Cheat_Sheet

Culture Blog Week 1

Culture Blog Week 3

Culture Blog Week 4

Culture Blog Week 5

Culture Blog Week 6

Culture Blog Week 7

Technical Week 1

Technical Week 2

Technical Week 3

Technical Week 4

Technical Week 5

Technical Week 6

Technical Week 7

Culture Blog Week 8

Phill and Nary pair a web page in an hour

Follow @PhillipDellow

Main Index