// the security runtime requires access to the assemblyname (e.g. to get the strongname)
        public override AssemblyName GetName(bool copiedName)
        {
#if !MOBILE
            // CodeBase, which is restricted, will be copied into the AssemblyName object so...
            if (SecurityManager.SecurityEnabled)
            {
                var _ = CodeBase;                 // this will ensure the Demand is made
            }
#endif
            return(AssemblyName.Create(this, true));
        }
Beispiel #2
0
 public override AssemblyName GetName(bool copiedName)
 {
     return(AssemblyName.Create(this, true));
 }
Beispiel #3
0
 public override AssemblyName GetName(bool copiedName)
 {
     return(AssemblyName.Create(_mono_assembly, CodeBase));
 }