Exploring Reflection in C# for Runtime Type Inspection
Reflection in C# provides the ability to examine type information at runtime. Let's create a sample class to demonstrate reflection capabilities:
public class SampleType
{
private int _privateField;
private int PrivateProp { get; set; }
protected int ProtectedProp { get; set; }
public int PublicProp { get; set; }
public voi ...
Posted on Sat, 04 Jul 2026 16:40:20 +0000 by Dongowarrior
Retrieving Database Table Columns in Java Applications
Database Connection Setup
Establishing a connection to the database is the initial requirement for acessing table metadata. The JDBC API provides the necessary tools for this operation.
import java.sql.*;
public class DatabaseMetadataReader {
private static final String DB_URL = "jdbc:mysql://localhost:3306/test";
private sta ...
Posted on Wed, 03 Jun 2026 16:14:32 +0000 by vidhu