DoWatch() публичный Метод

public DoWatch ( object target, string targetName, bool shouldUseWeakReference ) : void
target object
targetName string
shouldUseWeakReference bool
Результат void
Пример #1
0
    static public void Watch(object target, bool shouldShowNonPublic, string targetName)
    {
        if (target == null)
        {
            return;
        }

        if (targetName == null)
        {
            if (target is Type)
            {
                targetName = (target as Type).Name;
            }
            else
            {
                targetName = target.GetType().Name;
            }
        }

        if (_instance == null)
        {
            _instance = new FWatcher();
        }

        _instance.DoWatch(target, targetName, shouldShowNonPublic);
    }