Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

A better access protection?

$
0
0

Is there a way to protect the struct Info in the class? I want to make it a 'sealed class' but that is illegal.

    public class Guestbook_Lib : Basic_Valid
    {
        public struct Book//Main Book Structure
        {
            static string[] Array;
            static Info[] i;
        }
        struct Info //For security, Protect Contact information
        {
            private int Team;
            private string name;
            private string contact;
            private string location;
            //private void Send(Listbox l)
            //{

            //}
        }
This a fragment of the total class.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



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