Quantcast
Viewing latest article 13
Browse Latest Browse All 23

Updated Wiki: NetAccessors

  • .NET Namespaces (as well as PHP namespaces) are accessed by using standard PHP syntax
  • .NET Static Functions are accessed with :: (as well as PHP static functions)

For example, in C#, we would do the following:
System.String.Format("{0}", "test");

in Phalanger, we would access it as such:
System\String::Format("{0}", "test");
  • .NET Class Static Properties in PHP require a $, as do static fields
MyNamespace\MyClass::$MyStaticProperty
or
MyNamespace\MyClass::$MyStaticField

Viewing latest article 13
Browse Latest Browse All 23

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>