= $u_time + 86400) { $modifiedDate = get_the_modified_time('F jS, Y'); echo 'Última modificación: '.$modifiedDate.''; } }?>

C# Singleton

Para el despistado:

 

public class MySingletonClass
{        
        private static MySingletonClass instance;

        public static readonly object Padlock = new object();

        public static MySingletonClass Instance
        {
            get
            {
                lock (Padlock)
                {
                    if (instance != null)
                    {
                        return instance;
                    }

                    instance = new MySingletonClass();
                    return instance;
                }
            }
        }
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *