PROG8060 Lesson04 DataStructures
PROG8060 Lesson04 DataStructures
We can also use the Array class itself (which is part of System)
Can sort arrays by using the Array.Sort(<key>, <items>);
▪ E.g. Array.Sort(age, name); //this will sort the name array by age
Two types of collections in .NET Framework (as of 2.0):
Generic
NonGeneric
(B) Repeat (A), but this time use Collections in C# to display your items
▪ Kitchener: 233,222
▪ Mississauga: 721,599
▪ Toronto: 2,731,531
▪ Brampton: 593,638
▪ Windsor: 217,188
https://www.flickr.com/photos/140313528@N03/26542393091/
One can interact with a database though either a DBMS
(Database Management System) to create, maintain and use the
database or through a programming language such as SQL
(Structured Query Language).
Network protocols are divided into various layers (as seen on the
next slide)
As a result of the prevalence of smartphones and other devices
providing 24/7 connectivity, ensuring that our applications are
providing a secure experience is gaining more and more
importance.
Threats and Risks – these relate to ways in which security of the application
can be compromised after it has been implemented (for instance, if we’re
incorporating a database in our system, we should test for SQL Injection
attacks…)
Continuing on from the Requirements, issues relating to security
during the Design phase relate to how the various modules of
the overall application / program fit together to provide the
overall security objectives.
var EmployeeName;
EmployeeName = Request.form("EmployeeName");
var SQL = “SELECT * from employees where EmployeeName = ‘” + EmployeeName + "'";
From the above command, the ; denotes the end of the script