c042cd0c52
Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
16 lines
227 B
C#
16 lines
227 B
C#
using System;
|
|
|
|
class Event
|
|
{
|
|
public string Name { get; set; }
|
|
public string Foo { get; set; }
|
|
}
|
|
|
|
class X
|
|
{
|
|
public static void Main ()
|
|
{
|
|
var evt = new Event();
|
|
string str = (evt.Foo != null ? evt?.Name : "").Trim();
|
|
}
|
|
} |