using in c#
//doing with using function
using (var font1 = new Font("Arial", 10.0f))
{
byte charset = font1.GdiCharSet;
}
//or
using var font1 = new Font("Arial", 10.0f);
byte charset = font1.GdiCharSet;
using in c#
//doing with using function
using (var font1 = new Font("Arial", 10.0f))
{
byte charset = font1.GdiCharSet;
}
//or
using var font1 = new Font("Arial", 10.0f);
byte charset = font1.GdiCharSet;
using statement c#
using (var reader = new StringReader(manyLines))
{
string? item;
do {
item = reader.ReadLine();
Console.WriteLine(item);
} while(item != null);
}
using c#
The "using" statement allows you to specify multiple resources in a single statement.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us